public abstract class XmlParserBase extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
coreNamespace |
Constructor and Description |
---|
XmlParserBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertNotLegacyElement(Element e) |
protected boolean |
existsAttribute(String attrValue) |
protected List<String> |
getAllowedCoreNamespaces() |
protected String |
getAttributeValue(Element element,
String attrName)
Beside querying the element for its attribute value, it will look into the value, if any, and replace the
jboss properties(e.g.
|
protected boolean |
getBoolean(String str) |
protected int |
getInt(String intStr) |
protected long |
getLong(String longStr) |
protected Element |
getSingleElement(String namespace,
String elementName,
Element parent)
Convenient method for retrieving a single element with the give name.
|
protected Element |
getSingleElementInCoreNS(String elementName,
Element parent)
Convenient method for retrieving a single element with the give name.
|
protected boolean |
isAllowedCoreNamespace(String namespace) |
protected String coreNamespace
protected int getInt(String intStr)
Integer.parseInt(String)
protected long getLong(String longStr)
Long.parseLong(String)
protected boolean getBoolean(String str)
Boolean.valueOf(String)
protected boolean existsAttribute(String attrValue)
protected Element getSingleElement(String namespace, String elementName, Element parent)
protected Element getSingleElementInCoreNS(String elementName, Element parent)
protected String getAttributeValue(Element element, String attrName)
StringPropertyReplacer.replaceProperties(String)
protected void assertNotLegacyElement(Element e)
protected boolean isAllowedCoreNamespace(String namespace)
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.