public Object getValue(SAXElement element) { String attribValue; if(namespaceURI != null) { attribValue = element.getAttributeNS(namespaceURI, localPart); } else { attribValue = element.getAttribute(localPart); } return decoder.decode(attribValue); }
public void visitAfter(final SAXElement element, final ExecutionContext executionContext) throws SmooksException { if(targetAttribute != null) { OnFailResultImpl result = _validate(element.getAttribute(targetAttribute), executionContext); if(result != null) { result.setFailFragmentPath(SAXUtil.getXPath(element) + "/@" + targetAttribute); assertValidationException(result, executionContext); } } else { OnFailResultImpl result = _validate(element.getTextContent(), executionContext); if(result != null) { result.setFailFragmentPath(SAXUtil.getXPath(element)); assertValidationException(result, executionContext); } } }
public Object getValue(SAXElement element) { String attribValue; if(namespaceURI != null) { attribValue = element.getAttributeNS(namespaceURI, localPart); } else { attribValue = element.getAttribute(localPart); } return decoder.decode(attribValue); }
public void visitAfter(final SAXElement element, final ExecutionContext executionContext) throws SmooksException, IOException { if(targetAttribute != null) { OnFailResultImpl result = _validate(element.getAttribute(targetAttribute), executionContext); if(result != null) { result.setFailFragmentPath(SAXUtil.getXPath(element) + "/@" + targetAttribute); assertValidationException(result, executionContext); } } else { OnFailResultImpl result = _validate(element.getTextContent(), executionContext); if(result != null) { result.setFailFragmentPath(SAXUtil.getXPath(element)); assertValidationException(result, executionContext); } } }
public Object getValue(SAXElement element) { String attribValue; if(namespaceURI != null) { attribValue = element.getAttributeNS(namespaceURI, localPart); } else { attribValue = element.getAttribute(localPart); } return decoder.decode(attribValue); }
public Object getValue(SAXElement element) { String attribValue; if(namespaceURI != null) { attribValue = element.getAttributeNS(namespaceURI, localPart); } else { attribValue = element.getAttribute(localPart); } return decoder.decode(attribValue); }