| org.netbeans.modules.schema2beansdev.DocDefHandler
All known Subclasses: org.netbeans.modules.schema2beansdev.TreeBuilder,
DocDefHandler | public interface DocDefHandler (Code) | | The DTD parser handler
|
Method Summary | |
public void | addExtraDataCurLink(Object data) | public void | addExtraDataNode(String uniqueName, String typeName, Object data) | public void | character(char c) Called each time a character , ( ) or | is found. | public boolean | doesElementExist(String typeName) Does this element exist at this point? Either thru a startElement() creation,
or thru an element() reference. | public void | element(String uniqueName, String typeName, String attrName, String attrNamespace, int instance, boolean externalType, String defaultValue) Called for each name element found within the scope of an element
(. | public void | element(String uniqueName, String name, int instance) | public void | endDocument() | public void | endElement() | public void | endGroupElements(int instance) | public void | javaType(String uniqueName, String name, String javaType) Called to request that the current graph node be of a certain
Java class. | public void | nillable(boolean value) | public void | setAbstract(String uniqueName, String name, boolean value) | public void | setDefaultNamespace(String ns) Set the namespace that will be used by default in the documents. | public void | setExtendedProperty(String uniqueName, String typeName, String propertyName, Object value) set a special property to some value. | public void | setExtension(String uniqueName, String typeName, String extendsName) | public void | setPrefixGuesser(PrefixGuesser guesser) | public void | setUnion(String uniqueName, String typeName, boolean value) | public void | startDocument(String root) Called once, when the DTD is started to be parsed. | public void | startElement(String uniqueName, String typeName, int type) Called each time a DTD | public void | startGroupElements() These methods are called to signal the beginning of the ( and )
in an ELEMENT declaration. |
addExtraDataCurLink | public void addExtraDataCurLink(Object data)(Code) | | |
character | public void character(char c)(Code) | | Called each time a character , ( ) or | is found.
|
doesElementExist | public boolean doesElementExist(String typeName)(Code) | | Does this element exist at this point? Either thru a startElement() creation,
or thru an element() reference.
|
element | public void element(String uniqueName, String typeName, String attrName, String attrNamespace, int instance, boolean externalType, String defaultValue)(Code) | | Called for each name element found within the scope of an element
(. The first element name doesn't
generate a call to this method (@see startElement).
Parameters: name - the name of the element defined within the declaration. Parameters: instance - has one of the three values: INSTANCE_0_1,INSTANCE_1, INSTANCE_0_N, INSTANCE_1_N |
endDocument | public void endDocument()(Code) | | |
endElement | public void endElement()(Code) | | |
endGroupElements | public void endGroupElements(int instance)(Code) | | |
javaType | public void javaType(String uniqueName, String name, String javaType)(Code) | | Called to request that the current graph node be of a certain
Java class.
Parameters: javaType - is the name of a Java class (eg, "java.lang.Integer", or "int"). |
nillable | public void nillable(boolean value)(Code) | | |
setDefaultNamespace | public void setDefaultNamespace(String ns)(Code) | | Set the namespace that will be used by default in the documents.
|
setPrefixGuesser | public void setPrefixGuesser(PrefixGuesser guesser)(Code) | | Establish a prefix guesser
|
startDocument | public void startDocument(String root)(Code) | | Called once, when the DTD is started to be parsed.
Parameters: root - root elemement name of the document (as the DOCTYPEspecifies in the XML document) |
startElement | public void startElement(String uniqueName, String typeName, int type)(Code) | | Called each time a DTD Parameters: name - the name of the element Parameters: typeName - is the name to use for the attribute Parameters: type - the type (as a constant) of the element (for exampleTYPE_ELEMENT or TYPE_ATTLIST) |
startGroupElements | public void startGroupElements()(Code) | | These methods are called to signal the beginning of the ( and )
in an ELEMENT declaration. startGroupElements is called when
an open parenthese is found and endGroupElements is called
when the closed parenthese is found. The closing parenthese
might be followed by the character *, + or ?. The instance
value of the method call reflects this character value.
|
|
|