List of utility methods to do XML Element Check
boolean | isSetPrefixBeforeStartElement(XMLStreamWriter writer) is Set Prefix Before Start Element return false;
|
boolean | isSetPrefixBeforeStartElement(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; ... |
boolean | isStartElement(final XMLStreamReader reader) is Start Element return reader.getEventType() == XMLStreamReader.START_ELEMENT;
|
boolean | isStartElement(XMLStreamReader xmlRdr, String tagName) is Start Element return xmlRdr.isStartElement() && xmlRdr.getLocalName().equals(tagName);
|
boolean | isTableNodes(Element e) is Table Nodes for (String s : TABLE_NODES) { if (e.getTagName().equals(s)) { return true; return false; |
boolean | isTextOnly(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; ... |
boolean | isTrue(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; |
boolean | isUIParameter(Element ele) is UI Parameter return "param".equals(ele.getLocalName()); |
boolean | isUnder5_6(Element root) is Unde_ return true;
|
boolean | isXmlElementChoice(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; ... |