org.smartcc.metadata
Class MetaData

java.lang.Object
  |
  +--org.smartcc.metadata.MetaData
Direct Known Subclasses:
ApplicationClientMetaData, EJBJarMetaData, EJBLocalRefMetaData, EJBRefMetaData, EnvEntryMetaData, InterceptorMetaData, SessionMetaData

public abstract class MetaData
extends java.lang.Object

Abstract base class for all xml-loadable meta data classes.

Version:
$Revision: 1.1.1.1 $
Author:
Holger Engels

Field Summary
static java.lang.String DOCUMENT_APPLICATION_CLIENT
           
static java.lang.String DOCUMENT_JUNA_CLIENT
           
static java.lang.String DOCUMENT_JUNA_SERVICE
           
static java.lang.String DOCUMENT_SERVICE
           
 
Constructor Summary
MetaData()
           
 
Method Summary
static java.util.Iterator getChildrenByTagName(org.w3c.dom.Element element, java.lang.String tagName)
           
static java.lang.String getElementContent(org.w3c.dom.Element element)
           
static java.lang.String getElementContent(org.w3c.dom.Element element, java.lang.String defaultStr)
           
static org.w3c.dom.Element getOptionalChild(org.w3c.dom.Element element, java.lang.String tagName)
          Gets the child of the specified element having the specified name.
static org.w3c.dom.Element getOptionalChild(org.w3c.dom.Element element, java.lang.String tagName, org.w3c.dom.Element defaultElement)
          Gets the child of the specified element having the specified name.
static org.w3c.dom.Element getUniqueChild(org.w3c.dom.Element element, java.lang.String tagName)
           
abstract  void importCC(org.w3c.dom.Element element)
           
abstract  void importStandard(org.w3c.dom.Element element)
           
 void importXml(org.w3c.dom.Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENT_APPLICATION_CLIENT

public static final java.lang.String DOCUMENT_APPLICATION_CLIENT
See Also:
Constant Field Values

DOCUMENT_SERVICE

public static final java.lang.String DOCUMENT_SERVICE
See Also:
Constant Field Values

DOCUMENT_JUNA_CLIENT

public static final java.lang.String DOCUMENT_JUNA_CLIENT
See Also:
Constant Field Values

DOCUMENT_JUNA_SERVICE

public static final java.lang.String DOCUMENT_JUNA_SERVICE
See Also:
Constant Field Values
Constructor Detail

MetaData

public MetaData()
Method Detail

getChildrenByTagName

public static java.util.Iterator getChildrenByTagName(org.w3c.dom.Element element,
                                                      java.lang.String tagName)
                                               throws DeploymentException
DeploymentException

getUniqueChild

public static org.w3c.dom.Element getUniqueChild(org.w3c.dom.Element element,
                                                 java.lang.String tagName)
                                          throws DeploymentException
DeploymentException

getOptionalChild

public static org.w3c.dom.Element getOptionalChild(org.w3c.dom.Element element,
                                                   java.lang.String tagName)
                                            throws DeploymentException
Gets the child of the specified element having the specified name. If the child with this name doesn't exist then null is returned instead.

Parameters:
element - the parent element
tagName - the name of the desired child
Returns:
either the named child or null
DeploymentException

getOptionalChild

public static org.w3c.dom.Element getOptionalChild(org.w3c.dom.Element element,
                                                   java.lang.String tagName,
                                                   org.w3c.dom.Element defaultElement)
                                            throws DeploymentException
Gets the child of the specified element having the specified name. If the child with this name doesn't exist then the supplied default element is returned instead.

Parameters:
element - the parent element
tagName - the name of the desired child
defaultElement - the element to return if the child doesn't exist
Returns:
either the named child or the supplied default
DeploymentException

getElementContent

public static java.lang.String getElementContent(org.w3c.dom.Element element)
                                          throws DeploymentException
DeploymentException

getElementContent

public static java.lang.String getElementContent(org.w3c.dom.Element element,
                                                 java.lang.String defaultStr)
                                          throws DeploymentException
DeploymentException

importXml

public void importXml(org.w3c.dom.Element element)
               throws DeploymentException
DeploymentException

importStandard

public abstract void importStandard(org.w3c.dom.Element element)
                             throws DeploymentException
DeploymentException

importCC

public abstract void importCC(org.w3c.dom.Element element)
                       throws DeploymentException
DeploymentException


Copyright © 2002 DC-TSS. All Rights Reserved.