/** * Get the named attribute from this element. * @param namespaceURI The namespace URI of the required attribute. * @param attribute The attribute name. * @return The attribute value, or an empty string if the attribute is not specified. */ public String getAttributeNS(String namespaceURI, String attribute) { return SAXUtil.getAttribute(namespaceURI, attribute, attributes, ""); }
/** * Get the named attribute from this element. * @param attribute The attribute name. * @return The attribute value, or an empty string if the attribute is not specified. */ public String getAttribute(String attribute) { return SAXUtil.getAttribute(attribute, attributes); }
/** * Get the value of the named attribute. * @param attributeName The attribute name. * @param attributes The attribute list. * @return The attribute value, or an empty string if not available (as with DOM). */ public static String getAttribute(String attributeName, Attributes attributes) { return getAttribute(attributeName, attributes, ""); }
/** * Get the named attribute from this element. * @param attribute The attribute name. * @return The attribute value, or an empty string if the attribute is not specified. */ public String getAttribute(String attribute) { return SAXUtil.getAttribute(attribute, attributes); }
/** * Get the named attribute from this element. * @param attribute The attribute name. * @return The attribute value, or an empty string if the attribute is not specified. */ public String getAttribute(String attribute) { return SAXUtil.getAttribute(attribute, attributes); }
/** * Get the value of the named attribute. * @param attributeName The attribute name. * @param attributes The attribute list. * @return The attribute value, or an empty string if not available (as with DOM). */ public static String getAttribute(String attributeName, Attributes attributes) { return getAttribute(attributeName, attributes, ""); }
/** * Get the named attribute from this element. * @param attribute The attribute name. * @return The attribute value, or an empty string if the attribute is not specified. */ public String getAttribute(String attribute) { return SAXUtil.getAttribute(attribute, attributes); }
/** * Get the value of the named attribute. * @param attributeName The attribute name. * @param attributes The attribute list. * @return The attribute value, or an empty string if not available (as with DOM). */ public static String getAttribute(String attributeName, Attributes attributes) { return getAttribute(attributeName, attributes, ""); }
/** * Get the value of the named attribute. * @param attributeName The attribute name. * @param attributes The attribute list. * @return The attribute value, or an empty string if not available (as with DOM). */ public static String getAttribute(String attributeName, Attributes attributes) { return getAttribute(attributeName, attributes, ""); }
/** * Get the named attribute from this element. * @param namespaceURI The namespace URI of the required attribute. * @param attribute The attribute name. * @return The attribute value, or an empty string if the attribute is not specified. */ public String getAttributeNS(String namespaceURI, String attribute) { return SAXUtil.getAttribute(namespaceURI, attribute, attributes, ""); }
/** * Get the named attribute from this element. * @param namespaceURI The namespace URI of the required attribute. * @param attribute The attribute name. * @return The attribute value, or an empty string if the attribute is not specified. */ public String getAttributeNS(String namespaceURI, String attribute) { return SAXUtil.getAttribute(namespaceURI, attribute, attributes, ""); }
/** * Get the named attribute from this element. * @param namespaceURI The namespace URI of the required attribute. * @param attribute The attribute name. * @return The attribute value, or an empty string if the attribute is not specified. */ public String getAttributeNS(String namespaceURI, String attribute) { return SAXUtil.getAttribute(namespaceURI, attribute, attributes, ""); }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { if(isAttribute) { bindValue(SAXUtil.getAttribute(valueAttributeName, element.getAttributes()), executionContext, new Fragment(element)); } else { // Turn on Text Accumulation... element.accumulateText(); } }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { if(isAttribute) { bindValue(SAXUtil.getAttribute(valueAttributeName, element.getAttributes()), executionContext, new Fragment(element)); } else { // Turn on Text Accumulation... element.accumulateText(); } }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { if(isAttribute) { bindValue(SAXUtil.getAttribute(valueAttributeName, element.getAttributes()), executionContext, new Fragment(element)); } else { // Turn on Text Accumulation... element.accumulateText(); } }
private void bindSaxDataValue(SAXElement element, ExecutionContext executionContext) { String dataString; if (isAttribute) { dataString = SAXUtil.getAttribute(valueAttributeName, element.getAttributes()); } else { dataString = element.getTextContent(); } if(expression != null) { bindExpressionValue(executionContext); } else { populateAndSetPropertyValue(dataString, executionContext); } }
private void bindSaxDataValue(SAXElement element, ExecutionContext executionContext) { String propertyName; if(mapKeyAttribute != null) { propertyName = SAXUtil.getAttribute(mapKeyAttribute, element.getAttributes(), null); if(propertyName == null) { propertyName = element.getName().getLocalPart(); } } else if(property != null) { propertyName = property; } else { propertyName = element.getName().getLocalPart(); } String dataString = null; if(expressionEvaluator == null || expressionHasDataVariable) { if (isAttribute) { if(valueAttributeNS != null) { dataString = SAXUtil.getAttribute(valueAttributeNS, valueAttributeName, element.getAttributes(), null); } else { dataString = SAXUtil.getAttribute(valueAttributeName, element.getAttributes(), null); } } else { dataString = element.getTextContent(); } } if(expressionEvaluator != null) { bindExpressionValue(propertyName, dataString, executionContext, new Fragment(element)); } else { decodeAndSetPropertyValue(propertyName, dataString, executionContext, new Fragment(element)); } }
private void bindSaxDataValue(SAXElement element, ExecutionContext executionContext) { String propertyName; if(mapKeyAttribute != null) { propertyName = SAXUtil.getAttribute(mapKeyAttribute, element.getAttributes(), null); if(propertyName == null) { propertyName = element.getName().getLocalPart(); } } else if(property != null) { propertyName = property; } else { propertyName = element.getName().getLocalPart(); } String dataString = null; if(expressionEvaluator == null || expressionHasDataVariable) { if (isAttribute) { if(valueAttributeNS != null) { dataString = SAXUtil.getAttribute(valueAttributeNS, valueAttributeName, element.getAttributes(), null); } else { dataString = SAXUtil.getAttribute(valueAttributeName, element.getAttributes(), null); } } else { dataString = element.getTextContent(); } } if(expressionEvaluator != null) { bindExpressionValue(propertyName, dataString, executionContext, new Fragment(element)); } else { decodeAndSetPropertyValue(propertyName, dataString, executionContext, new Fragment(element)); } }
private void bindSaxDataValue(SAXElement element, ExecutionContext executionContext) { String propertyName; if(mapKeyAttribute != null) { propertyName = SAXUtil.getAttribute(mapKeyAttribute, element.getAttributes(), null); if(propertyName == null) { propertyName = element.getName().getLocalPart(); } } else if(property != null) { propertyName = property; } else { propertyName = element.getName().getLocalPart(); } String dataString = null; if(expressionEvaluator == null || expressionHasDataVariable) { if (isAttribute) { if(valueAttributeNS != null) { dataString = SAXUtil.getAttribute(valueAttributeNS, valueAttributeName, element.getAttributes(), null); } else { dataString = SAXUtil.getAttribute(valueAttributeName, element.getAttributes(), null); } } else { dataString = element.getTextContent(); } } if(expressionEvaluator != null) { bindExpressionValue(propertyName, dataString, executionContext, new Fragment(element)); } else { decodeAndSetPropertyValue(propertyName, dataString, executionContext, new Fragment(element)); } }