|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.oxml.OXMLContext
public class OXMLContext
Execution context
| Constructor Summary | |
|---|---|
OXMLContext(Document document)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
checkUsed(Node node,
OXMLReaderOutput output)
Checks if the node has been used. |
void |
collect(String collectionName,
Object collectionItem)
Collects a value. |
void |
contextPutAll(Map<String,Object> context)
Puts all the instances in the context instance map. |
void |
fill(OXMLReaderOutput output)
Fills the output. |
protected void |
fillCollections(Map<String,Set<Object>> collections)
Merges the collections. |
protected void |
fillWarnings(OXMLReaderOutput output)
Fills the warnings. |
OXMLContextConfig |
getConfig()
Gets the config. |
NodeList |
getNodeList(String path)
Returns a list of nodes from the current node using an XPath expression. |
Object |
getTargetRoot()
Returns the generated target. |
XPathUtils |
getXpath()
Returns the XPath utility. |
Object |
instanceGet(String id)
Gets a registered instance. |
Object |
instancePeek()
Peeks an instance from the stack |
Object |
instancePop()
Pops an instance from the stack |
void |
instancePush(Object instance)
Pushes an instance onto the stack. |
void |
instancePut(String id,
Object instance)
Registers an instance. |
void |
markUsed(Node node)
Marks the node as being used. |
Object |
newInstance(String className)
New instance. |
Node |
nodePeek()
Peeks a node from the stack |
Node |
nodePop()
Pops a node from the stack |
void |
nodePush(Node node)
Pushes a node onto the stack. |
protected boolean |
nodeUsed(Node node)
Node used. |
SequenceOXMLAction |
sequenceGet(String id)
Gets a sequence. |
void |
sequencePut(SequenceOXMLAction sequence)
Registers a sequence. |
void |
setConfig(OXMLContextConfig config)
Sets the config. |
void |
setPackageName(String packageName)
Sets the root package name to use when loading classes whose only a simple name is given |
void |
setRoot(Object instance)
Sets an instance as being the root. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OXMLContext(Document document)
document - Source document| Method Detail |
|---|
protected void checkUsed(Node node,
OXMLReaderOutput output)
node has been used.
node - Node to checkoutput - Output to fill
public void collect(String collectionName,
Object collectionItem)
collectionName - Name of the collectioncollectionItem - Item to add into the collectionpublic void contextPutAll(Map<String,Object> context)
context - Index of instance to load in the contextpublic void fill(OXMLReaderOutput output)
output - Output to fillprotected void fillCollections(Map<String,Set<Object>> collections)
collections - Collections to fillprotected void fillWarnings(OXMLReaderOutput output)
output - Output to fillpublic OXMLContextConfig getConfig()
public NodeList getNodeList(String path)
path - XPath expression
XPathUtils.selectNodeList(org.w3c.dom.Node, String)public Object getTargetRoot()
public XPathUtils getXpath()
public Object instanceGet(String id)
id - ID for the instance
null if not registered.public Object instancePeek()
Stack.peek()public Object instancePop()
Stack.pop()public void instancePush(Object instance)
instance - Instance to pushStack.push(Object)
public void instancePut(String id,
Object instance)
id - ID for the instanceinstance - Instance to registerpublic void markUsed(Node node)
node - Node to mark (if null, nothing is node)public Object newInstance(String className)
className - the class name
public Node nodePeek()
Stack.peek()public Node nodePop()
Stack.pop()public void nodePush(Node node)
node - Node to pushStack.push(Object)protected boolean nodeUsed(Node node)
node - the node
public SequenceOXMLAction sequenceGet(String id)
id - Sequence ID
public void sequencePut(SequenceOXMLAction sequence)
sequence - the sequence to registerpublic void setConfig(OXMLContextConfig config)
config - the new configpublic void setPackageName(String packageName)
packageName - Package namepublic void setRoot(Object instance)
instance - Instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||