/** * 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 false if child elements are insensitive to order; * if it returns true, you're required to call invalidate_element_order * on children to the right of any child order rearrangement. */ public boolean is_child_element_order_sensitive() { if (!_isComplexType()) return false; return schemaType().isOrderSensitive(); }
/** * 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 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 false if child elements are insensitive to order; * if it returns true, you're required to call invalidate_element_order * on children to the right of any child order rearrangement. */ public boolean is_child_element_order_sensitive() { if (!_isComplexType()) return false; return schemaType().isOrderSensitive(); }
/** * Returns false if child elements are insensitive to order; * if it returns true, you're required to call invalidate_element_order * on children to the right of any child order rearrangement. */ public boolean is_child_element_order_sensitive() { if (!_isComplexType()) return false; return schemaType().isOrderSensitive(); }
/** * 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? }