public interface TypeStore extends NamespaceManager
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
TypeStoreUser |
add_attribute_user(QName name)
Adds an attribute with the given name and returns a TypeStoreUser
underneath it.
|
TypeStoreUser |
add_element_user(QName name)
Adds a new element at the last position adjacent to existing
elements of the same name.
|
void |
array_setter(XmlObject[] sources,
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).
|
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(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(String queryExpr,
XmlOptions options) |
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(QName name,
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,
List fillMeUp)
Returns all TypeStoreUsers corresponding to elements with one
of the names is the QNameSet.
|
TypeStoreUser |
find_attribute_user(QName name)
Returns the TypeStoreUser underneath the attribute with the given
name, or null if there is no such attribute.
|
TypeStoreUser |
find_element_user(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
|
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.
|
QName |
get_xsi_type()
Get the value of xsi:type.
|
TypeStoreUser |
insert_element_user(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,
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(QName name)
Removes the attribute with the given name.
|
void |
remove_element(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(String text)
A user of a TypeStore calls store_text when he wants the TypeStore
to remember the given text immediately.
|
TypeStoreUser |
substitute(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.
|
find_prefix_for_nsuri
getNamespaceForPrefix
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
XmlCursor new_cursor()
void validate(ValidatorListener vEventSink)
SchemaTypeLoader get_schematypeloader()
TypeStoreUser change_type(SchemaType sType)
TypeStoreUser substitute(QName name, SchemaType sType)
boolean is_attribute()
QName get_xsi_type()
void invalidate_text()
String fetch_text(int whitespaceRule)
void store_text(String text)
String compute_default_text()
int compute_flags()
boolean validate_on_set()
SchemaField get_schema_field()
void invalidate_nil()
boolean find_nil()
int count_elements(QName name)
int count_elements(QNameSet names)
TypeStoreUser find_element_user(QName name, int i)
TypeStoreUser find_element_user(QNameSet names, int i)
void find_all_element_users(QName name, List fillMeUp)
void find_all_element_users(QNameSet name, List fillMeUp)
TypeStoreUser insert_element_user(QName name, int i)
TypeStoreUser insert_element_user(QNameSet set, QName name, int i)
TypeStoreUser add_element_user(QName name)
void remove_element(QName name, int i)
void remove_element(QNameSet names, int i)
TypeStoreUser find_attribute_user(QName name)
TypeStoreUser add_attribute_user(QName name)
void remove_attribute(QName name)
TypeStoreUser copy_contents_from(TypeStore source)
TypeStoreUser copy(SchemaTypeLoader schemaTypeLoader, SchemaType schemaType, XmlOptions options)
void array_setter(XmlObject[] sources, QName elementName)
void visit_elements(TypeStoreVisitor visitor)
XmlObject[] exec_query(String queryExpr, XmlOptions options) throws XmlException
XmlException
Object get_root_object()
XmlLocale get_locale()
Copyright © 2010 - 2020 Adobe. All Rights Reserved