|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | 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 Logger (src) |
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 | |
java.lang.Object |
clone()
Create a field wise copy of the object. |
static java.util.Iterator |
getChildrenByTagName(org.w3c.dom.Element element,
java.lang.String tagName)
Returns an iterator over the children of the given element with the given tag name. |
static java.lang.String |
getElementAttribute(org.w3c.dom.Element element,
java.lang.String attrName)
Get an attribute value of the given element. |
static java.lang.String |
getElementContent(org.w3c.dom.Element element)
Get the content of the given element. |
static java.lang.String |
getElementContent(org.w3c.dom.Element element,
java.lang.String defaultStr)
Get the content of the given element. |
static java.lang.String |
getFirstElementContent(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 boolean |
getOptionalChildBooleanContent(org.w3c.dom.Element element,
java.lang.String name)
|
static boolean |
getOptionalChildBooleanContent(org.w3c.dom.Element element,
java.lang.String name,
boolean defaultValue)
|
static java.lang.String |
getOptionalChildContent(org.w3c.dom.Element element,
java.lang.String tagName)
Macro to get the content of an optional child element. |
static java.lang.String |
getOptionalChildContent(org.w3c.dom.Element element,
java.lang.String tagName,
java.lang.String defaultValue)
Macro to get the content of an optional child element with default value. |
static org.w3c.dom.Element |
getUniqueChild(org.w3c.dom.Element element,
java.lang.String tagName)
Gets the child of the specified element having the specified unique name. |
static java.lang.String |
getUniqueChildContent(org.w3c.dom.Element element,
java.lang.String tagName)
Macro to get the content of a unique child element. |
void |
importEjbJarXml(org.w3c.dom.Element element)
Non-operation. |
void |
importJbossXml(org.w3c.dom.Element element)
Non-operation. |
void |
importXml(org.w3c.dom.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 Logger (src) 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 java.util.Iterator getChildrenByTagName(org.w3c.dom.Element element, java.lang.String tagName)
element
- The parent elementtagName
- The name of the desired child
public static org.w3c.dom.Element getUniqueChild(org.w3c.dom.Element element, java.lang.String tagName) throws DeploymentException (src)
element
- The parent elementtagName
- The name of the desired child
DeploymentException (src)
- Child was not found or was not unique.public static org.w3c.dom.Element getOptionalChild(org.w3c.dom.Element element, java.lang.String tagName) throws DeploymentException (src)
element
- the parent elementtagName
- the name of the desired child
DeploymentException (src)
public static org.w3c.dom.Element getOptionalChild(org.w3c.dom.Element element, java.lang.String tagName, org.w3c.dom.Element defaultElement) throws DeploymentException (src)
element
- the parent elementtagName
- the name of the desired childdefaultElement
- the element to return if the child
doesn't exist
DeploymentException (src)
public static java.lang.String getElementAttribute(org.w3c.dom.Element element, java.lang.String attrName)
element
- The element to get the attribute value for.
public static java.lang.String getElementContent(org.w3c.dom.Element element)
element
- The element to get the content for.
public static java.lang.String getElementContent(org.w3c.dom.Element element, java.lang.String defaultStr)
element
- The element to get the content for.defaultStr
- The default to return when there is no content.
public static java.lang.String getFirstElementContent(org.w3c.dom.Element element, java.lang.String defaultStr)
public static java.lang.String getUniqueChildContent(org.w3c.dom.Element element, java.lang.String tagName) throws DeploymentException (src)
element
- The parent element.tagName
- The name of the desired child.
DeploymentException (src)
public static java.lang.String getOptionalChildContent(org.w3c.dom.Element element, java.lang.String tagName) throws DeploymentException (src)
element
- The parent element.tagName
- The name of the desired child.
DeploymentException (src)
public static java.lang.String getOptionalChildContent(org.w3c.dom.Element element, java.lang.String tagName, java.lang.String defaultValue) throws DeploymentException (src)
element
- The parent element.tagName
- The name of the desired child.
DeploymentException (src)
public static boolean getOptionalChildBooleanContent(org.w3c.dom.Element element, java.lang.String name) throws DeploymentException (src)
DeploymentException (src)
public static boolean getOptionalChildBooleanContent(org.w3c.dom.Element element, java.lang.String name, boolean defaultValue) throws DeploymentException (src)
DeploymentException (src)
public java.lang.Object clone()
public void importXml(org.w3c.dom.Element element) throws DeploymentException (src)
importXml
in interface XmlLoadable (src)
element
- The element to import.
DeploymentException (src)
- Unrecognized root tag.public void importEjbJarXml(org.w3c.dom.Element element) throws DeploymentException (src)
element
-
DeploymentException (src)
public void importJbossXml(org.w3c.dom.Element element) throws DeploymentException (src)
element
-
DeploymentException (src)
protected boolean jdk13Enabled()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |