Package org.codehaus.cargo.module
Interface DescriptorType
-
- All Known Implementing Classes:
AbstractDescriptorType
,ApplicationXmlType
,EjbJarXmlType
,IbmEjbJarBndXmiType
,IbmWebBndXmiType
,JBossWebXmlType
,JBossXmlType
,OrionEjbJarXmlType
,OrionWebXmlType
,ResinWebXmlType
,TomcatContextXmlType
,WeblogicEjbJarXmlType
,WeblogicXmlType
,WebXml22Type
,WebXml23Type
,WebXml24Type
,WebXml25Type
,WebXml30Type
,WebXmlType
public interface DescriptorType
Represents a "type" of descriptor - e.g. web.xml
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addTag(DescriptorTag tag)
Add a descriptor tag into this descriptor.Collection<DescriptorTag>
getAllTags()
Get all defined tags for this descriptor.DescriptorIo
getDescriptorIo()
Grammar
getGrammar()
org.jdom2.JDOMFactory
getJDOMFactory()
DescriptorTag
getTagByName(String name)
Get a descriptor tag by name.
-
-
-
Method Detail
-
getGrammar
Grammar getGrammar()
- Returns:
- XML Grammar for this descriptor.
-
getJDOMFactory
org.jdom2.JDOMFactory getJDOMFactory()
- Returns:
- JDOM Factory that can create typed descriptor elements.
-
getDescriptorIo
DescriptorIo getDescriptorIo()
- Returns:
- class for serializing descriptors of this type.
-
getTagByName
DescriptorTag getTagByName(String name)
Get a descriptor tag by name.- Parameters:
name
- the name of the tag- Returns:
- the descriptor tag, or null if not found
-
getAllTags
Collection<DescriptorTag> getAllTags()
Get all defined tags for this descriptor.- Returns:
- a collection of all the tags
-
addTag
void addTag(DescriptorTag tag)
Add a descriptor tag into this descriptor.- Parameters:
tag
- the tag to add
-
-