/** * Get type declared for the name property given * * @param name * The property name * @return null if propery name is unknown */ public PropertyType getPropertyType(String name) { return propDef.getPropertyType(name); }
public AbstractSimpleProperty instanciateSimpleField(Class<?> clz, String nsuri, String prefix, String propertyName, Object value) { PropertiesDescription pm = initializePropMapping(clz); PropertyType simpleType = pm.getPropertyType(propertyName); Types type = simpleType.type(); return instanciateSimpleProperty(nsuri, prefix, propertyName, value, type); }
private void parseDescriptionInner(XMPMetadata xmp, Element description, ComplexPropertyContainer parentContainer) throws XmpParsingException { nsFinder.push(description); TypeMapping tm = xmp.getTypeMapping(); try { List<Element> properties = DomHelper.getElementChildren(description); for (Element property : properties) { String name = property.getLocalName(); PropertyType dtype = checkPropertyDefinition(xmp, DomHelper.getQName(property)); PropertyType ptype = tm.getStructuredPropMapping(dtype.type()).getPropertyType(name); // create property createProperty(xmp, property, ptype, parentContainer); } } finally { nsFinder.pop(); } }
/** * Get type declared for the name property given * * @param name * The property name * @return null if propery name is unknown */ public PropertyType getPropertyType(String name) { return propDef.getPropertyType(name); }
/** * Get type declared for the name property given * * @param name * The property name * @return null if propery name is unknown */ public PropertyType getPropertyType(String name) { return propDef.getPropertyType(name); }
String name = element.getLocalName(); String namespace = element.getNamespaceURI(); PropertyType type = pm.getPropertyType(name); if (type == null)
public AbstractSimpleProperty instanciateSimpleField(Class<?> clz, String nsuri, String prefix, String propertyName, Object value) { PropertiesDescription pm = initializePropMapping(clz); PropertyType simpleType = pm.getPropertyType(propertyName); Types type = simpleType.type(); return instanciateSimpleProperty(nsuri, prefix, propertyName, value, type); }
public AbstractSimpleProperty instanciateSimpleField(Class<?> clz, String nsuri, String prefix, String propertyName, Object value) { PropertiesDescription pm = initializePropMapping(clz); PropertyType simpleType = pm.getPropertyType(propertyName); Types type = simpleType.type(); return instanciateSimpleProperty(nsuri, prefix, propertyName, value, type); }
private void parseDescriptionInner(XMPMetadata xmp, Element description, ComplexPropertyContainer parentContainer) throws XmpParsingException { nsFinder.push(description); TypeMapping tm = xmp.getTypeMapping(); try { List<Element> properties = DomHelper.getElementChildren(description); for (Element property : properties) { String name = property.getLocalName(); PropertyType dtype = checkPropertyDefinition(xmp, DomHelper.getQName(property)); PropertyType ptype = tm.getStructuredPropMapping(dtype.type()).getPropertyType(name); // create property createProperty(xmp, property, ptype, parentContainer); } } finally { nsFinder.pop(); } }
private void parseDescriptionInner(XMPMetadata xmp, Element description, ComplexPropertyContainer parentContainer) throws XmpParsingException { nsFinder.push(description); TypeMapping tm = xmp.getTypeMapping(); try { List<Element> properties = DomHelper.getElementChildren(description); for (Element property : properties) { String name = property.getLocalName(); PropertyType dtype = checkPropertyDefinition(xmp, DomHelper.getQName(property)); PropertyType ptype = tm.getStructuredPropMapping(dtype.type()).getPropertyType(name); // create property createProperty(xmp, property, ptype, parentContainer); } } finally { nsFinder.pop(); } }
String name = element.getLocalName(); String namespace = element.getNamespaceURI(); PropertyType type = pm.getPropertyType(name); if (type == null)
String name = element.getLocalName(); String namespace = element.getNamespaceURI(); PropertyType type = pm.getPropertyType(name); if (type == null)