|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeStoreUser
Represents the strongly-typed user of a typestore. A typestore is responsible for all the lexical aspects of XML, and a typestore user is responsible for all strongly-typed aspects. Where there is interaction between the two models, it is represented by the TypeStore and TypeStoreUser interfaces.
Method Summary | |
---|---|
void |
attach_store(TypeStore store)
Called to attach to the given textStore. |
boolean |
build_nil()
A store will call back on build_nil after you've called invalidate_nil and it needs to know what the nil value is. |
java.lang.String |
build_text(NamespaceManager nsm)
A store will call back on build_text when it knows its own text is invalid and needs to fill it in. |
TypeStoreUser |
create_attribute_user(javax.xml.namespace.QName attrName)
A typestore user can create a new TypeStoreUser instance for a given attribute child, based on the attribute name. |
TypeStoreUser |
create_element_user(javax.xml.namespace.QName eltName,
javax.xml.namespace.QName xsiType)
A typestore user can create a new TypeStoreUser instance for a given element child name as long as you also pass the qname contained by the xsi:type attribute, if any. |
void |
disconnect_store()
A store calls back on this call in order to force a disconnect. |
SchemaField |
get_attribute_field(javax.xml.namespace.QName attrName)
Returns the schema field for an attribute |
SchemaType |
get_attribute_type(javax.xml.namespace.QName attrName)
Return the SchemaType which an attribute of this name would be. |
int |
get_attributeflags(javax.xml.namespace.QName attrName)
Returns the flags for an attribute. |
java.lang.String |
get_default_attribute_text(javax.xml.namespace.QName attrName)
Returns the default attribute text for the attribute with the given name. |
java.lang.String |
get_default_element_text(javax.xml.namespace.QName eltName)
Returns the default element text, if it's consistent. |
QNameSet |
get_element_ending_delimiters(javax.xml.namespace.QName eltname)
A typestore user can return the element sort order to use for insertion operations if needed. |
SchemaType |
get_element_type(javax.xml.namespace.QName eltName,
javax.xml.namespace.QName xsiType)
Return the SchemaType which a child element of this name and xsi:type would be. |
int |
get_elementflags(javax.xml.namespace.QName eltName)
Returns the elementflags, if they're consistent. |
SchemaType |
get_schema_type()
Returns the schema type of this user |
TypeStore |
get_store()
Returns the store to which this typestoreuser is attached, or null if none. |
void |
invalidate_element_order()
A store calls back on invalidate_element_order when a rearrangment of sibling elements to the left of this element means that the nillable value may no longer be valid. |
void |
invalidate_nilvalue()
A store calls back on invalidate_nilvalue when the value of the xsi:nil tag has changed. |
void |
invalidate_value()
A store will call back on invalidate_value when its text has changed and it therefore knows that any cached type value is invalid. |
boolean |
is_child_element_order_sensitive()
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. |
TypeStoreVisitor |
new_visitor()
A typestore user can return a visitor that is used to compute default text and elementflags for an arbitrary element. |
boolean |
uses_invalidate_value()
A store can call uses_invalidate_value to know if calls to invalidate_value will be fruitful. |
void |
validate_now()
A store will call back on validate_now to force us to look at the text if we're in an invalid state. |
Method Detail |
---|
void attach_store(TypeStore store)
SchemaType get_schema_type()
TypeStore get_store()
void invalidate_value()
boolean uses_invalidate_value()
java.lang.String build_text(NamespaceManager nsm)
boolean build_nil()
void invalidate_nilvalue()
void invalidate_element_order()
void validate_now()
void disconnect_store()
TypeStoreUser create_element_user(javax.xml.namespace.QName eltName, javax.xml.namespace.QName xsiType)
TypeStoreUser create_attribute_user(javax.xml.namespace.QName attrName)
SchemaType get_element_type(javax.xml.namespace.QName eltName, javax.xml.namespace.QName xsiType)
SchemaType get_attribute_type(javax.xml.namespace.QName attrName)
java.lang.String get_default_element_text(javax.xml.namespace.QName eltName)
java.lang.String get_default_attribute_text(javax.xml.namespace.QName attrName)
int get_elementflags(javax.xml.namespace.QName eltName)
int get_attributeflags(javax.xml.namespace.QName attrName)
SchemaField get_attribute_field(javax.xml.namespace.QName attrName)
boolean is_child_element_order_sensitive()
QNameSet get_element_ending_delimiters(javax.xml.namespace.QName eltname)
TypeStoreVisitor new_visitor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |