public boolean isDefinedNamespace(String namespace) { return isDefinedSchema(namespace) || isStructuredTypeNamespace(namespace) || isDefinedTypeNamespace(namespace); }
private void parseChildrenAsProperties(XMPMetadata xmp, List<Element> properties, TypeMapping tm, Element description) throws XmpParsingException, XmpSchemaException { // parse children elements as properties for (Element property : properties) { String namespace = property.getNamespaceURI(); PropertyType type = checkPropertyDefinition(xmp, DomHelper.getQName(property)); // create the container if (!tm.isDefinedSchema(namespace)) { throw new XmpParsingException(ErrorType.NoSchema, "This namespace is not a schema or a structured type : " + namespace); } XMPSchema schema = xmp.getSchema(namespace); if (schema == null) { schema = tm.getSchemaFactory(namespace).createXMPSchema(xmp, property.getPrefix()); loadAttributes(schema, description); } ComplexPropertyContainer container = schema.getContainer(); // create property createProperty(xmp, property, type, container); } }
public boolean isDefinedNamespace(String namespace) { return isDefinedSchema(namespace) || isStructuredTypeNamespace(namespace) || isDefinedTypeNamespace(namespace); }
public boolean isDefinedNamespace(String namespace) { return isDefinedSchema(namespace) || isStructuredTypeNamespace(namespace) || isDefinedTypeNamespace(namespace); }
private void parseChildrenAsProperties(XMPMetadata xmp, List<Element> properties, TypeMapping tm, Element description) throws XmpParsingException, XmpSchemaException { // parse children elements as properties for (Element property : properties) { String namespace = property.getNamespaceURI(); PropertyType type = checkPropertyDefinition(xmp, DomHelper.getQName(property)); // create the container if (!tm.isDefinedSchema(namespace)) { throw new XmpParsingException(ErrorType.NoSchema, "This namespace is not a schema or a structured type : " + namespace); } XMPSchema schema = xmp.getSchema(namespace); if (schema == null) { schema = tm.getSchemaFactory(namespace).createXMPSchema(xmp, property.getPrefix()); loadAttributes(schema, description); } ComplexPropertyContainer container = schema.getContainer(); // create property createProperty(xmp, property, type, container); } }
private void parseChildrenAsProperties(XMPMetadata xmp, List<Element> properties, TypeMapping tm, Element description) throws XmpParsingException, XmpSchemaException { // parse children elements as properties for (Element property : properties) { String namespace = property.getNamespaceURI(); PropertyType type = checkPropertyDefinition(xmp, DomHelper.getQName(property)); // create the container if (!tm.isDefinedSchema(namespace)) { throw new XmpParsingException(ErrorType.NoSchema, "This namespace is not a schema or a structured type : " + namespace); } XMPSchema schema = xmp.getSchema(namespace); if (schema == null) { schema = tm.getSchemaFactory(namespace).createXMPSchema(xmp, property.getPrefix()); loadAttributes(schema, description); } ComplexPropertyContainer container = schema.getContainer(); // create property createProperty(xmp, property, type, container); } }