|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.types.jsdl.RecognisedElementParser
public abstract class RecognisedElementParser
| Constructor Summary | |
|---|---|
RecognisedElementParser()
|
|
| Method Summary | |
|---|---|
void |
addOtherNode(Node node)
Adds an unsupported node to this part of the JSDL. |
protected void |
addRecognisedElement(String namespace,
String localName)
Adds an element to the list of recognised elements. |
protected void |
addRecognisedElements(String namespace,
List<String> localNames)
|
protected void |
importOtherNodes(Document doc,
Element element)
Appends all the unsupported nodes to the given element. |
protected void |
parse(Element element)
Parses all the children of element. |
protected abstract void |
parseElement(Element e,
String namespace,
String localName)
|
void |
removeOtherNode(Node node)
Removes an unsupported node that was previously added. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecognisedElementParser()
| Method Detail |
|---|
protected void addRecognisedElement(String namespace,
String localName)
parseElement(Element, String, String) is called.
Unrecognised elements are added to the otherNodes list.
namespace - The namespace URI of the elemntlocalName - The local name of the element
protected void addRecognisedElements(String namespace,
List<String> localNames)
protected void parse(Element element)
parseElement(Element, String, String)
and unrecognised elements will be added to the otherNodes list.
element - public void addOtherNode(Node node)
node - The node to be added, usually an element. A copy of this node is made
and the original is not affected.public void removeOtherNode(Node node)
node - The node to be removed
protected void importOtherNodes(Document doc,
Element element)
doc - A document to be used as a factory for nodes.element - The parent elements to insert nodes under.
protected abstract void parseElement(Element e,
String namespace,
String localName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||