public boolean nototals() { if (totals().count() > 0) { return false; } return true; }
public String loopCount() { if (object == event) return "1x"; else return ((EOAggregateEvent)object).events().count()+"x"; }
public NSArray sectionsContents() { NSArray result = ((ERMDListPageRepetition) parent()).sectionsContents(); if (result.count() == 1) { return result; } if (result.count() == 0) { return NSArray.EmptyArray; } ERD2WContainer pair = (ERD2WContainer) result.objectAtIndex(0); return new NSArray(pair); }
public int depthCount() { //log.debug( "this.attributeListDict().allKeys().count():"+this.attributeListDict().allKeys().count()); //log.debug( "this.attributeListDict().allKeys().count():"+this.attributeListDict()); return attributeListDict().allKeys().count(); }
public void setCcAddressesAsArray(NSArray ccAddresses) { if (ccAddresses != null && ccAddresses.count() > 0) { setCcAddresses(ccAddresses.componentsJoinedByString(AddressSeparator)); } }
public void setBccAddressesAsArray(NSArray bccAddresses) { if (bccAddresses != null && bccAddresses.count() > 0) { setBccAddresses(bccAddresses.componentsJoinedByString(AddressSeparator)); } }
public int totalCount() { NSDictionary totalDict = totalDict(); if (totalDict == null) { return 0; } int totalCount = totalDict.allKeys().count(); return totalCount; }
public boolean isExpanded() { Object currentItem = valueForBinding("item"); NSArray selectionPath = (NSArray)_WOJExtensionsUtil.valueForBindingOrNull("selectionPath",this); return (_nestingLevel < selectionPath.count()) && selectionPath.objectAtIndex(_nestingLevel).equals(currentItem); }
public boolean showZDimensions() { if (model().zList().count() > 0 && "Z".equals(listLabel())) { return true; } return false; }
protected EOSortOrdering _primarySortOrdering() { NSArray anArray = displayGroup().sortOrderings(); if ((anArray!=null) && (anArray.count() > 0)) { EOSortOrdering anOrdering = (EOSortOrdering)anArray.objectAtIndex(0); return anOrdering; } return null; }
public void _initApplicationsWithArray(NSArray anArray) { if (anArray == null) return; for (int i=0; i<anArray.count(); i++) { MApplication anApplication = new MApplication( (NSDictionary) anArray.objectAtIndex(i), this); _addApplication(anApplication); } }
/** * Checks to see if this object has been tagged with any of the given tags. * * @param tags the tags to add (String to tokenize, NSArray<String>, etc) * @return true if this eo is tagged with any of the given tag names, false otherwise */ public boolean isTaggedWithAny(Object tags) { NSArray<String> tagNames = _entity.splitTagNames(tags); return ERXQ.filtered(tags(), ERTag.NAME.in(tagNames)).count() > 0; }
/** * Checks whether primary key generation can be supported for <code>entity</code> * * @param entity the entity to be checked * @return yes/no */ private static boolean isPrimaryKeyGenerationNotSupported(EOEntity entity) { return entity.primaryKeyAttributes().count() > 1 || entity.primaryKeyAttributes().lastObject().adaptorValueType() != EOAttribute.AdaptorNumberType; } }
public NSArray topHorzGroupCriteriaList() { NSArray hList = model().hList(); if (hList.count() > 0) { DRGroup group = (DRGroup)hList.objectAtIndex(0); NSArray sortedCriteriaList = group.sortedCriteriaList(); return sortedCriteriaList; } return NSArray.EmptyArray; }
public void removeApplication_W(MApplication anApplication) { NSArray tempArray = new NSArray(anApplication._instanceArray); for (int i=0; i<tempArray.count(); i++) { removeInstance_W( (MInstance) tempArray.objectAtIndex(i) ); } _removeApplication(anApplication); }
private NSArray<String> localizeStringArray(NSArray<String> strings) { NSMutableArray<String> localizedStrings = new NSMutableArray<>(strings.count()); ERXLocalizer l = ERXLocalizer.currentLocalizer(); for (String string : strings) localizedStrings.add(l.localizedStringForKeyWithDefault(string)); return localizedStrings.immutableClone(); }
public void removeHost_M(MHost aHost) { backup("removeHost-" + aHost.name()); NSArray tempArray = new NSArray(aHost._instanceArray); for (int i=0; i<tempArray.count(); i++) { removeInstance_M( (MInstance) tempArray.objectAtIndex(i), false); } _removeHost(aHost); } public void removeHost_W(MHost aHost) {
protected Object _localUiStyle() { if (uiStyle() == null) { setUiStyle((String) _WOJExtensionsUtil.valueForBindingOrNull("uiStyle", this)); // if still no value let's determine one if (uiStyle() == null) { setUiStyle((theList().count() <= 5) ? "checkbox" : "browser"); } } return uiStyle(); }