|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.adobe.xmp.options.Options
public abstract class Options
The base class for a collection of 32 flag bits. Individual flags are defined as enum value bit masks. Inheriting classes add convenience accessor methods.
Constructor Summary | |
---|---|
Options()
The default constructor. |
|
Options(int options)
Constructor with the options bit mask. |
Method Summary | |
---|---|
void |
clear()
Resets the options. |
boolean |
containsAllOptions(int optionBits)
|
boolean |
containsOneOf(int optionBits)
|
boolean |
equals(java.lang.Object obj)
|
int |
getOptions()
Is friendly to access it during the tests. |
java.lang.String |
getOptionsString()
Creates a human readable string from the set options. |
int |
hashCode()
|
boolean |
isExactly(int optionBits)
|
void |
setOption(int optionBits,
boolean value)
|
void |
setOptions(int options)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Options()
public Options(int options) throws XMPException
options
- the options bit mask
XMPException
- If the options are not correctMethod Detail |
---|
public void clear()
public boolean isExactly(int optionBits)
optionBits
- an option bitmask
public boolean containsAllOptions(int optionBits)
optionBits
- an option bitmask
public boolean containsOneOf(int optionBits)
optionBits
- an option bitmask
public void setOption(int optionBits, boolean value)
optionBits
- the binary bit or bits that shall be set to the given valuevalue
- the boolean value to setpublic int getOptions()
public void setOptions(int options) throws XMPException
options
- The options to set.
XMPException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String getOptionsString()
true
by their name,
like "option1 | option4".public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |