|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.tireme.schemadoc.xs2dtd.SDDTD.DTDHandlerDOMUtils
public class DTDHandlerDOMUtils
DOM utilities dedicated to fr.tireme.schemadoc.xs2dtd.SDDTD.DTDHandler class
| Constructor Summary | |
|---|---|
DTDHandlerDOMUtils(org.w3c.dom.Document doc_)
|
|
| Method Summary | |
|---|---|
java.util.List |
getFirstPEWithLocalName(org.w3c.dom.Node node,
java.lang.String localName_)
Gets first encountered PE, either a PeDef or a PeRef, with given localName |
java.lang.String |
getHandlerID(org.w3c.dom.Node elem)
Gets the root ID attribute value (xs2dtdHanlder top node) of the given node |
java.lang.String |
getHandlerID(java.lang.String name_)
Gets the root ID attribute value (xs2dtdHanlder top node) of the node identified by the given name |
java.lang.String |
getID(org.w3c.dom.Node node_)
Gets the id attribute value of the element identified by the given name |
java.lang.String |
getID(java.lang.String name_)
Gets the id attribute value of the element identified by the given name |
org.w3c.dom.Node |
getIncludeNodeWithID(java.lang.String includeID_)
Gets the according include Node |
java.lang.String |
getLocalName(org.w3c.dom.Node node_)
Gets the localName of this node, if any |
org.w3c.dom.Node |
getNodeWithID(java.lang.String id_)
Gets the DOM element which id match the given id |
org.w3c.dom.NodeList |
getPeDefs()
Gets all the peDef nodes |
java.util.List<org.w3c.dom.Node> |
getPeDefsEndingWith(java.lang.String localNameEnd)
Gets all the peDefs which localName ends with the given String parameter |
java.util.List |
getPeNodesWithLocalName(org.w3c.dom.Node node,
java.lang.String localName_)
Searches for peDef and peRef nodes. |
org.w3c.dom.Node |
getXs2dtdHandlerNodeWithID(java.lang.String id_)
Gets the xs2dtdHanlder node which id match the given id |
boolean |
isChildUnique(org.w3c.dom.Node parentNode,
java.lang.String localName_,
java.lang.String nameSpace_)
Searches for child nodes with the same localName & namespace in the parent node |
boolean |
isElemDeclUnique(java.lang.String localName_,
java.lang.String nameSpace_)
Searches for elements with the same localName & namespace |
boolean |
isFirst(org.w3c.dom.Node peDef1,
org.w3c.dom.Node peDef2)
Is this (first param) peDef node first? |
boolean |
isIDUnique(java.lang.String id_)
Searches for peRefs and 'localName' nodes which have the given ID |
boolean |
isPeDefPeRefed(java.lang.String peDefLocalName)
Gets if the given peDef is referenced by a peRef somewhere ... |
void |
removeEmptyComments()
Remove empty comments from generated DTDHandler |
void |
removeUnRefedForMixedGroups()
Remove unused created 'formixed' group declarations |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DTDHandlerDOMUtils(org.w3c.dom.Document doc_)
| Method Detail |
|---|
public java.lang.String getHandlerID(org.w3c.dom.Node elem)
throws Xs2dtdException
elem - - node
Xs2dtdException
public java.lang.String getHandlerID(java.lang.String name_)
throws Xs2dtdException
name_ - - name
Xs2dtdException
public boolean isIDUnique(java.lang.String id_)
throws Xs2dtdException
id_ - - ID
Xs2dtdException
public boolean isChildUnique(org.w3c.dom.Node parentNode,
java.lang.String localName_,
java.lang.String nameSpace_)
throws Xs2dtdException
parentNode - localName_ - nameSpace_ -
Xs2dtdException
public boolean isElemDeclUnique(java.lang.String localName_,
java.lang.String nameSpace_)
throws Xs2dtdException
localName_ - nameSpace_ -
Xs2dtdException
public org.w3c.dom.Node getNodeWithID(java.lang.String id_)
throws Xs2dtdException
id_ -
Xs2dtdException
public org.w3c.dom.Node getXs2dtdHandlerNodeWithID(java.lang.String id_)
throws Xs2dtdException
id_ -
Xs2dtdException
public boolean isPeDefPeRefed(java.lang.String peDefLocalName)
throws Xs2dtdException
peDefLocalName - - peDef local name
Xs2dtdException
public org.w3c.dom.NodeList getPeDefs()
throws Xs2dtdException
Xs2dtdException
public java.util.List getFirstPEWithLocalName(org.w3c.dom.Node node,
java.lang.String localName_)
throws Xs2dtdException
node - - parent nodelocalName_ -
Xs2dtdException
public java.util.List getPeNodesWithLocalName(org.w3c.dom.Node node,
java.lang.String localName_)
throws Xs2dtdException
node - localName_ -
Xs2dtdException
public java.lang.String getLocalName(org.w3c.dom.Node node_)
throws Xs2dtdException
node_ -
Xs2dtdException
public java.lang.String getID(java.lang.String name_)
throws Xs2dtdException
name_ -
Xs2dtdException
public java.lang.String getID(org.w3c.dom.Node node_)
throws Xs2dtdException
node_ -
Xs2dtdException
public boolean isFirst(org.w3c.dom.Node peDef1,
org.w3c.dom.Node peDef2)
throws Xs2dtdException
peDef1 - - peDef nodepeDef2 - - peDef node
Xs2dtdException
public org.w3c.dom.Node getIncludeNodeWithID(java.lang.String includeID_)
throws Xs2dtdException
includeID_ -
Xs2dtdException
public void removeEmptyComments()
throws Xs2dtdException
Xs2dtdException
public java.util.List<org.w3c.dom.Node> getPeDefsEndingWith(java.lang.String localNameEnd)
throws Xs2dtdException
localNameEnd - - to match with the end of localNames
Xs2dtdException
public void removeUnRefedForMixedGroups()
throws Xs2dtdException
Xs2dtdException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||