Top Description Fields Constructors Methods
org.apache.xmpbox.type

public Class PropertiesDescription

extends Object
Class Inheritance
Imports
java.util.ArrayList, .HashMap, .List, .Map

Represents all properties known for a specific namespace Type and attributes associated to each properties are saved If a specific type well declared is used, this class map it to a basic type
Author
a183132 Attribute management pre-implemented in order to give clues to make an attribute management system

Field Summary

Modifier and TypeField and Description
private final Map<String, PropertyType>

Constructor Summary

AccessConstructor and Description
public
PropertiesDescription()

Build PropMapping for specified namespace

Method Summary

Modifier and TypeMethod and Description
public void
addNewProperty(String
new property name
name
,
PropertyType
Valuetype of the new property
type
)

Add a new property, an attributes list can be given or can be null

public List<String>

Returns:

a list of properties qualifiedName
getPropertiesName
()

Get All Properties Name

public PropertyType

Returns:

Type of property or null
getPropertyType
(String
The name of the property concerned
name
)

Return a type of a property from its qualifiedName

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

typesback to summary
private final Map<String, PropertyType> types

Constructor Detail

PropertiesDescriptionback to summary
public PropertiesDescription()

Build PropMapping for specified namespace

Method Detail

addNewPropertyback to summary
public void addNewProperty(String name, PropertyType type)

Add a new property, an attributes list can be given or can be null

Parameters
name:String

new property name

type:PropertyType

Valuetype of the new property

getPropertiesNameback to summary
public List<String> getPropertiesName()

Get All Properties Name

Returns:List<String>

a list of properties qualifiedName

getPropertyTypeback to summary
public PropertyType getPropertyType(String name)

Return a type of a property from its qualifiedName

Parameters
name:String

The name of the property concerned

Returns:PropertyType

Type of property or null