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, WebXmlType

public interface DescriptorType

Represents a "type" of descriptor - e.g. web.xml

Version:
$Id: DescriptorType.java 1705 2008-09-02 13:14:55Z adriana $

Method Summary
 void addTag(DescriptorTag tag)
          Add a descriptor tag into this descriptor.
 java.util.Collection getAllTags()
          Get all defined tags for this descriptor.
 DescriptorIo getDescriptorIo()
           
 Grammar getGrammar()
           
 org.jdom.JDOMFactory getJDOMFactory()
           
 DescriptorTag getTagByName(java.lang.String name)
          Get a descriptor tag by name.
 

Method Detail

getGrammar

Grammar getGrammar()
Returns:
XML Grammar for this descriptor.

getJDOMFactory

org.jdom.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(java.lang.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

java.util.Collection 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


Copyright © 2004-2011 Codehaus. All Rights Reserved.