|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.credential.qos.QOSFlags
public class QOSFlags
This class represents the set of flags that a QoS could potentially have that modifies the behavior of a QoS. This is done to easily collect all flags.
Constructor Summary | |
---|---|
QOSFlags()
The default constructor. |
|
QOSFlags(java.lang.String flagsString)
Constructor creates flag set based on input string. |
Method Summary | |
---|---|
void |
addFlag(QOSFlag flag)
Adds a flag to the set of flags. |
java.util.Set<QOSFlag> |
getFlags()
Returns all flags as a Set . |
boolean |
isEmpty()
Returns true if there are no flags set. |
boolean |
isIgnoreAllSet()
If true, the QOSFlag.IGNALL flag is set; false, otherwise. |
boolean |
isSet(QOSFlag flag)
Determine if this QoS contains a given QOSFlag |
void |
removeFlag(QOSFlag qosFlag)
Attempts to remove the specified QOSFlag. |
void |
setFlags(java.util.Set<QOSFlag> flags)
Sets the flags for a QoS. |
void |
setFromString(java.lang.String flagsString)
Sets the set of flags based on a comma separated string of QOSFlag types. |
java.lang.String |
toDelimitedString(java.lang.String delimiter)
Return a user-specified delimited list of this QoS's flags. |
java.lang.String |
toString()
Return a comma delimited list of this QoS's flags |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QOSFlags()
public QOSFlags(java.lang.String flagsString)
QOSFlag
object.
flagsString
- a comma or colon separated list of QOSFlag typesQOSFlag.parseString(String)
Method Detail |
---|
public void setFromString(java.lang.String flagsString) throws java.text.ParseException
flagsString
- the comma or space separated list of QOSFlag types
java.text.ParseException
- thrown if any problems occur when trying to parse the
QoS flags.public boolean isSet(QOSFlag flag)
flag
- the flag to check
public java.lang.String toDelimitedString(java.lang.String delimiter)
delimiter
- The string to use as a delimiter between each flag
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<QOSFlag> getFlags()
Set
.
public void removeFlag(QOSFlag qosFlag)
qosFlag
- the flag to remove.public void setFlags(java.util.Set<QOSFlag> flags)
flags
- the set of flags to use.public void addFlag(QOSFlag flag)
flag
- the flag to add to the collection.public boolean isEmpty()
public boolean isIgnoreAllSet()
QOSFlag.IGNALL
flag is set; false, otherwise.
QOSFlag.IGNALL
flag is set; false, otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |