public class SerializedEnum extends AbstractSerializedReferenceType implements SerializedImmutableType
Constructor and Description |
---|
SerializedEnum(Class<?> type) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ReferenceTypeVisitor<T> visitor) |
<T> T |
accept(RoleVisitor<T> visitor) |
String |
getName() |
List<SerializedValue> |
referencedValues() |
void |
setName(String name) |
String |
toString() |
SerializedEnum |
withName(String name) |
getId, getUsedTypes, setId, useAs
getType, inferType, satisfiesType, satisfiesType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, setId, useAs
getType, getUsedTypes
public SerializedEnum(Class<?> type)
public SerializedEnum withName(String name)
public void setName(String name)
public String getName()
public List<SerializedValue> referencedValues()
referencedValues
in interface SerializedValue
public <T> T accept(RoleVisitor<T> visitor)
accept
in interface SerializedRole
public <T> T accept(ReferenceTypeVisitor<T> visitor)
accept
in interface SerializedReferenceType
Copyright © 2020. All rights reserved.