| java.lang.Object org.jboss.metadata.MetaData
All known Subclasses: org.jboss.metadata.MethodMetaData, org.jboss.metadata.MessageDestinationMetaData, org.jboss.metadata.EnvEntryMetaData, org.jboss.metadata.ConfigurationMetaData, org.jboss.deployment.J2eeModuleMetaData, org.jboss.metadata.BeanMetaData, org.jboss.metadata.AssemblyDescriptorMetaData, org.jboss.metadata.EjbLocalRefMetaData, org.jboss.metadata.WebMetaData, org.jboss.metadata.CacheInvalidationConfigMetaData, org.jboss.metadata.SecurityRoleRefMetaData, org.jboss.metadata.ResourceRefMetaData, org.jboss.metadata.ApplicationMetaData, org.jboss.metadata.EjbRefMetaData, org.jboss.deployment.J2eeApplicationMetaData, org.jboss.metadata.MessageDestinationRefMetaData, org.jboss.metadata.ActivationConfigPropertyMetaData, org.jboss.metadata.ClusterConfigMetaData, org.jboss.metadata.ResourceEnvRefMetaData, org.jboss.metadata.QueryMetaData, org.jboss.metadata.InvokerProxyBindingMetaData, org.jboss.metadata.RelationMetaData, org.jboss.metadata.RelationshipRoleMetaData, org.jboss.metadata.SecurityIdentityMetaData,
Method Summary | |
public Object | clone() Create a field wise copy of the object. | public static Iterator | getChildrenByTagName(Element element, String tagName) Returns an iterator over the children of the given element with
the given tag name. | public static String | getElementAttribute(Element element, String attrName) Get an attribute value of the given element. | public static String | getElementAttribute(Element element, String attrName, boolean replace) Get an attribute value of the given element. | public static String | getElementContent(Element element) Get the content of the given element.
Parameters: element - The element to get the content for. | public static String | getElementContent(Element element, String defaultStr) Get the content of the given element.
Parameters: element - The element to get the content for. Parameters: defaultStr - The default to return when there is no content. | public static String | getElementContent(Element element, String defaultStr, boolean replace) Get the content of the given element. | public static String | getFirstElementContent(Element element, String defaultStr) | public static String | getFirstElementContent(Element element, String defaultStr, boolean replace) | public static Element | getOptionalChild(Element element, String tagName) Gets the child of the specified element having the
specified name. | public static Element | getOptionalChild(Element element, String tagName, Element defaultElement) Gets the child of the specified element having the
specified name. | public static boolean | getOptionalChildBooleanContent(Element element, String name) | public static boolean | getOptionalChildBooleanContent(Element element, String name, boolean defaultValue) | public static String | getOptionalChildContent(Element element, String tagName) Macro to get the content of an optional child element.
Parameters: element - The parent element. Parameters: tagName - The name of the desired child. | public static String | getOptionalChildContent(Element element, String tagName, String defaultValue) Macro to get the content of an optional child element with default value.
Parameters: element - The parent element. Parameters: tagName - The name of the desired child. | public static Element | getUniqueChild(Element element, String tagName) Gets the child of the specified element having the specified unique
name. | public static String | getUniqueChildContent(Element element, String tagName) Macro to get the content of a unique child element.
Parameters: element - The parent element. Parameters: tagName - The name of the desired child. | public void | importEjbJarXml(Element element) Non-operation. | public void | importJbossXml(Element element) Non-operation. | public 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. |
TX_MANDATORY | final public static byte TX_MANDATORY(Code) | | |
TX_NEVER | final public static byte TX_NEVER(Code) | | |
TX_NOT_SUPPORTED | final public static byte TX_NOT_SUPPORTED(Code) | | |
TX_REQUIRED | final public static byte TX_REQUIRED(Code) | | |
TX_REQUIRES_NEW | final public static byte TX_REQUIRES_NEW(Code) | | |
TX_SUPPORTS | final public static byte TX_SUPPORTS(Code) | | |
TX_UNKNOWN | final public static byte TX_UNKNOWN(Code) | | |
log | protected static Logger log(Code) | | |
clone | public Object clone()(Code) | | Create a field wise copy of the object.
|
getChildrenByTagName | public static Iterator getChildrenByTagName(Element element, String tagName)(Code) | | Returns an iterator over the children of the given element with
the given tag name.
Parameters: element - The parent element Parameters: tagName - The name of the desired child An interator of children or null if element is null. |
getElementAttribute | public static String getElementAttribute(Element element, String attrName)(Code) | | Get an attribute value of the given element.
Parameters: element - The element to get the attribute value for. Parameters: attrName - The attribute name The attribute value or null. |
getElementAttribute | public static String getElementAttribute(Element element, String attrName, boolean replace)(Code) | | Get an attribute value of the given element.
Parameters: element - The element to get the attribute value for. Parameters: attrName - The attribute name Parameters: replace - Whether to replace system properties The attribute value or null. |
getElementContent | public static String getElementContent(Element element)(Code) | | Get the content of the given element.
Parameters: element - The element to get the content for. The content of the element or null. |
getElementContent | public static String getElementContent(Element element, String defaultStr)(Code) | | Get the content of the given element.
Parameters: element - The element to get the content for. Parameters: defaultStr - The default to return when there is no content. The content of the element or the default. |
getElementContent | public static String getElementContent(Element element, String defaultStr, boolean replace)(Code) | | Get the content of the given element.
Parameters: element - The element to get the content for. Parameters: defaultStr - The default to return when there is no content. Parameters: replace - Whether to replace system properties The content of the element or the default. |
getOptionalChild | public static Element getOptionalChild(Element element, String tagName) throws DeploymentException(Code) | | 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 Parameters: tagName - the name of the desired child either the named child or null |
getOptionalChild | public static Element getOptionalChild(Element element, String tagName, Element defaultElement) throws DeploymentException(Code) | | 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 Parameters: tagName - the name of the desired child Parameters: defaultElement - the element to return if the childdoesn't exist either the named child or the supplied default |
getOptionalChildBooleanContent | public static boolean getOptionalChildBooleanContent(Element element, String name) throws DeploymentException(Code) | | |
getOptionalChildBooleanContent | public static boolean getOptionalChildBooleanContent(Element element, String name, boolean defaultValue) throws DeploymentException(Code) | | |
getOptionalChildContent | public static String getOptionalChildContent(Element element, String tagName) throws DeploymentException(Code) | | Macro to get the content of an optional child element.
Parameters: element - The parent element. Parameters: tagName - The name of the desired child. The element content or null. |
getOptionalChildContent | public static String getOptionalChildContent(Element element, String tagName, String defaultValue) throws DeploymentException(Code) | | Macro to get the content of an optional child element with default value.
Parameters: element - The parent element. Parameters: tagName - The name of the desired child. The element content or null. |
getUniqueChild | public static Element getUniqueChild(Element element, String tagName) throws DeploymentException(Code) | | Gets the child of the specified element having the specified unique
name. If there are more than one children elements with the same name
and exception is thrown.
Parameters: element - The parent element Parameters: tagName - The name of the desired child The named child. throws: DeploymentException - Child was not found or was not unique. |
getUniqueChildContent | public static String getUniqueChildContent(Element element, String tagName) throws DeploymentException(Code) | | Macro to get the content of a unique child element.
Parameters: element - The parent element. Parameters: tagName - The name of the desired child. The element content or null. |
importEjbJarXml | public void importEjbJarXml(Element element) throws DeploymentException(Code) | | Non-operation.
Parameters: element - throws: DeploymentException - |
importJbossXml | public void importJbossXml(Element element) throws DeploymentException(Code) | | Non-operation.
Parameters: element - throws: DeploymentException - |
importXml | public void importXml(Element element) throws DeploymentException(Code) | | Imports either the jboss or ejb-jar from the given element.
Parameters: element - The element to import. throws: DeploymentException - Unrecognized root tag. |
jdk13Enabled | protected boolean jdk13Enabled()(Code) | | Check if we are running in a JDK v1.3 virtual machine or better.
True if the virtual machine is v1.3 or better. |
|
|