public int validateElementEnd(String localName, String uri, String prefix) throws XMLStreamException { /* Since we are not really validating, only need to maintain * the element stack, and return "anything goes" as allowable content: */ int ix = --mElemCount; mElems[ix] = null; if (ix < 1) { return XMLValidator.CONTENT_ALLOW_ANY_TEXT; } DTDElement elem = mElems[ix-1]; return (elem == null) ? XMLValidator.CONTENT_ALLOW_ANY_TEXT : mElems[ix-1].getAllowedContentIfSpace(); }
public int validateElementEnd(String localName, String uri, String prefix) throws XMLValidationException { /* Since we are not really validating, only need to maintain * the element stack, and return "anything goes" as allowable content: */ int ix = --mElemCount; mElems[ix] = null; if (ix < 1) { return XMLValidator.CONTENT_ALLOW_ANY_TEXT; } DTDElement elem = mElems[ix-1]; return (elem == null) ? XMLValidator.CONTENT_ALLOW_ANY_TEXT : mElems[ix-1].getAllowedContentIfSpace(); }
public int validateElementEnd(String localName, String uri, String prefix) throws XMLStreamException { /* Since we are not really validating, only need to maintain * the element stack, and return "anything goes" as allowable content: */ int ix = --mElemCount; mElems[ix] = null; if (ix < 1) { return XMLValidator.CONTENT_ALLOW_ANY_TEXT; } DTDElement elem = mElems[ix-1]; return (elem == null) ? XMLValidator.CONTENT_ALLOW_ANY_TEXT : mElems[ix-1].getAllowedContentIfSpace(); }
@Override public int validateElementEnd(String localName, String uri, String prefix) throws XMLStreamException { /* Since we are not really validating, only need to maintain * the element stack, and return "anything goes" as allowable content: */ int ix = --mElemCount; mElems[ix] = null; if (ix < 1) { return XMLValidator.CONTENT_ALLOW_ANY_TEXT; } DTDElement elem = mElems[ix-1]; return (elem == null) ? XMLValidator.CONTENT_ALLOW_ANY_TEXT : mElems[ix-1].getAllowedContentIfSpace(); }
public int validateElementEnd(String localName, String uri, String prefix) throws XMLValidationException { /* Since we are not really validating, only need to maintain * the element stack, and return "anything goes" as allowable content: */ int ix = --mElemCount; mElems[ix] = null; if (ix < 1) { return XMLValidator.CONTENT_ALLOW_ANY_TEXT; } DTDElement elem = mElems[ix-1]; return (elem == null) ? XMLValidator.CONTENT_ALLOW_ANY_TEXT : mElems[ix-1].getAllowedContentIfSpace(); }
public int validateElementEnd(String localName, String uri, String prefix) throws XMLValidationException { /* Since we are not really validating, only need to maintain * the element stack, and return "anything goes" as allowable content: */ int ix = --mElemCount; mElems[ix] = null; if (ix < 1) { return XMLValidator.CONTENT_ALLOW_ANY_TEXT; } DTDElement elem = mElems[ix-1]; return (elem == null) ? XMLValidator.CONTENT_ALLOW_ANY_TEXT : mElems[ix-1].getAllowedContentIfSpace(); }
@Override public int validateElementEnd(String localName, String uri, String prefix) throws XMLStreamException { /* Since we are not really validating, only need to maintain * the element stack, and return "anything goes" as allowable content: */ int ix = --mElemCount; mElems[ix] = null; if (ix < 1) { return XMLValidator.CONTENT_ALLOW_ANY_TEXT; } DTDElement elem = mElems[ix-1]; return (elem == null) ? XMLValidator.CONTENT_ALLOW_ANY_TEXT : mElems[ix-1].getAllowedContentIfSpace(); }
@Override public int validateElementEnd(String localName, String uri, String prefix) throws XMLStreamException { /* Since we are not really validating, only need to maintain * the element stack, and return "anything goes" as allowable content: */ int ix = --mElemCount; mElems[ix] = null; if (ix < 1) { return XMLValidator.CONTENT_ALLOW_ANY_TEXT; } DTDElement elem = mElems[ix-1]; return (elem == null) ? XMLValidator.CONTENT_ALLOW_ANY_TEXT : mElems[ix-1].getAllowedContentIfSpace(); }
elem.getAllowedContentIfSpace();