public final class PropertyOptions extends Options
XMPMeta
-object
and provide more detailed information about the property.Type | Property and Description |
---|---|
boolean |
isComposite
Gets the value of the property compositeProperty.
|
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 |
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.
|
boolean |
equalArrayTypes(PropertyOptions options)
Compares two options set for array compatibility.
|
int |
getArrayElementsLimit() |
boolean |
getHasLanguage() |
boolean |
getHasQualifiers() |
boolean |
getHasType() |
boolean |
isArray() |
boolean |
isArrayAlternate() |
boolean |
isArrayAltText() |
boolean |
isArrayLimited() |
boolean |
isArrayOrdered() |
boolean |
isCompositeProperty()
Gets the value of the property compositeProperty.
|
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 |
setArrayElementLimit(int arrayLimit) |
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, getOptions, getOptionsString, hashCode, isExactly, setOption, setOptions, toString
public boolean isCompositeProperty
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 PropertyOptions()
public PropertyOptions(int options) throws XMPException
options
- the initialization optionsXMPException
- If the options are not validpublic boolean isURI()
public PropertyOptions setURI(boolean value)
value
- the value to setpublic boolean getHasQualifiers()
public PropertyOptions setHasQualifiers(boolean value)
value
- the value to setpublic boolean isQualifier()
public PropertyOptions setQualifier(boolean value)
value
- the value to setpublic boolean getHasLanguage()
public PropertyOptions setHasLanguage(boolean value)
value
- the value to setpublic boolean getHasType()
public PropertyOptions setHasType(boolean value)
value
- the value to setpublic boolean isStruct()
public PropertyOptions setStruct(boolean value)
value
- the value to setpublic boolean isArray()
public PropertyOptions setArray(boolean value)
value
- the value to setpublic boolean isArrayOrdered()
public PropertyOptions setArrayOrdered(boolean value)
value
- the value to setpublic boolean isArrayAlternate()
public PropertyOptions setArrayAlternate(boolean value)
value
- the value to setpublic boolean isArrayAltText()
public PropertyOptions setArrayAltText(boolean value)
value
- the value to setpublic boolean isArrayLimited()
public PropertyOptions setArrayElementLimit(int arrayLimit)
arrayLimit
- the limit to set on number-of-elementspublic int getArrayElementsLimit()
public boolean isSchemaNode()
public PropertyOptions setSchemaNode(boolean value)
value
- the option DELETE_EXISTING to setpublic boolean isCompositeProperty()
public boolean isSimple()
public boolean equalArrayTypes(PropertyOptions options)
options
- other optionspublic void mergeWith(PropertyOptions options) throws XMPException
options
- other optionsXMPException
- If illegal options are providedpublic boolean isOnlyArrayOptions()
public void assertConsistency(int options) throws XMPException
options
- the bitmask to check.XMPException
- Thrown if the options are not consistent.Copyright © 2010 - 2020 Adobe. All Rights Reserved