/** * Generates the text value for a given key and metadata. If the metadata is * null this will just return the text value, but if the metadata is not null * it will have the metadata generate the value. */ static Object generateTextValue( Element element, ElementMetadata<?, ?> metadata) { if (metadata != null) { return metadata.generateValue(element, metadata); } return element.getTextValue(); }
/** * Generates the text value for a given key and metadata. If the metadata is * null this will just return the text value, but if the metadata is not null * it will have the metadata generate the value. */ static Object generateTextValue( Element element, ElementMetadata<?, ?> metadata) { if (metadata != null) { return metadata.generateValue(element, metadata); } return element.getTextValue(); }
/** * Generates the text value for a given key and metadata. If the metadata is * null this will just return the text value, but if the metadata is not null * it will have the metadata generate the value. */ static Object generateTextValue( Element element, ElementMetadata<?, ?> metadata) { if (metadata != null) { return metadata.generateValue(element, metadata); } return element.getTextValue(); }
public Object generateValue(Element element, ElementMetadata<?, ?> metadata) { return delegate().generateValue(element, metadata); }
public Object generateValue(Element element, ElementMetadata<?, ?> metadata) { return delegate().generateValue(element, metadata); }
public Object generateValue(Element element, ElementMetadata<?, ?> metadata) { return delegate().generateValue(element, metadata); }
public void textContent(XmlWriter xw, Element e, ElementMetadata<?, ?> metadata) throws IOException { Object value = (metadata == null) ? e.getTextValue() : metadata.generateValue(e, metadata); if (value != null) { String valStr = value.toString(); if (valStr.length() > 0) { xw.characters(valStr); } } }
public void textContent(XmlWriter xw, Element e, ElementMetadata<?, ?> metadata) throws IOException { Object value = (metadata == null) ? e.getTextValue() : metadata.generateValue(e, metadata); if (value != null) { String valStr = value.toString(); if (valStr.length() > 0) { xw.characters(valStr); } } }
public void textContent(XmlWriter xw, Element e, ElementMetadata<?, ?> metadata) throws IOException { Object value = (metadata == null) ? e.getTextValue() : metadata.generateValue(e, metadata); if (value != null) { String valStr = value.toString(); if (valStr.length() > 0) { xw.characters(valStr); } } }
: metadata.bindElement(childKey); Object value = (childMeta == null) ? child.getTextValue() : childMeta.generateValue(child, childMeta); if (value != null) { return value;
: metadata.bindElement(childKey); Object value = (childMeta == null) ? child.getTextValue() : childMeta.generateValue(child, childMeta); if (value != null) { return value;
: metadata.bindElement(childKey); Object value = (childMeta == null) ? child.getTextValue() : childMeta.generateValue(child, childMeta); if (value != null) { return value;