|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdom.DefaultJDOMFactory
org.codehaus.cargo.module.AbstractDescriptorType
public class AbstractDescriptorType
Constructor Summary | |
---|---|
protected |
AbstractDescriptorType(DescriptorType parent,
Class descriptorClass,
Grammar grammar)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jdom.DefaultJDOMFactory |
---|
addContent, addNamespaceDeclaration, attribute, attribute, attribute, attribute, cdata, comment, docType, docType, docType, document, document, element, element, entityRef, entityRef, entityRef, processingInstruction, processingInstruction, setAttribute, text |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jdom.JDOMFactory |
---|
addContent, addNamespaceDeclaration, attribute, attribute, attribute, attribute, cdata, comment, docType, docType, docType, document, document, element, element, entityRef, entityRef, entityRef, processingInstruction, processingInstruction, setAttribute, text |
Constructor Detail |
---|
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).Method Detail |
---|
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 tag
public 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 document
public org.jdom.JDOMFactory getJDOMFactory()
getJDOMFactory
in interface DescriptorType
DescriptorType.getJDOMFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |