|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the context for the current event. Events are added to the context _after_ they have been through the filtering process.
Method Summary | |
void |
addNode(StackableComponentI child)
Adds a childless node. |
void |
endChild()
End a node and adjusts context. |
StackableComponentI |
getCurrent()
Returns the current node. |
java.lang.String |
getEncoding()
Provides access to the encoding information from the XML declaration. |
boolean |
getExplicitXMLDecl()
Identifies whether or not the document included an XML declaration. |
java.lang.String |
getOrigin()
Returns a string identifying the origin of the document. |
StackableComponentI |
getParent()
Returns the component which is the parent of the current node. |
java.lang.String |
getStandalone()
Provides access to the standalone information from the XML declaration. |
java.lang.String |
getVersion()
Provides access to the version information from the XML declaration. |
boolean |
isSpace(char c)
Reports whether the character c is whitespace or not. |
void |
popLevel()
Pops the element level up one to undeclare namespaces whose scope is done. |
void |
pushLevel()
Pushes the element level one deeper for namespace-nesting. |
void |
reset()
clear everything in the namespace stack |
java.lang.String |
resolveEntity(java.lang.String entName)
Resolves an entity, hexRef, or decRef. |
void |
setEncoding(java.lang.String encoding)
Sets the character encoding of XML used by the document, retrieved from the XML declaration. |
void |
setEntity(java.lang.String name,
java.lang.String value)
Establishes an entity name-value relationship. |
void |
setExplicitXMLDecl(boolean happened)
Identifies whether the document contained an explicit XML declaration. |
void |
setOrigin(java.lang.String origin)
Accepts a string identifying the origin of the document. |
void |
setStandalone(java.lang.String standalone)
Sets the value of the standalone declaration, retrieved from the XML declaration. |
void |
setVersion(java.lang.String version)
Sets the version of XML used by the document, retrieved from the XML declaration. |
boolean |
setXMLDeclaration(java.lang.String declaration)
Takes a complete XML declaration for processing; returns false if there's an error. |
void |
startChild(StackableComponentI child)
Adds a new node to the stack and adjusts context. |
Methods inherited from interface com.simonstl.common.NamespaceStackI |
declarePrefix, getPrefix, getUri |
Method Detail |
public void setOrigin(java.lang.String origin)
public java.lang.String getOrigin()
public boolean setXMLDeclaration(java.lang.String declaration)
declaration
- the complete XML declaration, from to ?>public void setVersion(java.lang.String version)
version
- public java.lang.String getVersion()
public void setEncoding(java.lang.String encoding)
encoding
- public java.lang.String getEncoding()
public void setStandalone(java.lang.String standalone)
standalone
- public java.lang.String getStandalone()
public void setExplicitXMLDecl(boolean happened)
happened
- - true if the document had a decl, false if notpublic boolean getExplicitXMLDecl()
public StackableComponentI getParent()
public StackableComponentI getCurrent()
public void startChild(StackableComponentI child)
public void endChild()
public void addNode(StackableComponentI child)
public void setEntity(java.lang.String name, java.lang.String value)
name
- name of the entityvalue
- value of the entitypublic java.lang.String resolveEntity(java.lang.String entName)
entName
- the name of the entity or ref, minus the & and ;
public boolean isSpace(char c)
c
- a character to test
public void pushLevel()
NamespaceStackI
pushLevel
in interface NamespaceStackI
public void popLevel()
NamespaceStackI
popLevel
in interface NamespaceStackI
public void reset()
NamespaceStackI
reset
in interface NamespaceStackI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |