/** * @return An Iterator of AttributeDefinitionREFs without attempting lazy resolution (if it's * turned on). */ @SuppressWarnings("unchecked") // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:990) public Iterator<AttributeDefinitionREF> getOnePossibilityREFs() { DmcTypeAttributeDefinitionREFMV attr = (DmcTypeAttributeDefinitionREFMV) get(DmvDMSAG.__onePossibility); if (attr == null) return (((List<AttributeDefinitionREF>) Collections.EMPTY_LIST).iterator()); return (attr.getMV()); }
/** @return An Iterator of AttributeDefinitionDMO objects. */ @SuppressWarnings("unchecked") // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:970) public Iterator<AttributeDefinitionREF> getOnePossibility() { DmcTypeAttributeDefinitionREFMV attr = (DmcTypeAttributeDefinitionREFMV) get(DmvDMSAG.__onePossibility); if (attr == null) return (((List<AttributeDefinitionREF>) Collections.EMPTY_LIST).iterator()); if (DmcOmni.instance().lazyResolution()) { if (attr.doLazyResolution(this)) { rem(attr.getAttributeInfo()); return (((List<AttributeDefinitionREF>) Collections.EMPTY_LIST).iterator()); } } return (attr.getMV()); }