public int size() { return getTypes().size(); } };
public Void onElement(CElementPropertyInfo p) { for (CTypeRef tr : p.getTypes()) { countURI(propUriCountMap, tr.getTagName()); } return null; }
public Void onElement(CElementPropertyInfo p) { for (CTypeRef tr : p.getTypes()) { countURI(propUriCountMap, tr.getTagName()); } return null; }
public Void onElement(CElementPropertyInfo p) { for (CTypeRef tr : p.getTypes()) { countURI(propUriCountMap, tr.getTagName()); } return null; }
public Void onElement(CElementPropertyInfo p) { for (CTypeRef tr : p.getTypes()) { countURI(propUriCountMap, tr.getTagName()); } return null; }
public CNonElement get(int index) { return getTypes().get(index).getTarget(); } public int size() {
public void addTo(CElementPropertyInfo prop) { assert canBeTypeRefs!= Mode.MUST_BE_REFERENCE; if(mul.isZero()) return; // the property can't have any value List<CTypeRef> dst = prop.getTypes(); for( Ref t : refs ) dst.add(t.toTypeRef(prop)); }
public void addTo(CElementPropertyInfo prop) { assert canBeTypeRefs!= Mode.MUST_BE_REFERENCE; if(mul.isZero()) return; // the property can't have any value List<CTypeRef> dst = prop.getTypes(); for( Ref t : refs ) dst.add(t.toTypeRef(prop)); }
public void addTo(CElementPropertyInfo prop) { assert canBeTypeRefs!= Mode.MUST_BE_REFERENCE; if(mul.isZero()) return; // the property can't have any value List<CTypeRef> dst = prop.getTypes(); for( Ref t : refs ) dst.add(t.toTypeRef(prop)); }
public void addTo(CElementPropertyInfo prop) { assert canBeTypeRefs!= Mode.MUST_BE_REFERENCE; if(mul.isZero()) return; // the property can't have any value List<CTypeRef> dst = prop.getTypes(); for( Ref t : refs ) dst.add(t.toTypeRef(prop)); }
/** Returns raw schema name for simpleType property. May return null for other types. */ public final QName rawName() { if (fr instanceof ElementAdapter) { CElementInfo eInfo = ((ElementAdapter)fr).ei; if ((eInfo != null) && (eInfo.getProperty() != null)) { return eInfo.getProperty().getTypes().get(0).getTypeName(); } } return null; }
/** Returns raw schema name for simpleType property. May return null for other types. */ public final QName rawName() { if (fr instanceof ElementAdapter) { CElementInfo eInfo = ((ElementAdapter)fr).ei; if ((eInfo != null) && (eInfo.getProperty() != null)) { return eInfo.getProperty().getTypes().get(0).getTypeName(); } } return null; }
/** Returns raw schema name for simpleType property. May return null for other types. */ public final QName rawName() { if (fr instanceof ElementAdapter) { CElementInfo eInfo = ((ElementAdapter)fr).ei; if ((eInfo != null) && (eInfo.getProperty() != null)) { return eInfo.getProperty().getTypes().get(0).getTypeName(); } } return null; }
public boolean isUnboxable() { if(!isCollection() && !required) // if the property can be legally absent, it's not unboxable return false; // we need to have null to represent the absence of value. not unboxable. for (CTypeRef t : getTypes()) { if(t.isNillable()) return false; } return super.isUnboxable(); }
@Override public boolean isOptionalPrimitive() { // we need to have null to represent the absence of value. not unboxable. for (CTypeRef t : getTypes()) { if(t.isNillable()) return false; } return !isCollection() && !required && super.isUnboxable(); }
public boolean isUnboxable() { if(!isCollection() && !required) // if the property can be legally absent, it's not unboxable return false; // we need to have null to represent the absence of value. not unboxable. for (CTypeRef t : getTypes()) { if(t.isNillable()) return false; } return super.isUnboxable(); }
@Override public boolean isOptionalPrimitive() { // we need to have null to represent the absence of value. not unboxable. for (CTypeRef t : getTypes()) { if(t.isNillable()) return false; } return !isCollection() && !required && super.isUnboxable(); }
@Override public boolean isOptionalPrimitive() { // we need to have null to represent the absence of value. not unboxable. for (CTypeRef t : getTypes()) { if(t.isNillable()) return false; } return !isCollection() && !required && super.isUnboxable(); }
public boolean isUnboxable() { if(!isCollection() && !required) // if the property can be legally absent, it's not unboxable return false; // we need to have null to represent the absence of value. not unboxable. for (CTypeRef t : getTypes()) { if(t.isNillable()) return false; } return super.isUnboxable(); }
@Override public boolean isOptionalPrimitive() { // we need to have null to represent the absence of value. not unboxable. for (CTypeRef t : getTypes()) { if(t.isNillable()) return false; } return !isCollection() && !required && super.isUnboxable(); }