|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeDefinitionRename
Specifies the definition a property type that has the same structure and representation as its underlying type but has a different meaning.
An example of a rename type is the position type, which is used as another name for a 64-bit signed integer value
(Int64
).
makeTypeDefinitionRename()
,
TypeCategory.Rename
Method Summary | |
---|---|
PropertyValue |
createValueFromBaseValue(PropertyValue propertyValue)
Returns a property value defined by this rename type definition containing, wrapping the given property value. |
TypeDefinition |
getBaseType()
Returns the type definition of the base type for which this rename type definition is an alias. |
PropertyValue |
getBaseValue(PropertyValue propertyValue)
Returns a property value of the base type, unwrapping the the given property value that is defined by this rename type definition. |
Methods inherited from interface tv.amwa.maj.iface.TypeDefinition |
---|
createValue, getTypeCategory |
Methods inherited from interface tv.amwa.maj.iface.MetaDefinition |
---|
getAUID, getDescription, getName, setDescription, setName |
Method Detail |
---|
TypeDefinition getBaseType()
Returns the type definition of the base type for which this rename type definition is an alias. The base type is also known as the renamed type.
PropertyValue getBaseValue(PropertyValue propertyValue) throws NullPointerException, IllegalPropertyValueException
Returns a property value of the base type, unwrapping the the given property value that is defined by this rename type definition.
Note that the value returned may contain a reference to the same internal value as the given property value and this data is not necessarily a new copy.
propertyValue
- Property value defined by the rename type
definition.
NullPointerException
- The given property value is null
.
IllegalPropertyValueException
- The given property value is not
compatible with this rename type definition.getBaseType()
PropertyValue createValueFromBaseValue(PropertyValue propertyValue) throws NullPointerException, IllegalPropertyValueException
Returns a property value defined by this rename type definition
containing, wrapping the given property value. The given
property value shall be of the same type as the underlying base
type of the rename type definition, as returned by
getBaseType()
.
Note that the value returned may contain a reference to the same internal value as the given property value and this data is not necessarily a new copy.
propertyValue
- Property value of the base type to create a
new property value of this rename type from.
NullPointerException
- The given property value is null
.
IllegalPropertyValueException
- The given property value is not compatible
with the base type of this rename type definition.
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |