private void manageSimpleType(XMPMetadata xmp, Element property, Types type, ComplexPropertyContainer container) throws XmpParsingException { TypeMapping tm = xmp.getTypeMapping(); String prefix = property.getPrefix(); String name = property.getLocalName(); String namespace = property.getNamespaceURI(); AbstractSimpleProperty sp = tm.instanciateSimpleProperty(namespace, prefix, name, property.getTextContent(), type); loadAttributes(sp, property); container.addProperty(sp); }
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); }
AbstractSimpleProperty sp = tm.instanciateSimpleProperty(namespace, schema.getPrefix(), attr.getLocalName(), attr.getValue(), type.type()); container.addProperty(sp);
if (type.isSimple()) AbstractField af = tm.instanciateSimpleProperty(descriptor.getNamespaceURI(), descriptor.getPrefix(), descriptor.getLocalPart(), text, type); loadAttributes(af, liElement);
public void addAlternatePath(String value) { ArrayProperty seq = (ArrayProperty) getFirstEquivalentProperty(ALTERNATE_PATHS, ArrayProperty.class); if (seq == null) { seq = getMetadata().getTypeMapping().createArrayProperty(null, getPreferedPrefix(), ALTERNATE_PATHS, Cardinality.Seq); addProperty(seq); } TypeMapping tm = getMetadata().getTypeMapping(); TextType tt = (TextType) tm.instanciateSimpleProperty(null, "rdf", "li", value, Types.Text); seq.addProperty(tt); }
specifiedTypeProperty = tm.instanciateSimpleProperty(null, getPrefix(), qualifiedName, propertyValue, type);
AbstractSimpleProperty sp = tm.instanciateSimpleProperty(namespace, prefix, name, element.getTextContent(), type.type()); loadAttributes(sp, element);
private void manageSimpleType(XMPMetadata xmp, Element property, Types type, ComplexPropertyContainer container) throws XmpParsingException { TypeMapping tm = xmp.getTypeMapping(); String prefix = property.getPrefix(); String name = property.getLocalName(); String namespace = property.getNamespaceURI(); AbstractSimpleProperty sp = tm.instanciateSimpleProperty(namespace, prefix, name, property.getTextContent(), type); loadAttributes(sp, property); container.addProperty(sp); }
private void manageSimpleType(XMPMetadata xmp, Element property, Types type, ComplexPropertyContainer container) throws XmpParsingException { TypeMapping tm = xmp.getTypeMapping(); String prefix = property.getPrefix(); String name = property.getLocalName(); String namespace = property.getNamespaceURI(); AbstractSimpleProperty sp = tm.instanciateSimpleProperty(namespace, prefix, name, property.getTextContent(), type); loadAttributes(sp, property); container.addProperty(sp); }
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 AbstractField parseLiElement(XMPMetadata xmp, QName descriptor, Element liElement, Types type) throws XmpParsingException { if (DomHelper.isParseTypeResource(liElement)) { return parseLiDescription(xmp, descriptor, liElement); } // will find rdf:Description Element liChild = DomHelper.getUniqueElementChild(liElement); if (liChild != null) { nsFinder.push(liChild); return parseLiDescription(xmp, descriptor, liChild); } else { // no child String text = liElement.getTextContent(); TypeMapping tm = xmp.getTypeMapping(); AbstractSimpleProperty sp = tm.instanciateSimpleProperty(descriptor.getNamespaceURI(), descriptor.getPrefix(), descriptor.getLocalPart(), text, type); loadAttributes(sp, liElement); return sp; } }
AbstractSimpleProperty sp = tm.instanciateSimpleProperty(namespace, schema.getPrefix(), attr.getLocalName(), attr.getValue(), type.type()); container.addProperty(sp);
AbstractSimpleProperty sp = tm.instanciateSimpleProperty(namespace, schema.getPrefix(), attr.getLocalName(), attr.getValue(), type.type()); container.addProperty(sp);
if (type.isSimple()) AbstractField af = tm.instanciateSimpleProperty(descriptor.getNamespaceURI(), descriptor.getPrefix(), descriptor.getLocalPart(), text, type); loadAttributes(af, liElement);
public void addAlternatePath(String value) { ArrayProperty seq = (ArrayProperty) getFirstEquivalentProperty(ALTERNATE_PATHS, ArrayProperty.class); if (seq == null) { seq = getMetadata().getTypeMapping().createArrayProperty(null, getPreferedPrefix(), ALTERNATE_PATHS, Cardinality.Seq); addProperty(seq); } TypeMapping tm = getMetadata().getTypeMapping(); TextType tt = (TextType) tm.instanciateSimpleProperty(null, "rdf", "li", value, Types.Text); seq.addProperty(tt); }
public void addAlternatePath(String value) { ArrayProperty seq = (ArrayProperty) getFirstEquivalentProperty(ALTERNATE_PATHS, ArrayProperty.class); if (seq == null) { seq = getMetadata().getTypeMapping().createArrayProperty(null, getPreferedPrefix(), ALTERNATE_PATHS, Cardinality.Seq); addProperty(seq); } TypeMapping tm = getMetadata().getTypeMapping(); TextType tt = (TextType) tm.instanciateSimpleProperty(null, "rdf", "li", value, Types.Text); seq.addProperty(tt); }
specifiedTypeProperty = tm.instanciateSimpleProperty(null, getPrefix(), qualifiedName, propertyValue, type);
specifiedTypeProperty = tm.instanciateSimpleProperty(null, getPrefix(), qualifiedName, propertyValue, type);
AbstractSimpleProperty sp = tm.instanciateSimpleProperty(namespace, prefix, name, element.getTextContent(), type.type()); loadAttributes(sp, element);