private AbstractStructuredType instanciateStructured(TypeMapping tm, Types type, String name, String structuredNamespace) throws XmpParsingException { try { if (type.isStructured()) { return tm.instanciateStructuredType(type, name); } else if (type.isDefined()) { return tm.instanciateDefinedType(name, structuredNamespace); } else { throw new XmpParsingException(ErrorType.InvalidType, "Type not structured : " + type); } } catch (BadFieldValueException e) { throw new XmpParsingException(ErrorType.InvalidType, "Parsing failed", e); } }
try af = tm.instanciateStructuredType(type, descriptor.getLocalPart());
private AbstractStructuredType instanciateStructured(TypeMapping tm, Types type, String name, String structuredNamespace) throws XmpParsingException { try { if (type.isStructured()) { return tm.instanciateStructuredType(type, name); } else if (type.isDefined()) { return tm.instanciateDefinedType(name, structuredNamespace); } else { throw new XmpParsingException(ErrorType.InvalidType, "Type not structured : " + type); } } catch (BadFieldValueException e) { throw new XmpParsingException(ErrorType.InvalidType, "Parsing failed", e); } }
try af = tm.instanciateStructuredType(type, descriptor.getLocalPart());
private AbstractStructuredType instanciateStructured(TypeMapping tm, Types type, String name, String structuredNamespace) throws XmpParsingException { try { if (type.isStructured()) { return tm.instanciateStructuredType(type, name); } else if (type.isDefined()) { return tm.instanciateDefinedType(name, structuredNamespace); } else { throw new XmpParsingException(ErrorType.InvalidType, "Type not structured : " + type); } } catch (BadFieldValueException e) { throw new XmpParsingException(ErrorType.InvalidType, "Parsing failed", e); } }