public class AbstractDescriptorType extends org.jdom.DefaultJDOMFactory implements org.jdom.JDOMFactory, DescriptorType
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDescriptorType(DescriptorType parent,
Class descriptorClass,
Grammar grammar)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(DescriptorTag tag)
Add a descriptor tag to this descriptor type.
|
org.jdom.Document |
document(org.jdom.Element rootElement)
Create a JDOM Document.
|
org.jdom.Element |
element(String arg0) |
org.jdom.Element |
element(String name,
org.jdom.Namespace namespace) |
Collection |
getAllTags()
Get all defined tags for this descriptor.
|
DescriptorIo |
getDescriptorIo()
Get the IO class for this descriptor type.
|
Grammar |
getGrammar()
Get the grammar for this descriptor type.
|
org.jdom.JDOMFactory |
getJDOMFactory() |
DescriptorTag |
getTagByName(String name)
Get a descriptor tag by name.
|
protected void |
setDescriptorIo(DescriptorIo descriptorIo)
Set the IO class for this descriptor type.
|
addContent, addNamespaceDeclaration, attribute, attribute, attribute, attribute, cdata, comment, docType, docType, docType, document, document, element, element, entityRef, entityRef, entityRef, processingInstruction, processingInstruction, setAttribute, textclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddContent, addNamespaceDeclaration, attribute, attribute, attribute, attribute, cdata, comment, docType, docType, docType, document, document, element, element, entityRef, entityRef, entityRef, processingInstruction, processingInstruction, setAttribute, textprotected AbstractDescriptorType(DescriptorType parent, Class descriptorClass, Grammar grammar)
parent - the parent of this typedescriptorClass - the class that implements this descriptorgrammar - grammar for this type (or null if none).public DescriptorIo getDescriptorIo()
getDescriptorIo in interface DescriptorTypeprotected void setDescriptorIo(DescriptorIo descriptorIo)
descriptorIo - the IO classpublic Grammar getGrammar()
getGrammar in interface DescriptorTypepublic void addTag(DescriptorTag tag)
addTag in interface DescriptorTypetag - the tag to add.public DescriptorTag getTagByName(String name)
DescriptorTypegetTagByName in interface DescriptorTypename - name of the tagpublic Collection getAllTags()
DescriptorTypegetAllTags in interface DescriptorTypepublic org.jdom.Element element(String arg0)
element in interface org.jdom.JDOMFactoryelement in class org.jdom.DefaultJDOMFactoryJDOMFactory.element(java.lang.String)public org.jdom.Element element(String name, org.jdom.Namespace namespace)
element in interface org.jdom.JDOMFactoryelement in class org.jdom.DefaultJDOMFactorypublic org.jdom.Document document(org.jdom.Element rootElement)
document in interface org.jdom.JDOMFactorydocument in class org.jdom.DefaultJDOMFactoryrootElement - the root element for the documentpublic org.jdom.JDOMFactory getJDOMFactory()
getJDOMFactory in interface DescriptorTypeDescriptorType.getJDOMFactory()Copyright © 2004-2013 Codehaus. All Rights Reserved.