/** * Returns the default attribute text for the attribute with * the given name, or null if no default. */ public String get_default_attribute_text(QName attrName) { assert(_isComplexType()); if (!_isComplexType()) throw new IllegalStateException(); SchemaProperty prop = schemaType().getAttributeProperty(attrName); if (prop == null) return ""; return prop.getDefaultText(); }
/** * Returns the flags for the given attribute. */ public int get_attributeflags(QName attrName) { if (!_isComplexType()) return 0; SchemaProperty prop = schemaType().getAttributeProperty(attrName); if (prop == null) return 0; return (prop.hasDefault() == SchemaProperty.NEVER ? 0 : TypeStore.HASDEFAULT) | (prop.hasFixed() == SchemaProperty.NEVER ? 0 : TypeStore.FIXED); // BUGBUG: todo: hook up required? }
baseType.getAttributeProperty(prop.getName()) : baseType.getElementProperty(prop.getName());
baseType.getAttributeProperty(sImpl.getName()) : baseType.getElementProperty(sImpl.getName()));
for (int i = 0; i < baseProperties.length; i++) if (!(baseProperties[i].isAttribute() && sType.getAttributeProperty(baseProperties[i].getName()) != null))
/** * Returns the default attribute text for the attribute with * the given name, or null if no default. */ public String get_default_attribute_text(QName attrName) { assert(_isComplexType()); if (!_isComplexType()) throw new IllegalStateException(); SchemaProperty prop = schemaType().getAttributeProperty(attrName); if (prop == null) return ""; return prop.getDefaultText(); }
/** * Returns the default attribute text for the attribute with * the given name, or null if no default. */ public String get_default_attribute_text(QName attrName) { assert(_isComplexType()); if (!_isComplexType()) throw new IllegalStateException(); SchemaProperty prop = schemaType().getAttributeProperty(attrName); if (prop == null) return ""; return prop.getDefaultText(); }
/** * Returns the flags for the given attribute. */ public int get_attributeflags(QName attrName) { if (!_isComplexType()) return 0; SchemaProperty prop = schemaType().getAttributeProperty(attrName); if (prop == null) return 0; return (prop.hasDefault() == SchemaProperty.NEVER ? 0 : TypeStore.HASDEFAULT) | (prop.hasFixed() == SchemaProperty.NEVER ? 0 : TypeStore.FIXED); // BUGBUG: todo: hook up required? }
/** * Returns the flags for the given attribute. */ public int get_attributeflags(QName attrName) { if (!_isComplexType()) return 0; SchemaProperty prop = schemaType().getAttributeProperty(attrName); if (prop == null) return 0; return (prop.hasDefault() == SchemaProperty.NEVER ? 0 : TypeStore.HASDEFAULT) | (prop.hasFixed() == SchemaProperty.NEVER ? 0 : TypeStore.FIXED); // BUGBUG: todo: hook up required? }
baseType.getAttributeProperty(prop.getName()) : baseType.getElementProperty(prop.getName());
baseType.getAttributeProperty(prop.getName()) : baseType.getElementProperty(prop.getName());
baseType.getAttributeProperty(sImpl.getName()) : baseType.getElementProperty(sImpl.getName()));
baseType.getAttributeProperty(sImpl.getName()) : baseType.getElementProperty(sImpl.getName()));
for (int i = 0; i < baseProperties.length; i++) if (!(baseProperties[i].isAttribute() && sType.getAttributeProperty(baseProperties[i].getName()) != null))
for (int i = 0; i < baseProperties.length; i++) if (!(baseProperties[i].isAttribute() && sType.getAttributeProperty(baseProperties[i].getName()) != null))