|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.metadata.MetaData
An abstract base class for metadata containers.
| Field Summary | |
protected static org.jboss.logging.Logger |
log
|
static byte |
TX_MANDATORY
|
static byte |
TX_NEVER
|
static byte |
TX_NOT_SUPPORTED
|
static byte |
TX_REQUIRED
|
static byte |
TX_REQUIRES_NEW
|
static byte |
TX_SUPPORTS
|
static byte |
TX_UNKNOWN
|
| Constructor Summary | |
MetaData()
|
|
| Method Summary | |
Object |
clone()
Create a field wise copy of the object. |
static Iterator |
getChildrenByTagName(Element element,
String tagName)
Returns an iterator over the children of the given element with the given tag name. |
static String |
getElementAttribute(Element element,
String attrName)
Get an attribute value of the given element. |
static String |
getElementContent(Element element)
Get the content of the given element. |
static String |
getElementContent(Element element,
String defaultStr)
Get the content of the given element. |
static String |
getFirstElementContent(Element element,
String defaultStr)
|
static Element |
getOptionalChild(Element element,
String tagName)
Gets the child of the specified element having the specified name. |
static Element |
getOptionalChild(Element element,
String tagName,
Element defaultElement)
Gets the child of the specified element having the specified name. |
static boolean |
getOptionalChildBooleanContent(Element element,
String name)
|
static String |
getOptionalChildContent(Element element,
String tagName)
Macro to get the content of an optional child element. |
static Element |
getUniqueChild(Element element,
String tagName)
Gets the child of the specified element having the specified unique name. |
static String |
getUniqueChildContent(Element element,
String tagName)
Macro to get the content of a unique child element. |
void |
importEjbJarXml(Element element)
Non-operation. |
void |
importJbossXml(Element element)
Non-operation. |
void |
importXml(Element element)
Imports either the jboss or ejb-jar from the given element. |
protected boolean |
jdk13Enabled()
Check if we are running in a JDK v1.3 virtual machine or better. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.jboss.logging.Logger log
public static final byte TX_NOT_SUPPORTED
public static final byte TX_REQUIRED
public static final byte TX_SUPPORTS
public static final byte TX_REQUIRES_NEW
public static final byte TX_MANDATORY
public static final byte TX_NEVER
public static final byte TX_UNKNOWN
| Constructor Detail |
public MetaData()
| Method Detail |
public static Iterator getChildrenByTagName(Element element, String tagName)
element - The parent elementtagName - The name of the desired child
public static Element getUniqueChild(Element element, String tagName) throws org.jboss.deployment.DeploymentException
element - The parent elementtagName - The name of the desired child
org.jboss.deployment.DeploymentException - Child was not found or was not unique.public static Element getOptionalChild(Element element, String tagName) throws org.jboss.deployment.DeploymentException
element - the parent elementtagName - the name of the desired child
org.jboss.deployment.DeploymentExceptionpublic static Element getOptionalChild(Element element, String tagName, Element defaultElement) throws org.jboss.deployment.DeploymentException
element - the parent elementtagName - the name of the desired childdefaultElement - the element to return if the child
doesn't exist
org.jboss.deployment.DeploymentExceptionpublic static String getElementAttribute(Element element, String attrName)
element - The element to get the attribute value for.
public static String getElementContent(Element element)
element - The element to get the content for.
public static String getElementContent(Element element, String defaultStr)
element - The element to get the content for.defaultStr - The default to return when there is no content.
public static String getFirstElementContent(Element element, String defaultStr)
public static String getUniqueChildContent(Element element, String tagName) throws org.jboss.deployment.DeploymentException
element - The parent element.tagName - The name of the desired child.
org.jboss.deployment.DeploymentExceptionpublic static String getOptionalChildContent(Element element, String tagName) throws org.jboss.deployment.DeploymentException
element - The parent element.tagName - The name of the desired child.
org.jboss.deployment.DeploymentExceptionpublic static boolean getOptionalChildBooleanContent(Element element, String name) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentExceptionpublic Object clone()
public void importXml(Element element) throws org.jboss.deployment.DeploymentException
importXml in interface XmlLoadableelement - The element to import.
org.jboss.deployment.DeploymentException - Unrecognized root tag.public void importEjbJarXml(Element element) throws org.jboss.deployment.DeploymentException
element -
org.jboss.deployment.DeploymentExceptionpublic void importJbossXml(Element element) throws org.jboss.deployment.DeploymentException
element -
org.jboss.deployment.DeploymentExceptionprotected boolean jdk13Enabled()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||