| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adobe.xmp.options.Options
com.adobe.xmp.options.PropertyOptions
public final class PropertyOptions
The property flags are used when properties are fetched from the XMPMeta-object
 and provide more detailed information about the property.
| Field Summary | |
|---|---|
| static int | ARRAY | 
| static int | ARRAY_ALT_TEXT | 
| static int | ARRAY_ALTERNATE | 
| static int | ARRAY_ORDERED | 
| static int | DELETE_EXISTINGmay 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 Summary | |
|---|---|
| PropertyOptions()Default constructor | |
| PropertyOptions(int options)Intialization constructor | |
| Method Summary | |
|---|---|
|  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. | 
|  boolean | getHasLanguage() | 
|  boolean | getHasQualifiers() | 
|  boolean | getHasType() | 
|  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) | 
| Methods inherited from class com.adobe.xmp.options.Options | 
|---|
| clear, containsAllOptions, containsOneOf, equals, getOptions, getOptionsString, hashCode, isExactly, setOption, setOptions, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
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
| Constructor Detail | 
|---|
public PropertyOptions()
public PropertyOptions(int options)
                throws XMPException
options - the initialization options
XMPException - If the options are not valid| Method Detail | 
|---|
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 providedpublic boolean isOnlyArrayOptions()
public void assertConsistency(int options)
                       throws XMPException
options - the bitmask to check.
XMPException - Thrown if the options are not consistent.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||