Examples of NSMutableArray


Examples of com.webobjects.foundation.NSMutableArray

     */
    private static NSArray varPositionsForQuery(String query) {
        int position = 0;
        boolean inQuote = false;
        char quoteChar = 0;
        NSMutableArray positions = new NSMutableArray();

        while( position < query.length() ) {
            char c = query.charAt( position );
            if( c == '\\' ) {
                position += 2;
                continue;
            }
            if( inQuote == false && ( c == '\'' || c == '\"' ) ) {
                quoteChar = c;
                inQuote = true;
            } else if( inQuote && c == quoteChar ) {
                inQuote = false;
            } else if( inQuote == false && c == '?' ) {
                positions.addObject(position);
            }

            position++;
        }

View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray

      NSTimestamp temp = start;
      start = end;
      end = temp;
    }

    NSMutableArray dates = new NSMutableArray();

    Day loopDay = new Day(start);
    Day startDay = new Day(start);
    Day endDay = new Day(end);

    while (loopDay.before(endDay)) {
      dates.addObject(loopDay);
      loopDay = loopDay.next();
    }

    dates.addObject(endDay);

    return dates;
  }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray

    private NSMutableArray _compareList;
    public NSArray compareList() {
        if (_compareList == null) {
            NSArray list = displayGroup().displayedObjects();
            _compareList = new NSMutableArray();
            if (list != null && list.count() > 0) {
                _compareList.addObject(list.objectAtIndex(0));
                Object o=comparisonObject();
                if (o!=null) _compareList.addObject(o);
                _compareList.addObjectsFromArray(list);
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray

        if (null==_subList) {
            _realSize = list().count();
            if (_realSize > numberToDisplay()) {
                int anIndex;
                int count = numberToDisplay();
                NSMutableArray aSubList = new NSMutableArray(count);
                for (anIndex = 0; anIndex < count ; anIndex++) {
                    aSubList.addObject(list().objectAtIndex(anIndex));
                }
                _subList = aSubList;
            } else {
                _subList = list();
            }
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSMutableArray

    public void setModificationDate(Date modificationDate) {
        setDate(ModificationDate, modificationDate);
    }

    public List<Entry> getPronunciations() {
        NSMutableArray pronounciations = getValueAsType(Pronunciations, NSMutableArray.class);
        List<Entry> result = new ArrayList<Entry>(pronounciations.count());
        for (int i=0; i < pronounciations.count(); i++) {
            result.add(new Entry(Rococoa.cast(pronounciations.objectAtIndex(i), NSMutableDictionary.class)));
        }
        return Collections.unmodifiableList(result);
    }
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSMutableArray

        }
        return Collections.unmodifiableList(result);
    }

    public void setPronunciations(List<Entry> pronounciations) {
        NSMutableArray pronounciationDicts = NSMutableArray.CLASS.arrayWithCapacity(pronounciations.size());
        for (Entry e : pronounciations) {
            pronounciationDicts.addObject(e.getData());
        }
        setValue(Pronunciations, pronounciationDicts);
    }
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSMutableArray

        }
        setValue(Pronunciations, pronounciationDicts);
    }
   
    public void addPronounciation(Entry pronounciation) {
        NSMutableArray pronounciations = getValueAsType(Pronunciations, NSMutableArray.class);
        if ( pronounciations == null ) {
            pronounciations = NSMutableArray.CLASS.arrayWithCapacity(1);
        }
        pronounciations.addObject(pronounciation.getData());
        setValue(Pronunciations, pronounciations);
    }
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSMutableArray

        pronounciations.addObject(pronounciation.getData());
        setValue(Pronunciations, pronounciations);
    }

    public List<Entry> getAbbreviations() {
        NSMutableArray abbreviations = getValueAsType(Abbreviations, NSMutableArray.class);
        List<Entry> result = new ArrayList<Entry>(abbreviations.count());
        for (int i=0; i < abbreviations.count(); i++) {
            result.add(new Entry(Rococoa.cast(abbreviations.objectAtIndex(i), NSMutableDictionary.class)));
        }
        return Collections.unmodifiableList(result);
    }
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSMutableArray

        }
        return Collections.unmodifiableList(result);
    }

    public void setAbbreviations(List<Entry> abbreviations) {
        NSMutableArray abbreviationDicts = NSMutableArray.CLASS.arrayWithCapacity(abbreviations.size());
        for (Entry e : abbreviations) {
            abbreviationDicts.addObject(e.getData());
        }
        setValue(Abbreviations, abbreviationDicts);
    }
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSMutableArray

        }
        setValue(Abbreviations, abbreviationDicts);
    }

    public void addAbbreviation(Entry abbreviation) {
        NSMutableArray abbreviations = getValueAsType(Abbreviations, NSMutableArray.class);
        if ( abbreviations == null ) {
            abbreviations = NSMutableArray.CLASS.arrayWithCapacity(1);
        }
        abbreviations.addObject(abbreviation.getData());
        setValue(Abbreviations, abbreviations);
    }
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.