public final class OpenId extends AbstractFieldsObject
OpenId ::=
CHOICE {
local INTEGER,
global OBJECT IDENTIFIER,
...
}
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenId.Choice
API for the choice's discriminant.
|
FIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
OpenId() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkFieldsSet()
Checks that all mandatory fields are present.
|
OpenId |
clone()
Constructs a copy of this object and everything reachable from it.
|
static OpenId |
copyOf(OpenId from)
Creates a new object of this type, initialising its field values from those of the given object.
|
OpenId.Choice |
getChoice()
Gets the discriminant of the current choice.
|
static FieldAccessor[] |
getFieldAccessors()
Gets a new array of the accessors for fields of this type.
|
Map<String,Object> |
getFieldsMap(boolean withAbsents)
Gets a Map from :discriminant-name to associated-value.
|
ObjectID |
getGlobal()
Gets the value of the global choice.
|
long |
getLocal()
Gets the value of the local choice.
|
boolean |
isGlobalChosen()
Tests whether the choice is global.
|
boolean |
isLocalChosen()
Tests whether the choice is local.
|
protected void |
setChoice(OpenId.Choice arg)
Sets the discriminant of the current choice.
|
OpenId |
setGlobal(ObjectID value)
Sets the value of the global choice.
|
OpenId |
setLocal(long value)
Sets the value of the local choice.
|
equals, hashCode, toStringcheckModify, isReadOnly, setReadOnlypublic void checkFieldsSet()
throws EncodeFailedException
EncodeFailedException - if any mandatory field is not presentpublic OpenId clone()
clone in interface DataObjectclone in class AbstractDataObjectpublic static OpenId copyOf(OpenId from)
from - the object from which to copypublic OpenId.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap in class AbstractFieldsObjectwithAbsents - ignored, as value cannot be optionalpublic ObjectID getGlobal()
public long getLocal()
public boolean isGlobalChosen()
public boolean isLocalChosen()
protected void setChoice(OpenId.Choice arg)
arg - the new discriminantpublic OpenId setGlobal(ObjectID value)
value - the new value for the choicepublic OpenId setLocal(long value)
value - the new value for the choice