Examples of Occurrence


Examples of br.com.visualmidia.business.Occurrence

        TableItem[] items = occurrenceTable.getItems();
        List<Occurrence> ocurrenceList = new ArrayList<Occurrence>();
        for (int i = 0; i < items.length; i++) {
            try {
                Person person = (Person) system.query(new GetPersonByName(items[i].getText(1)));
                ocurrenceList.add(new Occurrence(person, new GDDate(items[i].getText(0)), items[i].getText(2)));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return ocurrenceList;
View Full Code Here

Examples of br.com.visualmidia.business.Occurrence

    @Override
    protected void execute(PrevalentSystem system) throws BusinessException {
        Student student = (Student) system.getPeople().get(studentId).getPersonType("student");
        if(student != null)
          student.addOccurrence(new Occurrence(system.getPeople().get(attendenceId), date, occurrenceDescription));
    }
View Full Code Here

Examples of com.workplacesystems.queuj.Occurrence

            throw new CronProviderInitialisationException("Error initializing QueuJ scheduler", ex);
        }
    }

    public void processScheduledTrigger(final String queueId, final ScheduledTriggerDetail schedTriggerDetails) throws ParseException, InternalError {
        Occurrence runRelatively = new RunRelatively(schedTriggerDetails);
        scheduleJob(queueId, schedTriggerDetails, runRelatively);
    }
View Full Code Here

Examples of com.workplacesystems.queuj.Occurrence

        Occurrence runRelatively = new RunRelatively(schedTriggerDetails);
        scheduleJob(queueId, schedTriggerDetails, runRelatively);
    }

    public void processIntervalTrigger(final String queueId, final IntervalTriggerDetail intervalTriggerDetails) throws ParseException, InternalError {
        Occurrence runRelatively = new RunRelatively(intervalTriggerDetails);
        scheduleJob(queueId, intervalTriggerDetails, runRelatively);
    }
View Full Code Here

Examples of org.blync.client.calendar.Occurrence

    public boolean hasAppointments(Day day) {
        return !getIdsForDay(day).isEmpty();
    }

    public Occurrence searchItem(String searchName, boolean findAgain) {
        Occurrence occurrence = null;
        searchName = searchName.toLowerCase();
        if (searchDay.toInt() >= lastSearchDay.toInt()) {
            searchDay = new Day(0);
        }
        else if (!findAgain) {
            searchDay = Day.today();
        }
        Day currentSearchDay;
        for (currentSearchDay = searchDay;
             currentSearchDay.toInt() < lastSearchDay.toInt() && occurrence == null;
             currentSearchDay = currentSearchDay.add(1)) {
            Vector ids = getIdsForDay(currentSearchDay);
            for (int i = 0; i < ids.size() && occurrence == null; i++) {
                String id = (String)ids.elementAt(i);
                String title = ((String)idToTitleMap.get(id)).toLowerCase();
                if (title.indexOf(searchName) != -1) {
                    occurrence = new Occurrence(id, currentSearchDay);
                }
            }
        }
        if (occurrence == null) {
            DisplayController.playSound(AlertType.WARNING);
View Full Code Here

Examples of xbird.xquery.type.Type.Occurrence

    public BXQSequenceType(SequenceType type) {
        this.type_ = type;
    }

    public int getItemOccurrence() {
        final Occurrence occ = type_.quantifier();
        switch(occ) {
            case OCC_EXACTLY_ONE:
                return OCC_EXACTLY_ONE;
            case OCC_MORE:
            case OCC_ONE_OR_MORE:
View Full Code Here

Examples of xbird.xquery.type.Type.Occurrence

            }
        }
    }

    public static boolean instanceOf(final Sequence<? extends Item> value, final Type type) {
        final Occurrence occ = type.quantifier();
        if(value.isEmpty()) {
            return occ.accepts(Occurrence.OCC_ZERO.getAlignment());
        }
        final Type expected = (type instanceof SequenceType) ? ((SequenceType) type).prime() : type;
        int count = 0;
        final IFocus<? extends Item> valueItor = value.iterator();
        for(Item it : valueItor) {
            final Type actual = it.getType();
            if(!subtypeOf(actual, expected)) {
                valueItor.closeQuietly();
                return false;
            }
            count++;
        }
        valueItor.closeQuietly();
        if(count == 0) {
            throw new IllegalStateException();
        }
        if(count == 1) {
            return occ.accepts(Occurrence.OCC_EXACTLY_ONE.getAlignment());
        } else {
            return occ.accepts(Occurrence.OCC_MORE.getAlignment());
        }
    }
View Full Code Here

Examples of xbird.xquery.type.Type.Occurrence

                final DirectFunctionCall funcall = (DirectFunctionCall) retExpr;
                final List<XQExpression> params = funcall.getParams();
                if(params.size() == 1) {
                    FunctionSignature sig = funcall.getFunction().getFunctionSignature(1);
                    Type type = sig.getArgumentType(0);
                    Occurrence occ = type.quantifier();
                    if(!occ.accepts(Occurrence.OCC_ZERO_OR_MORE.getAlignment())) {
                        return flwr; //TODO REVIEWME
                    }
                    final XQExpression firstArg = params.get(0);
                    final XQExpression cutted = recApplyFLWRCuttingInternal(flwr, firstArg);
                    if(cutted != flwr) {
View Full Code Here

Examples of xbird.xquery.type.Type.Occurrence

    [114] AtomicType   ::= QName
    ************************************************************************/
    final public Type parseSequenceType() throws ParseException, XQueryException {
        boolean isAtomic = false;
        final ItemType itemType;
        Occurrence occurrenceIndicator = Occurrence.OCC_EXACTLY_ONE;
        switch(jj_nt.kind) {
            case EmptySequence:
                currentToken = jj_consume_token(EmptySequence);
                {
                    if(true)
View Full Code Here

Examples of xbird.xquery.type.Type.Occurrence

     [114] AtomicType   ::= QName
     ************************************************************************/
    final public Type parseSequenceType() throws ParseException, XQueryException {
        boolean isAtomic = false;
        final ItemType itemType;
        Occurrence occurrenceIndicator = Occurrence.OCC_EXACTLY_ONE;
        switch(jj_nt.kind) {
            case EmptySequence:
                currentToken = jj_consume_token(EmptySequence);
                {
                    if(true)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.