Package com.itextpdf.kernel.xmp.options
Class AliasOptions
java.lang.Object
com.itextpdf.kernel.xmp.options.Options
com.itextpdf.kernel.xmp.options.AliasOptions
Options for XMPSchemaRegistryImpl#registerAlias.
- Since:
- 20.02.2006
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The actual is an unordered array, the alias is to the first element of the array.static final int
The actual is an alternate text array, the alias is to the 'x-default' element of the array.static final int
The actual is an alternate array, the alias is to the first element of the array.static final int
The actual is an ordered array, the alias is to the first element of the array.static final int
This is a direct mapping. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
defineOptionName
(int option) To be implemeted by inheritants.protected int
To be implemeted by inheritants.boolean
isArray()
boolean
boolean
boolean
boolean
isSimple()
setArray
(boolean value) setArrayAlternate
(boolean value) setArrayAltText
(boolean value) setArrayOrdered
(boolean value) Methods inherited from class com.itextpdf.kernel.xmp.options.Options
assertConsistency, clear, containsAllOptions, containsOneOf, equals, getOption, getOptions, getOptionsString, hashCode, isExactly, setOption, setOptions, toString
-
Field Details
-
PROP_DIRECT
public static final int PROP_DIRECTThis is a direct mapping. The actual data type does not matter.- See Also:
-
PROP_ARRAY
public static final int PROP_ARRAYThe actual is an unordered array, the alias is to the first element of the array.- See Also:
-
PROP_ARRAY_ORDERED
public static final int PROP_ARRAY_ORDEREDThe actual is an ordered array, the alias is to the first element of the array.- See Also:
-
PROP_ARRAY_ALTERNATE
public static final int PROP_ARRAY_ALTERNATEThe actual is an alternate array, the alias is to the first element of the array.- See Also:
-
PROP_ARRAY_ALT_TEXT
public static final int PROP_ARRAY_ALT_TEXTThe actual is an alternate text array, the alias is to the 'x-default' element of the array.- See Also:
-
-
Constructor Details
-
AliasOptions
public AliasOptions()- See Also:
-
AliasOptions
- Parameters:
-
options
- the options to init with - Throws:
-
XMPException
- If options are not consistant
-
-
Method Details
-
isSimple
public boolean isSimple()- Returns:
- Returns if the alias is of the simple form.
-
isArray
public boolean isArray()- Returns:
- Returns the option.
-
setArray
- Parameters:
-
value
- the value to set - Returns:
- Returns the instance to call more set-methods.
-
isArrayOrdered
public boolean isArrayOrdered()- Returns:
- Returns the option.
-
setArrayOrdered
- Parameters:
-
value
- the value to set - Returns:
- Returns the instance to call more set-methods.
-
isArrayAlternate
public boolean isArrayAlternate()- Returns:
- Returns the option.
-
setArrayAlternate
- Parameters:
-
value
- the value to set - Returns:
- Returns the instance to call more set-methods.
-
isArrayAltText
public boolean isArrayAltText()- Returns:
- Returns the option.
-
setArrayAltText
- Parameters:
-
value
- the value to set - Returns:
- Returns the instance to call more set-methods.
-
toPropertyOptions
- Returns:
-
returns a
PropertyOptions
s object - Throws:
-
XMPException
- If the options are not consistant.
-
defineOptionName
Description copied from class:Options
To be implemeted by inheritants.- Specified by:
-
defineOptionName
in classOptions
- Parameters:
-
option
- a single, valid option bit. - Returns:
- Returns a human readable name for an option bit.
- See Also:
-
getValidOptions
protected int getValidOptions()Description copied from class:Options
To be implemeted by inheritants.- Specified by:
-
getValidOptions
in classOptions
- Returns:
- Returns a bit mask where all valid option bits are set.
- See Also:
-