public interface TypeRegistry
Modifier and Type | Method and Description |
---|---|
ArrayType |
createArray(ArrayType.ArrayForm form,
PropertyType itemType)
Creates an array type.
|
SimpleType |
createDerivedType(SimpleType.BasicType basicType)
Creates a derived simple type from a basic type.
|
SimpleType |
createDerivedType(SimpleType inheritedType)
Creates a derived simple type.
|
StructType |
createStruct(String namespaceURI)
Creates a struct type.
|
PropertyType |
getType(SimpleType.BasicType type) |
PropertyType |
getType(String typeName)
Returns a registered type.
|
List<PropertyType> |
getTypes() |
Collection<UnspecifiedType> |
getUnspecifiedTypes() |
void |
registerType(String name,
PropertyType propertyType)
Registers a property type by name.
|
PropertyType |
registerUnspecifiedType(String typeName)
Registers an unspecified type, that is just a place holder for a type that is defined later.
|
void |
replaceUnspecifiedType(PropertyType unspecified,
PropertyType finalType)
Replaces the type of all properties that reference the unspecified type.
|
PropertyType getType(String typeName)
typeName
- name of the Typenull
PropertyType getType(SimpleType.BasicType type)
type
- Enum value of the basic typeList<PropertyType> getTypes()
void registerType(String name, PropertyType propertyType) throws XMPSchemaException
name
- the name of the propertypropertyType
- the PropertyType to registerXMPSchemaException
- Thrown if the name is not valid
or it is tried to register duplicate names.SimpleType createDerivedType(SimpleType.BasicType basicType)
basicType
- one of the five basic types: Text, Boolean, Integer, Real or DateSimpleType createDerivedType(SimpleType inheritedType)
inheritedType
- any simple typeStructType createStruct(String namespaceURI)
namespaceURI
- a namespaceArrayType createArray(ArrayType.ArrayForm form, PropertyType itemType)
form
- the form of the arrayitemType
- the type of the array itemsPropertyType registerUnspecifiedType(String typeName)
typeName
- the name of the typeCollection<UnspecifiedType> getUnspecifiedTypes()
void replaceUnspecifiedType(PropertyType unspecified, PropertyType finalType)
unspecified
- an unspecified property typefinalType
- the final property type.Copyright © 2010 - 2020 Adobe. All Rights Reserved