public void parseValue(Element element, ElementMetadata<?, ?> metadata, Object value) throws ParseException { delegate().parseValue(element, metadata, value); }
/** * Parses the text content for an element. */ static void parseTextValue( Element element, ElementMetadata<?, ?> metadata, Object value) throws ParseException { if (metadata != null) { metadata.parseValue(element, metadata, value); } else { element.setTextValue(value); } }
/** * Parses the text content for an element. */ static void parseTextValue( Element element, ElementMetadata<?, ?> metadata, Object value) throws ParseException { if (metadata != null) { metadata.parseValue(element, metadata, value); } else { element.setTextValue(value); } }
/** * Parses the text content for an element. */ static void parseTextValue( Element element, ElementMetadata<?, ?> metadata, Object value) throws ParseException { if (metadata != null) { metadata.parseValue(element, metadata, value); } else { element.setTextValue(value); } }
public void parseValue(Element element, ElementMetadata<?, ?> metadata, Object value) throws ParseException { delegate().parseValue(element, metadata, value); }
public void parseValue(Element element, ElementMetadata<?, ?> metadata, Object value) throws ParseException { delegate().parseValue(element, metadata, value); }
/** * For parsing, we always parse directly into the first source. */ public void parse(Element element, ElementMetadata<?, ?> metadata, Object value) throws ParseException { if (sources.isEmpty()) { return; } MetadataKey<?> source = sources.get(0); if (source instanceof ElementKey<?, ?>) { ElementKey<?, ?> childKey = (ElementKey<?, ?>) source; ElementMetadata<?, ?> childMeta = metadata.bindElement(childKey); Element child = element.getElement(childKey); if (child == null) { try { child = childMeta.createElement(); } catch (ContentCreationException e) { throw new ParseException(e); } element.addElement(childKey, child); } childMeta.parseValue(child, childMeta, value); } else { AttributeKey<?> attKey = (AttributeKey<?>) source; AttributeMetadata<?> attMeta = metadata.bindAttribute(attKey); attMeta.parseValue(element, metadata, value); } } }
/** * For parsing, we always parse directly into the first source. */ public void parse(Element element, ElementMetadata<?, ?> metadata, Object value) throws ParseException { if (sources.isEmpty()) { return; } MetadataKey<?> source = sources.get(0); if (source instanceof ElementKey<?, ?>) { ElementKey<?, ?> childKey = (ElementKey<?, ?>) source; ElementMetadata<?, ?> childMeta = metadata.bindElement(childKey); Element child = element.getElement(childKey); if (child == null) { try { child = childMeta.createElement(); } catch (ContentCreationException e) { throw new ParseException(e); } element.addElement(childKey, child); } childMeta.parseValue(child, childMeta, value); } else { AttributeKey<?> attKey = (AttributeKey<?>) source; AttributeMetadata<?> attMeta = metadata.bindAttribute(attKey); attMeta.parseValue(element, metadata, value); } } }
/** * For parsing, we always parse directly into the first source. */ public void parse(Element element, ElementMetadata<?, ?> metadata, Object value) throws ParseException { if (sources.isEmpty()) { return; } MetadataKey<?> source = sources.get(0); if (source instanceof ElementKey<?, ?>) { ElementKey<?, ?> childKey = (ElementKey<?, ?>) source; ElementMetadata<?, ?> childMeta = metadata.bindElement(childKey); Element child = element.getElement(childKey); if (child == null) { try { child = childMeta.createElement(); } catch (ContentCreationException e) { throw new ParseException(e); } element.addElement(childKey, child); } childMeta.parseValue(child, childMeta, value); } else { AttributeKey<?> attKey = (AttributeKey<?>) source; AttributeMetadata<?> attMeta = metadata.bindAttribute(attKey); attMeta.parseValue(element, metadata, value); } } }