public static void set(Object o, QName elementName, Object value, boolean ignoreLowLine) { if(o instanceof Collection) { ((Collection)o).add(value); } else { String fieldName = Util.xmlNameToFieldName(elementName.getLocalPart(), ignoreLowLine); FieldInfo fieldInfo = FieldInfo.getFieldInfo(o.getClass(), fieldName, true); fieldInfo.setValue(o, value); } }
parent.getClass(); String fieldName = Util.xmlNameToFieldName(localName, true); FieldInfo fieldInfo = FieldInfo.getFieldInfo(parentCls, fieldName, false); if(trace)
fieldName = Util.xmlNameToFieldName(localName, ignoreLowLine);
fieldName = Util.xmlNameToFieldName(element.getQName().getLocalPart(), ignoreLowLine);
public String resolvePropertyName() { TermBinding term = particle.getTerm(); PropertyMetaData propertyMetaData = term.getPropertyMetaData(); String prop = propertyMetaData == null ? null : propertyMetaData.getName(); if(prop != null) { return prop; } if(term.isElement()) { QName name = ((ElementBinding)term).getQName(); prop = Util.xmlNameToFieldName(name.getLocalPart(), term.getSchema().isIgnoreLowLine()); } return prop; }
String fieldName = Util.xmlNameToFieldName(localName, true); fieldInfo = FieldInfo.getFieldInfo(o.getClass(), fieldName, true); String fieldName = Util.xmlNameToFieldName(localName, true); FieldInfo fieldInfo = FieldInfo.getFieldInfo(oCls, fieldName, true); if(Collection.class.isAssignableFrom(fieldInfo.getType()))
final String fieldName = Util.xmlNameToFieldName(localName, true); FieldInfo fieldInfo = FieldInfo.getFieldInfo(oCls, fieldName, true);
Util.xmlNameToFieldName(element.getQName().getLocalPart(), element.getSchema().isIgnoreLowLine());
public Object getValue(MarshallingContext ctx) { Object owner = ctx.peek(); SchemaBinding schema = ctx.getSchemaBinding(); AttributeBinding binding = ctx.getAttributeBinding(); QName qName = binding.getQName(); String fieldName = null; PropertyMetaData propertyMetaData = binding.getPropertyMetaData(); if(propertyMetaData != null) { fieldName = propertyMetaData.getName(); } if(fieldName == null) { fieldName = Util.xmlNameToFieldName(qName.getLocalPart(), schema.isIgnoreLowLine()); } FieldInfo fieldInfo = FieldInfo.getFieldInfo( owner.getClass(), fieldName, binding.getRequired() && !schema.isIgnoreUnresolvedFieldOrClass() ); Object value = null; if(fieldInfo != null) { value = fieldInfo.getValue(owner); } return value; }
if(propertyMetaData == null) propName = Util.xmlNameToFieldName( wrapperType == null ? elementName.getLocalPart() : arrayItem.getQName().getLocalPart(), term.getSchema().isIgnoreLowLine()
propName = Util.xmlNameToFieldName(qName.getLocalPart(), term.getSchema().isIgnoreLowLine());
property = Util.xmlNameToFieldName(attrName.getLocalPart(), binding.getSchema().isIgnoreLowLine());
propName = Util.xmlNameToFieldName(qName.getLocalPart(), element.getSchema().isIgnoreLowLine());