|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.optical.ProtectionMode
The protection mode specified how the component can be used. The mode
specifies the possible values of the attribute protection in the used
component.
ProtectionMode NONE protection false (fixed)
ProtectionMode ONLY protection true (fixed)
ProtectionMode SHARED protection true/false (variable)
This class was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
| Field Summary | |
static int |
NEVER
Only for non protection purpose - protection is false only (VALUE==2). |
private static java.lang.String |
NEVER_STR
the string representation of this mode (VALUE==NONE). |
static int |
ONLY
Only for protection purpose - protection is true only (VALUE==1). |
private static java.lang.String |
ONLY_STR
the string representation of this mode (VALUE==ONLY). |
static int |
SHARED
Protection can be set and reset (VALUE==0). |
private static java.lang.String |
SHARED_STR
the string representation of this mode (VALUE==SHARED). |
| Constructor Summary | |
private |
ProtectionMode()
To prevent instantiation. |
| Method Summary | |
static java.lang.String |
modeToStr(int mode)
Converts a protection mode into a String. |
static int |
strToMode(java.lang.String modeStr)
Converts a protection string into the mode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SHARED
public static final int ONLY
public static final int NEVER
private static final java.lang.String SHARED_STR
private static final java.lang.String ONLY_STR
private static final java.lang.String NEVER_STR
| Constructor Detail |
private ProtectionMode()
| Method Detail |
public static final int strToMode(java.lang.String modeStr)
modeStr - The String that contains the mode.
IllegalDataException - If the string is not known.public static final java.lang.String modeToStr(int mode)
mode - The int that contains the mode.
IllegalDataException - If the mode is not known.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||