public final class JCEnum extends Object
JCEnum
class represents a reflected CLR Enum.
To instantiate a valid JCEnum
use a valid instance of
JCOBridge
with JCOBridge.GetEnum(java.lang.String)
.
Some examples on its use are on https://github.com/masesgroup/JCOReflector
Modifier and Type | Method and Description |
---|---|
JCEnum |
add(JCEnum value)
Execute the OR operation in case of Flags
|
JCEnum |
fromValue(String val)
Returns a new
JCEnum from the input parameter. |
JCEnum |
fromValues(String... values)
Returns a new
JCEnum from the input parameter. |
String[] |
getAllValues() |
String |
getTypeName() |
String |
getValue() |
String[] |
getValues() |
boolean |
has(JCEnum value)
|
boolean |
is(JCEnum value)
|
JCEnum |
remove(JCEnum value)
Execute the XOR operation in case of Flags
|
String |
toString()
This method is used to get an equivalent CLR ToString.
|
public JCEnum fromValue(String val) throws JCException
JCEnum
from the input parameter.val
- The string representation of CLR Enum value to useJCEnum
instanceJCException
- in case the JCEnum
does not contains input valuepublic JCEnum fromValues(String... values) throws JCException
JCEnum
from the input parameter. Use in case of CLR
Flagsvalues
- The string representations of CLR Enum values to useJCEnum
instanceJCException
- in case the JCEnum
does not contains input valuespublic String toString()
public String getTypeName()
public String getValue()
public String[] getValues()
public String[] getAllValues()
public JCEnum add(JCEnum value) throws JCException
value
- The value to use to make the OR operationJCEnum
JCException
- in case the input JCEnum
is not compliant in typepublic JCEnum remove(JCEnum value) throws JCException
value
- The value to use to make the OR operationJCEnum
JCException
- in case the input JCEnum
is not compliant in typepublic boolean is(JCEnum value) throws JCException
value
- The value to use to make the operationJCEnum
is the inputJCException
- in case the input JCEnum
is not compliant in typepublic boolean has(JCEnum value) throws JCException
value
- The value to use to make the operationJCEnum
has the inputJCException
- in case the input JCEnum
is not compliant in type