Java Utililty Methods XML Element Check

List of utility methods to do XML Element Check

Description

The list of methods to do XML Element Check are organized into topic(s).

Method

booleanisSetPrefixBeforeStartElement(XMLStreamWriter writer)
is Set Prefix Before Start Element
return false;
booleanisSetPrefixBeforeStartElement(XMLStreamWriter writer)
is Set Prefix Before Start Element
if (cache_isSetPrefixBeforeStartElement_writer == writer) {
    synchronized (semifore) {
        if (cache_isSetPrefixBeforeStartElement_writer == writer) {
            return cache_isSetPrefixBeforeStartElement;
boolean ret = false;
...
booleanisStartElement(final XMLStreamReader reader)
is Start Element
return reader.getEventType() == XMLStreamReader.START_ELEMENT;
booleanisStartElement(XMLStreamReader xmlRdr, String tagName)
is Start Element
return xmlRdr.isStartElement() && xmlRdr.getLocalName().equals(tagName);
booleanisTableNodes(Element e)
is Table Nodes
for (String s : TABLE_NODES) {
    if (e.getTagName().equals(s)) {
        return true;
return false;
booleanisTextOnly(final Element element)
is Text Only
boolean isTextOnly = true;
final NodeList nodeList = element.getChildNodes();
for (int i = 0; i < nodeList.getLength() && isTextOnly; i++) {
    if (Element.class.isAssignableFrom(nodeList.item(i).getClass())) {
        isTextOnly = false;
return isTextOnly;
...
booleanisTrue(Element el, String tagName, boolean defaultResult)
is True
Element booleanElement = getElement(el, tagName);
if (booleanElement == null) {
    return defaultResult;
} else if (isTrueText(getNestedText(booleanElement))) {
    return true;
return false;
booleanisUIParameter(Element ele)
is UI Parameter
return "param".equals(ele.getLocalName()); 
booleanisUnder5_6(Element root)
is Unde_
return true;
booleanisXmlElementChoice(Field f, String xmlElementName)
Checks whether xmlElementName is applicable for the filed
boolean ret = false;
if (null != f && null != xmlElementName) {
    XmlElements xmlElements = getXmlElements(f);
    if (null != xmlElements && null != xmlElements.value()) {
        for (XmlElement xmlElement : xmlElements.value()) {
            if (xmlElementName.equals(xmlElement.name())) {
                ret = true;
                break;
...