|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UpdateableStore
Store of an XQuery-Data-Model-tree.
| Method Summary | |
|---|---|
void |
appendForInsert(XDMIterator node)
Appends the passed not to the store. |
void |
checkNSXDM()
Check if the store has conflicting namespace binding or violates XDM constraints |
boolean |
containsOnlyAttrs()
Does this store only contain attributes? |
boolean |
containsTopAttrs()
Returns true if the sequence that is represented by this
store contains top attributes. |
int |
count()
Counts the items that are saved in this store. |
void |
delete(Identifier targetId)
Deletes the element that has the identifier targetId. |
java.lang.String |
getDoctypeRootElem()
If the store contains a document with a docdecls, return the root element definition |
Window |
getIteratorForId(Identifier identifier)
Returns Iterator that points on the token with the passed identifier in the store. |
Identifier |
getParentId(Identifier identifier)
Returns the Identifier of the event with the passed identifier. |
XDMIterator |
getParentIterator(Identifier id)
Get a window/iterator of the parent |
java.lang.String |
getPublicID()
If the store contains a document with a docdecls, return the public id |
StoreSet |
getStoreSet()
Get the StoreSet that the store belongs to |
java.lang.String |
getSystemID()
If the store contains a document with a docdecls, return the system id |
boolean |
hasParent(Identifier identifier)
Returns true if the event with the passed identifier has a parent. |
void |
insertAfter(Identifier targetId,
UpdateableStore store)
Inserts node after the element with the id
targetId into the store. |
void |
insertAttributes(Identifier targetId,
UpdateableStore store)
Inserts all attributes of node into the XML-start-tag that
has the identifier targetId. |
void |
insertBefore(Identifier targetId,
UpdateableStore store)
Inserts node before the element with the id
targetId into the store. |
void |
insertInto(Identifier targetId,
UpdateableStore store)
Inserts node into the element with the id
targetId. |
void |
insertIntoAsFirst(Identifier targetId,
UpdateableStore store)
Inserts node into the element with the id
targetId at first position. |
void |
insertIntoAsLast(Identifier targetId,
UpdateableStore store)
Inserts node into the element with the id
targetId at last position. |
boolean |
isEmpty()
Is this store empty? |
boolean |
isModified()
Has this store been modified since it has been initially loaded? |
void |
materialize()
|
void |
mergeCleanTextNodes()
Merges and/or removes multiple adjacent or empty text nodes under the same element |
UpdateableStore |
pullAttributes()
A store represents a sequence of elements. |
void |
rename(Identifier targetId,
QName qname)
Renames the element with the identifier targetId. |
void |
replaceNode(Identifier targetId,
UpdateableStore store)
Replaces the element with the identifier targetId with
node. |
void |
replaceNodeContent(Identifier targetId,
UpdateableStore store)
Replaces the content of the element with the identifier targetId with text. |
void |
replaceValue(Identifier targetId,
java.lang.String stringValue)
Replaces the string value of the element with the identifier targetId with stringValue. |
void |
setModified(boolean modVal)
Set the modification state of the store |
| Methods inherited from interface ch.ethz.mxquery.datamodel.Source |
|---|
compare, copySource, getIterator, getURI |
| Method Detail |
|---|
void materialize()
throws MXQueryException
MXQueryException
void appendForInsert(XDMIterator node)
throws MXQueryException
node -
MXQueryException
Window getIteratorForId(Identifier identifier)
throws MXQueryException
identifier -
identifier
cannot be found.
MXQueryException
XDMIterator getParentIterator(Identifier id)
throws MXQueryException
id - Node to take as base for the parent
MXQueryException
Identifier getParentId(Identifier identifier)
throws MXQueryException
identifier -
MXQueryException
boolean hasParent(Identifier identifier)
throws MXQueryException
identifier -
MXQueryException
void insertBefore(Identifier targetId,
UpdateableStore store)
throws MXQueryException
node before the element with the id
targetId into the store.
targetId - element identifierstore - some data (XQuery Data Model)
MXQueryException
void insertAfter(Identifier targetId,
UpdateableStore store)
throws MXQueryException
node after the element with the id
targetId into the store.
targetId - element identifierstore - some data (XQuery Data Model)
MXQueryException
void insertInto(Identifier targetId,
UpdateableStore store)
throws MXQueryException
node into the element with the id
targetId.
targetId - element identifierstore - some data (XQuery Data Model)
MXQueryException
void insertIntoAsFirst(Identifier targetId,
UpdateableStore store)
throws MXQueryException
node into the element with the id
targetId at first position.
targetId - element identifierstore - some data (XQuery Data Model)
MXQueryException
void insertIntoAsLast(Identifier targetId,
UpdateableStore store)
throws MXQueryException
node into the element with the id
targetId at last position.
targetId - element identifierstore - some data (XQuery Data Model)
MXQueryException
void insertAttributes(Identifier targetId,
UpdateableStore store)
throws MXQueryException
node into the XML-start-tag that
has the identifier targetId.
targetId - element identifierstore - attributes to insert (one attribute or a sequence of
attributes)
MXQueryException
void delete(Identifier targetId)
throws MXQueryException
targetId.
targetId - element identifier
MXQueryException
void replaceNode(Identifier targetId,
UpdateableStore store)
throws MXQueryException
targetId with
node.
targetId - element identifierstore - some data (XQuery Data Model)
MXQueryException
void replaceValue(Identifier targetId,
java.lang.String stringValue)
throws MXQueryException
targetId with stringValue.
targetId - element identifier (element must be an attribute, text,
comment, or processing instruction node)stringValue - data that contains a string
MXQueryException
void replaceNodeContent(Identifier targetId,
UpdateableStore store)
throws MXQueryException
targetId with text.
targetId - element identifier (element must be an XML-node)store - contains per facility only one text element (string, int, ...)
MXQueryException
void rename(Identifier targetId,
QName qname)
throws MXQueryException
targetId.
targetId - element identifier (element must be an XML-node, or processing
instruction node)qname - new name
MXQueryException
UpdateableStore pullAttributes()
throws MXQueryException
this
store) and deletes them in this store.
MXQueryException
boolean containsTopAttrs()
throws MXQueryException
this
store contains top attributes. Top means attributes that are saved
directly in the sequence and not indirectly inside other elements.
MXQueryException
boolean containsOnlyAttrs()
throws MXQueryException
MXQueryException
boolean isEmpty()
throws MXQueryException
MXQueryException
int count()
throws MXQueryException
MXQueryExceptionvoid setModified(boolean modVal)
boolean isModified()
java.lang.String getSystemID()
java.lang.String getPublicID()
java.lang.String getDoctypeRootElem()
StoreSet getStoreSet()
void mergeCleanTextNodes()
void checkNSXDM()
throws MXQueryException
MXQueryException
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||