public abstract class Options
extends java.lang.Object
Constructor and Description |
---|
Options()
The default constructor.
|
Options(int options)
Constructor with the options bit mask.
|
Modifier and Type | Method and Description |
---|---|
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() |
public Options()
public Options(int options) throws XMPException
options
- the options bit maskXMPException
- If the options are not correctpublic void clear()
public boolean isExactly(int optionBits)
optionBits
- an option bitmaskpublic boolean containsAllOptions(int optionBits)
optionBits
- an option bitmaskpublic boolean containsOneOf(int optionBits)
optionBits
- an option bitmaskpublic 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
- If the options are not correctpublic 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
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"