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); }
AbstractField ast = parseLiElement(xmp, propertyQName, element, type.type()); if (ast != null)
attr.getLocalName(), attr.getValue(), type.type()); container.addProperty(sp);
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(); } }
Types tt = ctype.type(); AbstractStructuredType ast = instanciateStructured(tm, tt, descriptor.getLocalPart(), first.getNamespaceURI()); for (Element element2 : lis) AbstractField ast2 = parseLiElement(xmp, descriptor, element2, type.type()); if (ast2 != null) else if (type.type().isSimple()) element.getTextContent(), type.type()); loadAttributes(sp, element); ast.getContainer().addProperty(sp); else if (type.type().isStructured()) AbstractStructuredType inner = instanciateStructured(tm, type.type(), name, null); inner.setNamespace(namespace); inner.setPrefix(prefix);
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); }
AbstractField ast = parseLiElement(xmp, propertyQName, element, type.type()); if (ast != null)
attr.getLocalName(), attr.getValue(), type.type()); container.addProperty(sp);
AbstractField ast = parseLiElement(xmp, propertyQName, element, type.type()); if (ast != null)
attr.getLocalName(), attr.getValue(), type.type()); container.addProperty(sp);
Types tt = ctype.type(); AbstractStructuredType ast = instanciateStructured(tm, tt, descriptor.getLocalPart(), first.getNamespaceURI()); for (Element element2 : lis) AbstractField ast2 = parseLiElement(xmp, descriptor, element2, type.type()); if (ast2 != null) else if (type.type().isSimple()) element.getTextContent(), type.type()); loadAttributes(sp, element); ast.getContainer().addProperty(sp); else if (type.type().isStructured()) AbstractStructuredType inner = instanciateStructured(tm, type.type(), name, null); inner.setNamespace(namespace); inner.setPrefix(prefix);
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(); } }