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, text
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContent, addNamespaceDeclaration, attribute, attribute, attribute, attribute, cdata, comment, docType, docType, docType, document, document, element, element, entityRef, entityRef, entityRef, processingInstruction, processingInstruction, setAttribute, text
protected 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 DescriptorType
protected void setDescriptorIo(DescriptorIo descriptorIo)
descriptorIo
- the IO classpublic Grammar getGrammar()
getGrammar
in interface DescriptorType
public void addTag(DescriptorTag tag)
addTag
in interface DescriptorType
tag
- the tag to add.public DescriptorTag getTagByName(String name)
DescriptorType
getTagByName
in interface DescriptorType
name
- name of the tagpublic Collection getAllTags()
DescriptorType
getAllTags
in interface DescriptorType
public org.jdom.Element element(String arg0)
element
in interface org.jdom.JDOMFactory
element
in class org.jdom.DefaultJDOMFactory
JDOMFactory.element(java.lang.String)
public org.jdom.Element element(String name, org.jdom.Namespace namespace)
element
in interface org.jdom.JDOMFactory
element
in class org.jdom.DefaultJDOMFactory
public org.jdom.Document document(org.jdom.Element rootElement)
document
in interface org.jdom.JDOMFactory
document
in class org.jdom.DefaultJDOMFactory
rootElement
- the root element for the documentpublic org.jdom.JDOMFactory getJDOMFactory()
getJDOMFactory
in interface DescriptorType
DescriptorType.getJDOMFactory()
Copyright © 2004-2013 Codehaus. All Rights Reserved.