|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.config.parsing.XmlParserBase
public abstract class XmlParserBase
Contains utility methods that might be useful to most of the parsers.
Constructor Summary | |
---|---|
XmlParserBase()
|
Method Summary | |
---|---|
protected boolean |
existsAttribute(String attrValue)
|
protected Set<Element> |
getAllElements(String namespace,
String elementName,
Element parent)
Convenience method for retrieving all child elements bearing the same element name |
protected Set<Element> |
getAllElementsInCoreNS(String elementName,
Element parent)
Convenience method for retrieving all child elements bearing the same element name, in the core namespace |
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, in the core namespace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlParserBase()
Method Detail |
---|
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 Set<Element> getAllElements(String namespace, String elementName, Element parent)
protected Element getSingleElementInCoreNS(String elementName, Element parent)
protected Set<Element> getAllElementsInCoreNS(String elementName, Element parent)
protected String getAttributeValue(Element element, String attrName)
StringPropertyReplacer.replaceProperties(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |