|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.apache.xerces.dom.NodeImpl | +--org.enhydra.apache.xerces.dom.ChildNode | +--org.enhydra.apache.xerces.dom.ParentNode | +--org.enhydra.apache.xerces.dom.ElementImpl | +--org.enhydra.xml.xmlc.metadata.MetaDataElement | +--org.enhydra.xml.xmlc.metadata.DocumentClass
Specify properties of the XMLC document class to generate.
Field Summary | |
static String |
ACCESSOR_TYPE_CLASS
|
static String |
ACCESSOR_TYPE_ELEMENT
|
static String |
ACCESSOR_TYPE_HTML_ELEMENT
|
static String |
ACCESSOR_TYPE_INTERFACE
|
static DOMType |
DEFAULT_DOM_TYPE
Default DOM if neither -domfactory or -dom are specified. |
static String |
IMPLEMENTATION_SUFFIX
Suffix for interface implementations. |
static String |
TAG_NAME
Element name. |
Fields inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
attributes, name, serialVersionUID |
Fields inherited from class org.enhydra.apache.xerces.dom.ParentNode |
fCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocument |
Fields inherited from class org.enhydra.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
Constructor Summary | |
DocumentClass(Document ownerDoc)
Constructor. |
Method Summary | |
void |
addImplements(String interfaceName)
Add an interface to the list of interfaces the class will implement. |
protected void |
completeModifications()
Complete modifications to DOM, check some error cases. |
boolean |
getCreateGetTagMethods()
Get the createGetTagMethods attribute value. |
boolean |
getCreateMetaData()
Get the createMetaData attribute value. |
boolean |
getDeferredParsing()
Get the deferred parsing attribute. |
boolean |
getDelegateSupport()
Get the delegateSupport attribute value. |
DOMType |
getDom()
Get the dom attribute value. |
String |
getDomFactory()
Get the domFactory attribute value. |
String |
getDomFactoryClass(boolean html)
Get the XMLCDomFactory class to use. |
String |
getExtends()
Get the extends attribute value. |
GenerateType |
getGenerate()
Get the generate attribute value or the default if it is not specified. |
String |
getGetTagReturnType()
Get the return type of getTagXXX() methods or the default if not specified. |
String[] |
getImplements()
Get the list of interfaces that the class will implement. |
File |
getJavaClassSource()
|
File |
getJavaInterfaceSource()
|
String |
getName()
Get the name attribute value, or the default value if its not specified. |
String |
getPackageName()
Get the package name, or null if not set. |
boolean |
getRecompilation()
Get the recompilation attribute value. |
boolean |
getSuppressGetElementMethods()
Get the createGetElementMethods attribute value. |
String |
getUnqualClassName()
Get the unqualified class name attribute. |
String |
getUnqualInterfaceName()
Get the unqualified interface name, or null if there is no interface associated with the class. |
boolean |
isGenerateSpecified()
Determine if the generate attribute is specified. |
boolean |
isNameSpecified()
Determine if the name attribute is specified. |
void |
setCreateGetTagMethods(boolean value)
Set the createGetTagMethods attribute value. |
void |
setCreateMetaData(boolean value)
Set the createMetaData attribute value. |
void |
setDeferredParsing(boolean value)
Set the deferred parsing attribute value. |
void |
setDelegateSupport(boolean value)
Set the delegateSupport attribute value. |
void |
setDom(DOMType value)
Set the dom attribute value. |
void |
setDomFactory(String value)
Set the domFactory attribute value. |
void |
setExtends(String value)
Set the extends attribute value. |
void |
setGenerate(GenerateType value)
Set the generate attribute value. |
void |
setGetTagReturnType(String value)
Set the return type for getTagXXX() methods or null to delete attribute. |
void |
setName(String value)
Set the name attribute value. |
void |
setRecompilation(boolean value)
Set the recompilation attribute value. |
void |
setSuppressGetElementMethods(boolean value)
Set the createGetElementMethods attribute value. |
Methods inherited from class org.enhydra.xml.xmlc.metadata.MetaDataElement |
addStringArrayAttribute, deleteChild, getAttributeNull, getBooleanAttribute, getBooleanAttribute, getBooleanObjectAttribute, getChild, getChildren, getCreateChild, getDocument, getMetaData, getStringArrayAttribute, isAttributeSpecified, mergeAttributes, mergeElement, mergeSingletonChild, setBooleanAttribute, setBooleanAttribute, setBooleanObjectAttribute, setChild, setRemoveAttribute, setRemoveStringArrayAttribute |
Methods inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, synchronizeData |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, hasChildNodes, insertBefore, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, ownerDocument, removeChild, replaceChild, synchronizeChildren |
Methods inherited from class org.enhydra.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling, parentNode, previousSibling |
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, dispatchEvent, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getTextContent, getUserData, getUserData, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setNodeValue, setPrefix, setTextContent, setUserData, setUserData, toString |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface org.w3c.dom.Node |
appendChild, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Field Detail |
public static final String TAG_NAME
public static final String IMPLEMENTATION_SUFFIX
public static final DOMType DEFAULT_DOM_TYPE
public static final String ACCESSOR_TYPE_ELEMENT
public static final String ACCESSOR_TYPE_HTML_ELEMENT
public static final String ACCESSOR_TYPE_CLASS
public static final String ACCESSOR_TYPE_INTERFACE
Constructor Detail |
public DocumentClass(Document ownerDoc)
Method Detail |
public String getName()
public void setName(String value)
public boolean isNameSpecified()
public GenerateType getGenerate()
public void setGenerate(GenerateType value)
public boolean isGenerateSpecified()
public boolean getDelegateSupport()
public void setDelegateSupport(boolean value)
public boolean getCreateMetaData()
public void setCreateMetaData(boolean value)
public boolean getRecompilation()
public void setRecompilation(boolean value)
public boolean getDeferredParsing()
public void setDeferredParsing(boolean value)
public String getExtends()
public void setExtends(String value)
public String getDomFactory()
public void setDomFactory(String value)
public DOMType getDom()
public void setDom(DOMType value)
public String getDomFactoryClass(boolean html)
public String[] getImplements()
public void addImplements(String interfaceName)
public String getPackageName()
public String getUnqualClassName()
public String getUnqualInterfaceName()
public File getJavaClassSource()
public File getJavaInterfaceSource()
public boolean getCreateGetTagMethods()
public void setCreateGetTagMethods(boolean value)
public String getGetTagReturnType()
public void setGetTagReturnType(String value)
public boolean getSuppressGetElementMethods()
public void setSuppressGetElementMethods(boolean value)
protected void completeModifications() throws XMLCException
completeModifications
in class MetaDataElement
MetaDataElement.completeModifications()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |