|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.tireme.schemadoc.xs2dtd.SDDTD.DTDHandler
public class DTDHandler
Enable the creation of objects needed by the XS2DTDHandler structure as defines in
DTDHandler. The class is used by
DTDProcessor which is the main process builder. This class enables an
abstraction level that keeps the XS2DTDHandler structure fully private in its implementation.
| Constructor Summary | |
|---|---|
DTDHandler(java.lang.String localxs2DTDHandler)
Constructor for the DTDBuilder object |
|
| Method Summary | |
|---|---|
void |
addAny()
Adds ANY node |
void |
addAttribute()
Adds an Attribute Node to the current Node |
void |
addAttributes()
Adds an Attributes Node. |
void |
addAttributeTypeContent()
Adds an AttributeTypeContent Node to the current Node, and makes it become the current Node. |
void |
addCdata()
Adds a cdata Node to the current Node |
void |
addChildren()
Adds a Children Node to the current Node, and makes it become the current Node. |
void |
addChoice(java.lang.String occurs)
Adds a Choice Node with its occurence to the current Node |
void |
addComment(int category)
Adds a predefined comment given the specified category to the contextual comment Node |
void |
addComment(java.lang.String commentary,
int category)
Adds a text commentary into a predefined comment given the specified category to the contextual comment Node |
void |
addCommentTo(org.w3c.dom.Node node,
java.lang.String value,
int category)
Adds a text commentary into a predefined comment given the specified category to the contextual comment Node |
void |
addContentModel()
Adds a ContentModel Node to the current Node |
void |
addContentModel(boolean usedInMixedContent)
Adds a ContentModel Node to the current Node |
void |
addDeclarations()
Adds a Declarations node |
void |
addDefaultValue(java.lang.String def_)
Adds a default node |
void |
addDtd()
Adds an dtd Node to the current Node |
void |
addElementDecl()
Adds an ElementDecl Node to the current Node |
void |
addElementRef(java.lang.String name,
java.lang.String targetNamespace,
java.lang.String occurs)
Adds an ElementRef Node to the current Node, with the name and targetnamespace attributes, and makes it become the current Node. |
void |
addEmpty()
Adds EMPTY node |
void |
addEnum()
Adds an enum Node to the current Node |
void |
addEnumItem(java.lang.String value)
Adds an EnumItem Node with his value to the current Node |
void |
addExternalRef()
Adds an ExternalRef Node to the current Node, and makes it become the current Node. |
void |
addExternalRef(java.lang.String id_)
Adds an ExternalRef Node to the current Node, and makes it become th current Node. |
void |
addFixedValue(java.lang.String fixed_)
Adds a default node |
void |
addGlobalProperties()
Adds a GlobalProperties node |
void |
addId()
Adds an id Node to the current Node |
void |
addIdref()
Adds an idref Node to the current Node |
void |
addIdrefs()
Adds an idrefs Node to the current Node |
void |
addLostFacetsComment(java.util.List lostFacets)
Adds lost facets node |
void |
addMixed()
Adds a Mixed Node to the current Node, and makes it become the current Node. |
void |
addNmtoken()
Adds an nmtoken Node to the current Node |
void |
addNmtokens()
Adds an nmtokens Node to the current Node |
void |
addNodeComment(org.w3c.dom.Node domElement)
Adds DOM Node commentary to the contextual comment Node |
void |
addNodeComment(org.w3c.dom.Node nodeComment,
int category)
Adds a DOM node into a predefined comment given the specified category to the contextual comment Node |
void |
addNodeComment(org.w3c.dom.Node nodeComment,
java.lang.String value,
int category)
Adds a DOM node into a predefined comment given the specified category to the contextual comment Node |
void |
addNsDef(java.lang.String prefix_,
java.lang.String namespace_)
Adds an NsDef node to the top nsDefsNode node |
void |
addNsDefs()
Create the nsDefsNode node |
void |
addPeDef()
Adds a PeDef Node to the current Node, and makes it become the current Node. |
void |
addPeRef(QName qName,
java.lang.String id_,
java.lang.String occurs)
Adds a PeRef Node to the current Node, with the name and targetnamespace attributes, and makes it become the current Node. |
void |
addPeRef(QName qName,
java.lang.String id_,
java.lang.String occurs,
boolean suspicious)
Adds a PeRef Node to the current Node, with the name and targetnamespace attributes. |
void |
addPublicEntitySetName(java.lang.String dtdPublicName_)
Adds public set entity name node |
void |
addqName(QName qName,
java.lang.String id_)
Adds a qName Node to the current Node, with the name and targetnamespace attributes |
void |
addQualificationScope(java.lang.String elemQualif_,
java.lang.String attQualif_)
|
void |
addSchema(SDSchema schema_)
Store the given schema |
void |
addSchemaOrigin(SDElement element)
Adds a schemaOrigin node {element schema's id/element's name} |
void |
addSDProperties()
|
void |
addSDProperty(java.lang.String propName,
java.lang.String propValue)
|
void |
addSequence()
Adds a Sequence Node |
void |
addSequence(java.lang.String occurs)
Adds a Sequence Node with its occurence to the current Node |
void |
addSystemLocation(java.lang.String dtdLocation_)
Adds systemLocation node |
void |
addTargetNamespace(java.lang.String targetNS_)
Adds a targetNamespace xsFileProperties's child |
void |
addTextComment(java.lang.String commentary)
Adds a commentary to the contextual comment Node |
void |
addTextCommentTo(org.w3c.dom.Node node,
java.lang.String commentary)
Adds a commentary to the given comment Node |
void |
addUse(java.lang.String kind)
Adds a use Node to the current Node |
void |
addXS2DTDHandler(SDSchema schema_)
Adds an xs2dtdHandler node |
void |
addxs2dtdHandlerRef(java.lang.String xs2dtdHandlerRef_)
Adds xs2dtdhandler node |
void |
addXsFileProperties(java.lang.String fileLocation_)
Adds a xsFileProperties node |
void |
addXsProperties()
Adds xsProperties node |
void |
appendNsDef(java.lang.String prefix_,
java.lang.String namespace_)
Append a new NsDef node to the top nsDefsNode node |
void |
emptyContentModel()
Empty the current content model |
org.w3c.dom.Node |
getCurrentNode()
Gets the current node |
org.w3c.dom.Document |
getDocument()
Returns the DOM representation of the intermediate XML format |
java.lang.String |
getImportPrefix(java.lang.String namespace)
Retrieve the prefix attached to the given namespace |
SDSchema |
getRootSchema()
Gets the root schema |
SDSchema |
getSchema(java.lang.String key)
Gets a schema given the specified key |
boolean |
isCurrentNodeContentModel()
Returns true if the node name of the current node is equal to Symbols.CONTENTMODEL_ELT_NAME |
boolean |
isParentNodeDeclarations()
Returns true if the node name of the parent node is equal to Symbols.DECLARATIONS_ELT_NAME |
void |
placeComment()
Creates a comment element or move an existing one. |
void |
placeComment(org.w3c.dom.Node node)
Creates a comment element or moved an existing one. |
void |
setCurrentNode(org.w3c.dom.Node node_)
Reassigns the current node |
void |
setRootSchema(SDSchema schema_)
Sets the root schema |
void |
up()
Ends the current Node. |
void |
updateNamespaces(SDSchema schema_)
Updates targetNamespaces of XS2DTDHandler root. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DTDHandler(java.lang.String localxs2DTDHandler)
throws javax.xml.parsers.ParserConfigurationException
localxs2DTDHandler -
javax.xml.parsers.ParserConfigurationException| Method Detail |
|---|
public void updateNamespaces(SDSchema schema_)
schema_ - public java.lang.String getImportPrefix(java.lang.String namespace)
namespace -
public org.w3c.dom.Document getDocument()
public void setRootSchema(SDSchema schema_)
schema_ - public SDSchema getRootSchema()
public void addSchema(SDSchema schema_)
schema_ -
Xs2dtdExceptionpublic SDSchema getSchema(java.lang.String key)
key -
public void setCurrentNode(org.w3c.dom.Node node_)
node_ - - new nodepublic org.w3c.dom.Node getCurrentNode()
public void addXS2DTDHandler(SDSchema schema_)
throws Xs2dtdException
schema_ -
Xs2dtdException - void -
public void addGlobalProperties()
throws Xs2dtdException
Xs2dtdException - void -
public void addDeclarations()
throws Xs2dtdException
Xs2dtdException - void -
public void addElementDecl()
throws Xs2dtdException
Xs2dtdException
public void addContentModel()
throws Xs2dtdException
Xs2dtdException
public void emptyContentModel()
throws Xs2dtdException
Xs2dtdExceptionpublic boolean isCurrentNodeContentModel()
public boolean isParentNodeDeclarations()
public void addContentModel(boolean usedInMixedContent)
throws Xs2dtdException
usedInMixedContent - - true if used in mixed
Xs2dtdException
public void addAttributes()
throws Xs2dtdException
Xs2dtdException
public void addSequence(java.lang.String occurs)
throws Xs2dtdException
occurs - - The resolved occurence.
Xs2dtdException
public void addSequence()
throws Xs2dtdException
Xs2dtdException
public void addChoice(java.lang.String occurs)
throws Xs2dtdException
occurs - - The resolved occurence.
Xs2dtdException
public void addPeDef()
throws Xs2dtdException
Xs2dtdException
public void addPeRef(QName qName,
java.lang.String id_,
java.lang.String occurs,
boolean suspicious)
throws Xs2dtdException
qName - - Its contains the name and targetnamespaceid_ - - IDoccurs - - The feature to be added to the PeRef attributesuspicious - - true if localName of reference is suspicious
Xs2dtdException
public void addPeRef(QName qName,
java.lang.String id_,
java.lang.String occurs)
throws Xs2dtdException
qName - - Its contains the name and targetnamespaceid_ - - IDoccurs - - The feature to be added to the PeRef attribute
Xs2dtdException
public void addElementRef(java.lang.String name,
java.lang.String targetNamespace,
java.lang.String occurs)
throws Xs2dtdException
name - - The name of the elementtargetNamespace - - The targetNamespace of the elementoccurs - - The feature to be added to the ElementRef attribute
Xs2dtdException
public void addXsProperties()
throws Xs2dtdException
Xs2dtdException - void -
public void addXsFileProperties(java.lang.String fileLocation_)
throws Xs2dtdException
fileLocation_ - - file Location
Xs2dtdException - void -
public void addTargetNamespace(java.lang.String targetNS_)
throws Xs2dtdException
targetNS_ - - targetNamespace
Xs2dtdException - void -
public void addQualificationScope(java.lang.String elemQualif_,
java.lang.String attQualif_)
throws Xs2dtdException
elemQualif_ - attQualif_ -
Xs2dtdException
public void addSDProperty(java.lang.String propName,
java.lang.String propValue)
throws Xs2dtdException
propName - propValue -
Xs2dtdException
public void addSDProperties()
throws Xs2dtdException
Xs2dtdException
public void addNsDefs()
throws Xs2dtdException
Xs2dtdException
public void addNsDef(java.lang.String prefix_,
java.lang.String namespace_)
throws Xs2dtdException
prefix_ - - Namespsace prefixnamespace_ - - Namespsace
Xs2dtdException
public void appendNsDef(java.lang.String prefix_,
java.lang.String namespace_)
throws Xs2dtdException
prefix_ - - Namespsace prefixnamespace_ - - Namespsace
Xs2dtdException
public void addExternalRef(java.lang.String id_)
throws Xs2dtdException
id_ -
Xs2dtdException
public void addExternalRef()
throws Xs2dtdException
Xs2dtdException
public void addSystemLocation(java.lang.String dtdLocation_)
throws Xs2dtdException
dtdLocation_ - - path
Xs2dtdException
public void addPublicEntitySetName(java.lang.String dtdPublicName_)
throws Xs2dtdException
dtdPublicName_ - - dtd public name value
Xs2dtdException
public void addxs2dtdHandlerRef(java.lang.String xs2dtdHandlerRef_)
throws Xs2dtdException
xs2dtdHandlerRef_ - - the handler id
Xs2dtdException
public void addMixed()
throws Xs2dtdException
Xs2dtdException
public void addChildren()
throws Xs2dtdException
Xs2dtdExceptionpublic void up()
public void placeComment()
throws Xs2dtdException
Xs2dtdException
public void placeComment(org.w3c.dom.Node node)
throws Xs2dtdException
node -
Xs2dtdException
public void addTextComment(java.lang.String commentary)
throws Xs2dtdException
commentary - - the commentary to add
Xs2dtdException
public void addTextCommentTo(org.w3c.dom.Node node,
java.lang.String commentary)
throws Xs2dtdException
node - - node to which the comment is addedcommentary - - the commentary to add
Xs2dtdException
public void addComment(int category)
throws Xs2dtdException
category - - comment category
Xs2dtdException
public void addComment(java.lang.String commentary,
int category)
throws Xs2dtdException
commentary - - the commentary to addcategory - - comment category
Xs2dtdException
public void addCommentTo(org.w3c.dom.Node node,
java.lang.String value,
int category)
throws Xs2dtdException
node - - node to which the comment is addedvalue - - the value of the predefined comment' attributecategory - - comment category
Xs2dtdException
public void addNodeComment(org.w3c.dom.Node nodeComment,
java.lang.String value,
int category)
throws Xs2dtdException
nodeComment - - node commentvalue - - possible predefined comment's attribute valuecategory - - comment category
Xs2dtdException
public void addNodeComment(org.w3c.dom.Node nodeComment,
int category)
throws Xs2dtdException
nodeComment - - node commentcategory - - comment category
Xs2dtdException
public void addNodeComment(org.w3c.dom.Node domElement)
throws Xs2dtdException
domElement - - the DOM Node to add
Xs2dtdException
public void addLostFacetsComment(java.util.List lostFacets)
throws Xs2dtdException
lostFacets - - list of String facet
Xs2dtdException
public void addAttributeTypeContent()
throws Xs2dtdException
Xs2dtdException
public void addAttribute()
throws Xs2dtdException
Xs2dtdException
public void addDtd()
throws Xs2dtdException
Xs2dtdException
public void addEnum()
throws Xs2dtdException
Xs2dtdException
public void addEnumItem(java.lang.String value)
throws Xs2dtdException
value - - the enumeration value
Xs2dtdException
public void addId()
throws Xs2dtdException
Xs2dtdException
public void addAny()
throws Xs2dtdException
Xs2dtdException
public void addEmpty()
throws Xs2dtdException
Xs2dtdException
public void addIdref()
throws Xs2dtdException
Xs2dtdException
public void addIdrefs()
throws Xs2dtdException
Xs2dtdException
public void addNmtoken()
throws Xs2dtdException
Xs2dtdException
public void addNmtokens()
throws Xs2dtdException
Xs2dtdException
public void addCdata()
throws Xs2dtdException
Xs2dtdException
public void addUse(java.lang.String kind)
throws Xs2dtdException
kind - - attribute value
Xs2dtdException
public void addDefaultValue(java.lang.String def_)
throws Xs2dtdException
def_ - - default value
Xs2dtdException
public void addFixedValue(java.lang.String fixed_)
throws Xs2dtdException
fixed_ - - default value
Xs2dtdException
public void addqName(QName qName,
java.lang.String id_)
throws Xs2dtdException
qName - - Its contains the name and the targetnamespaceid_ - - ID
Xs2dtdException
public void addSchemaOrigin(SDElement element)
throws Xs2dtdException
element - - element
Xs2dtdException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||