|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeStore
Field Summary | |
---|---|
static int |
FIXED
|
static int |
HASDEFAULT
|
static int |
NILLABLE
|
static int |
WS_COLLAPSE
|
static int |
WS_PRESERVE
|
static int |
WS_REPLACE
|
static int |
WS_UNSPECIFIED
|
Method Summary | |
---|---|
TypeStoreUser |
add_attribute_user(javax.xml.namespace.QName name)
Adds an attribute with the given name and returns a TypeStoreUser underneath it. |
TypeStoreUser |
add_element_user(javax.xml.namespace.QName name)
Adds a new element at the last position adjacent to existing elements of the same name. |
void |
array_setter(XmlObject[] sources,
javax.xml.namespace.QName elementName)
Copies the contents of the given array of XmlObject (including attributes, elements, mixed content), over all the elements of the given name under the current typestore. |
TypeStoreUser |
change_type(SchemaType sType)
Change the type of this store (perhaps by applying xsi:type) and return the new TypeStoreUser (or old one if the new type is not different). |
java.lang.String |
compute_default_text()
Here the TypeStore is responsible for locating the default value. |
int |
compute_flags()
Here the TypeStore is responsible for figuring if this value is nillable and/or fixed. |
TypeStoreUser |
copy_contents_from(TypeStore source)
Copies the contents of the given TypeStore (including attributes, elements, and mixed content), to the target type store. |
TypeStoreUser |
copy(SchemaTypeLoader schemaTypeLoader,
SchemaType schemaType,
XmlOptions options)
Makes a copy of this store. |
int |
count_elements(javax.xml.namespace.QName name)
Returns the count of elements with the given name owned by this textstore. |
int |
count_elements(QNameSet names)
Returns the count of elements that match of the names. |
XmlObject[] |
exec_query(java.lang.String queryExpr,
XmlOptions options)
|
java.lang.String |
fetch_text(int whitespaceRule)
A user of a TypeStore calls fetch_text when he knows his view of the text is invalid and he wants to see what the actual text value is. |
void |
find_all_element_users(javax.xml.namespace.QName name,
java.util.List fillMeUp)
Returns all the TypeStoreUsers corresponding to elements with the given name owned by this typestore, or the empty array of TypeStoreUsers if none was found. |
void |
find_all_element_users(QNameSet name,
java.util.List fillMeUp)
Returns all TypeStoreUsers corresponding to elements with one of the names is the QNameSet. |
TypeStoreUser |
find_attribute_user(javax.xml.namespace.QName name)
Returns the TypeStoreUser underneath the attribute with the given name, or null if there is no such attribute. |
TypeStoreUser |
find_element_user(javax.xml.namespace.QName name,
int i)
Returns the TypeStoreUser underneath the ith element with the given name owned by this textstore, or null if none was found. |
TypeStoreUser |
find_element_user(QNameSet names,
int i)
Like find_element_user but accepts a set of names to search for. |
boolean |
find_nil()
The TypeStore is reponsible for discovering if this value is nil. |
XmlLocale |
get_locale()
Returns the locale object which is used to manage thread safty and the gateway requirements for calls into the xml store |
java.lang.Object |
get_root_object()
Deprecated. |
SchemaField |
get_schema_field()
Here the typestore is resposible for finding the schema field for this object. |
SchemaTypeLoader |
get_schematypeloader()
Get the SchemaTypeLoader associated with the store contianing this TypeStore. |
javax.xml.namespace.QName |
get_xsi_type()
Get the value of xsi:type. |
TypeStoreUser |
insert_element_user(javax.xml.namespace.QName name,
int i)
Inserts a new element at the position that will make it the ith element with the given name owned by this textstore, and returns a TypeStoreUser for that element. |
TypeStoreUser |
insert_element_user(QNameSet set,
javax.xml.namespace.QName name,
int i)
Like the above method, except that it inserts an element named name, after the ith member of set. |
void |
invalidate_nil()
Called when the value has been nilled or unnilled, so the textstore knows it needs to update the xsi:nil attribute. |
void |
invalidate_text()
A user of a TypeStore calls invalidate_text when the underlying value has changed and he wants the textstore to call him back with a fetch_text (TypeStore/TypeStoreUsers work in pairs). |
boolean |
is_attribute()
Tells if this store is an attribute or not |
XmlCursor |
new_cursor()
Creates a new cursor positioned just before the part of the tree where this TypeStore is located. |
void |
remove_attribute(javax.xml.namespace.QName name)
Removes the attribute with the given name. |
void |
remove_element(javax.xml.namespace.QName name,
int i)
Removes the ith element with the given name. |
void |
remove_element(QNameSet names,
int i)
Removes the ith element that matches names. |
void |
store_text(java.lang.String text)
A user of a TypeStore calls store_text when he wants the TypeStore to remember the given text immediately. |
TypeStoreUser |
substitute(javax.xml.namespace.QName name,
SchemaType sType)
|
boolean |
validate_on_set()
Tells if this store was created with this option which tells the strongly typed objects to perform lexical and value validation after a setter is called. |
void |
validate(ValidatorListener vEventSink)
|
void |
visit_elements(TypeStoreVisitor visitor)
Visits all the elements immediately, using the given visitor. |
Methods inherited from interface org.apache.xmlbeans.impl.values.NamespaceManager |
---|
find_prefix_for_nsuri |
Methods inherited from interface org.apache.xmlbeans.impl.common.PrefixResolver |
---|
getNamespaceForPrefix |
Field Detail |
---|
static final int WS_UNSPECIFIED
static final int WS_PRESERVE
static final int WS_REPLACE
static final int WS_COLLAPSE
static final int NILLABLE
static final int HASDEFAULT
static final int FIXED
Method Detail |
---|
XmlCursor new_cursor()
void validate(ValidatorListener vEventSink)
SchemaTypeLoader get_schematypeloader()
TypeStoreUser change_type(SchemaType sType)
TypeStoreUser substitute(javax.xml.namespace.QName name, SchemaType sType)
boolean is_attribute()
javax.xml.namespace.QName get_xsi_type()
void invalidate_text()
java.lang.String fetch_text(int whitespaceRule)
void store_text(java.lang.String text)
java.lang.String compute_default_text()
int compute_flags()
boolean validate_on_set()
SchemaField get_schema_field()
void invalidate_nil()
boolean find_nil()
int count_elements(javax.xml.namespace.QName name)
int count_elements(QNameSet names)
TypeStoreUser find_element_user(javax.xml.namespace.QName name, int i)
TypeStoreUser find_element_user(QNameSet names, int i)
void find_all_element_users(javax.xml.namespace.QName name, java.util.List fillMeUp)
void find_all_element_users(QNameSet name, java.util.List fillMeUp)
TypeStoreUser insert_element_user(javax.xml.namespace.QName name, int i)
TypeStoreUser insert_element_user(QNameSet set, javax.xml.namespace.QName name, int i)
TypeStoreUser add_element_user(javax.xml.namespace.QName name)
void remove_element(javax.xml.namespace.QName name, int i)
void remove_element(QNameSet names, int i)
TypeStoreUser find_attribute_user(javax.xml.namespace.QName name)
TypeStoreUser add_attribute_user(javax.xml.namespace.QName name)
void remove_attribute(javax.xml.namespace.QName name)
TypeStoreUser copy_contents_from(TypeStore source)
TypeStoreUser copy(SchemaTypeLoader schemaTypeLoader, SchemaType schemaType, XmlOptions options)
void array_setter(XmlObject[] sources, javax.xml.namespace.QName elementName)
void visit_elements(TypeStoreVisitor visitor)
XmlObject[] exec_query(java.lang.String queryExpr, XmlOptions options) throws XmlException
XmlException
java.lang.Object get_root_object()
XmlLocale get_locale()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |