public final class PropertyOptions extends Options
XMPMeta
-object and provide more detailed information about the property.
Modifier and Type | Field and Description |
---|---|
static int |
ARRAY |
static int |
ARRAY_ALT_TEXT |
static int |
ARRAY_ALTERNATE |
static int |
ARRAY_ORDERED |
static int |
DELETE_EXISTING
may be used in the future
|
static int |
HAS_LANGUAGE |
static int |
HAS_QUALIFIERS |
static int |
HAS_TYPE |
static int |
NO_OPTIONS |
static int |
QUALIFIER |
static int |
SCHEMA_NODE |
static int |
SEPARATE_NODE
Updated by iText.
|
static int |
STRUCT |
static int |
URI |
Constructor and Description |
---|
PropertyOptions()
Default constructor
|
PropertyOptions(int options)
Intialization constructor
|
Modifier and Type | Method and Description |
---|---|
void |
assertConsistency(int options)
Checks that a node not a struct and array at the same time; and URI cannot be a struct.
|
protected String |
defineOptionName(int option)
To be implemeted by inheritants.
|
boolean |
equalArrayTypes(PropertyOptions options)
Compares two options set for array compatibility.
|
boolean |
getHasLanguage() |
boolean |
getHasQualifiers() |
boolean |
getHasType() |
protected int |
getValidOptions()
To be implemeted by inheritants.
|
boolean |
isArray() |
boolean |
isArrayAlternate() |
boolean |
isArrayAltText() |
boolean |
isArrayOrdered() |
boolean |
isCompositeProperty() |
boolean |
isOnlyArrayOptions() |
boolean |
isQualifier() |
boolean |
isSchemaNode() |
boolean |
isSimple() |
boolean |
isStruct() |
boolean |
isURI() |
void |
mergeWith(PropertyOptions options)
Merges the set options of a another options object with this.
|
PropertyOptions |
setArray(boolean value) |
PropertyOptions |
setArrayAlternate(boolean value) |
PropertyOptions |
setArrayAltText(boolean value) |
PropertyOptions |
setArrayOrdered(boolean value) |
PropertyOptions |
setHasLanguage(boolean value) |
PropertyOptions |
setHasQualifiers(boolean value) |
PropertyOptions |
setHasType(boolean value) |
PropertyOptions |
setQualifier(boolean value) |
PropertyOptions |
setSchemaNode(boolean value) |
PropertyOptions |
setStruct(boolean value) |
PropertyOptions |
setURI(boolean value) |
clear, containsAllOptions, containsOneOf, equals, getOption, getOptions, getOptionsString, hashCode, isExactly, setOption, setOptions, toString
public static final int NO_OPTIONS
public static final int URI
public static final int HAS_QUALIFIERS
public static final int QUALIFIER
public static final int HAS_LANGUAGE
public static final int HAS_TYPE
public static final int STRUCT
public static final int ARRAY
public static final int ARRAY_ORDERED
public static final int ARRAY_ALTERNATE
public static final int ARRAY_ALT_TEXT
public static final int SCHEMA_NODE
public static final int DELETE_EXISTING
public static final int SEPARATE_NODE
public PropertyOptions()
public PropertyOptions(int options) throws XMPException
options
- the initialization options
XMPException
- If the options are not valid
public boolean isURI()
public PropertyOptions setURI(boolean value)
value
- the value to set
public boolean getHasQualifiers()
public PropertyOptions setHasQualifiers(boolean value)
value
- the value to set
public boolean isQualifier()
public PropertyOptions setQualifier(boolean value)
value
- the value to set
public boolean getHasLanguage()
public PropertyOptions setHasLanguage(boolean value)
value
- the value to set
public boolean getHasType()
public PropertyOptions setHasType(boolean value)
value
- the value to set
public boolean isStruct()
public PropertyOptions setStruct(boolean value)
value
- the value to set
public boolean isArray()
public PropertyOptions setArray(boolean value)
value
- the value to set
public boolean isArrayOrdered()
public PropertyOptions setArrayOrdered(boolean value)
value
- the value to set
public boolean isArrayAlternate()
public PropertyOptions setArrayAlternate(boolean value)
value
- the value to set
public boolean isArrayAltText()
public PropertyOptions setArrayAltText(boolean value)
value
- the value to set
public boolean isSchemaNode()
public PropertyOptions setSchemaNode(boolean value)
value
- the option DELETE_EXISTING to set
public boolean isCompositeProperty()
public boolean isSimple()
public boolean equalArrayTypes(PropertyOptions options)
options
- other options
public void mergeWith(PropertyOptions options) throws XMPException
options
- other options
XMPException
- If illegal options are provided
public boolean isOnlyArrayOptions()
protected int getValidOptions()
Options
getValidOptions
in class Options
Options.getValidOptions()
protected String defineOptionName(int option)
Options
defineOptionName
in class Options
option
- a single, valid option bit.
Options.defineOptionName(int)
public void assertConsistency(int options) throws XMPException
assertConsistency
in class Options
options
- the bitmask to check.
XMPException
- Thrown if the options are not consistent.
Copyright © 1998–2019. All rights reserved.