public interface DocDefHandler
| Modifier and Type | Method and Description |
|---|---|
void |
addExtraDataCurLink(Object data) |
void |
addExtraDataNode(String uniqueName,
String typeName,
Object data) |
void |
character(char c)
Called each time a character , ( ) or | is found.
|
boolean |
doesElementExist(String typeName)
Does this element exist at this point? Either thru a startElement() creation,
or thru an element() reference.
|
void |
element(String uniqueName,
String name,
int instance) |
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
(.
|
void |
endDocument() |
void |
endElement() |
void |
endGroupElements(int instance) |
void |
javaType(String uniqueName,
String name,
String javaType)
Called to request that the current graph node be of a certain
Java class.
|
void |
nillable(boolean value) |
void |
setAbstract(String uniqueName,
String name,
boolean value) |
void |
setDefaultNamespace(String ns)
Set the namespace that will be used by default in the documents.
|
void |
setExtendedProperty(String uniqueName,
String typeName,
String propertyName,
Object value)
set a special property to some value.
|
void |
setExtension(String uniqueName,
String typeName,
String extendsName) |
void |
setPrefixGuesser(PrefixGuesser guesser)
Establish a prefix guesser
|
void |
setUnion(String uniqueName,
String typeName,
boolean value) |
void |
startDocument(String root)
Called once, when the DTD is started to be parsed.
|
void |
startElement(String uniqueName,
String typeName,
int type)
Called each time a DTD
|
void |
startGroupElements()
These methods are called to signal the beginning of the ( and )
in an ELEMENT declaration.
|
void startDocument(String root)
root - root elemement name of the document (as the DOCTYPE
specifies in the XML document)void endDocument()
void startElement(String uniqueName, String typeName, int type)
name - the name of the elementtypeName - is the name to use for the attributetype - the type (as a constant) of the element (for example
TYPE_ELEMENT or TYPE_ATTLIST)void endElement()
boolean doesElementExist(String typeName)
void startGroupElements()
void endGroupElements(int instance)
void character(char c)
void element(String uniqueName, String typeName, String attrName, String attrNamespace, int instance, boolean externalType, String defaultValue)
name - the name of the element defined within the
declaration.instance - has one of the three values: INSTANCE_0_1,
INSTANCE_1, INSTANCE_0_N, INSTANCE_1_Nvoid setUnion(String uniqueName, String typeName, boolean value) throws Schema2BeansException
Schema2BeansExceptionvoid addExtraDataNode(String uniqueName, String typeName, Object data) throws Schema2BeansException
Schema2BeansExceptionvoid addExtraDataCurLink(Object data)
void setExtension(String uniqueName, String typeName, String extendsName) throws Schema2BeansException
Schema2BeansExceptionvoid nillable(boolean value)
void javaType(String uniqueName, String name, String javaType)
javaType - is the name of a Java class (eg, "java.lang.Integer", or "int").void setDefaultNamespace(String ns)
void setExtendedProperty(String uniqueName, String typeName, String propertyName, Object value) throws Schema2BeansException
Schema2BeansExceptionvoid setPrefixGuesser(PrefixGuesser guesser)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.