public class DataModelEnum
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.util.List<DataModelEnumElement> |
dataModelEnumElement |
static int |
DEFAULT_DEFAULT_VALUE |
static boolean |
DEFAULT_STRICT |
int |
defaultValue |
java.util.List<Label> |
label |
java.lang.String |
name |
boolean |
strict |
Constructor and Description |
---|
DataModelEnum() |
DataModelEnum(DataModelEnum o)
Copy constructor
|
DataModelEnum(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(DataModelEnumElement element) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this DataModelEnum.
|
static DataModelEnum |
fromString(java.lang.String s)
String representation of this DataModelEnum.
|
java.util.List<DataModelEnumElement> |
getDataModelEnumElement()
Possible values for the enum.
|
int |
getDefaultValue()
Index of default value in the elements list.
-1 = no default value for property |
java.util.List<Label> |
getLabel()
Labels for i18n.
|
java.lang.String |
getName() |
boolean |
isStrict()
If strict, this data type will only accept values listed in elements.
Warning: This is not implemented for the moment. |
DataModelEnum |
makeCopy()
Creates and returns a deep copy of this DataModelEnum.
|
static DataModelEnum |
readFrom(java.io.InputStream is)
Read this DataModelEnum from an XML fragment.
|
void |
setDefaultValue(int defaultValue)
Index of default value in the elements list.
-1 = no default value for property |
void |
setName(java.lang.String name) |
void |
setStrict(boolean strict)
If strict, this data type will only accept values listed in elements.
Warning: This is not implemented for the moment. |
java.lang.String |
toString()
String representation of this DataModelEnum.
|
DataModelEnum |
withDataModelEnumElement(java.util.Collection<DataModelEnumElement> __values) |
DataModelEnum |
withDataModelEnumElement(DataModelEnumElement... __values)
Possible values for the enum.
|
DataModelEnum |
withDefaultValue(int defaultValue) |
DataModelEnum |
withDefaultValue(java.lang.Integer defaultValue) |
DataModelEnum |
withLabel(java.util.Collection<Label> __values) |
DataModelEnum |
withLabel(Label... __values)
Labels for i18n.
|
DataModelEnum |
withName(java.lang.String name) |
DataModelEnum |
withStrict(boolean strict) |
DataModelEnum |
withStrict(java.lang.Boolean strict) |
void |
writeTo(java.io.OutputStream os)
Write this DataModelEnum as an XML fragment
|
public java.lang.String name
public java.util.List<DataModelEnumElement> dataModelEnumElement
public boolean strict
public static final boolean DEFAULT_STRICT
public int defaultValue
public static final int DEFAULT_DEFAULT_VALUE
public java.util.List<Label> label
public DataModelEnum()
public DataModelEnum(DataModelEnum o)
public DataModelEnum(java.lang.String name)
public void setName(java.lang.String name)
public java.lang.String getName()
public DataModelEnum withName(java.lang.String name)
public java.util.List<DataModelEnumElement> getDataModelEnumElement()
public DataModelEnum withDataModelEnumElement(DataModelEnumElement... __values)
public DataModelEnum withDataModelEnumElement(java.util.Collection<DataModelEnumElement> __values)
public void setStrict(boolean strict)
public boolean isStrict()
public DataModelEnum withStrict(boolean strict)
public DataModelEnum withStrict(java.lang.Boolean strict)
public void setDefaultValue(int defaultValue)
public int getDefaultValue()
public DataModelEnum withDefaultValue(int defaultValue)
public DataModelEnum withDefaultValue(java.lang.Integer defaultValue)
public java.util.List<Label> getLabel()
public DataModelEnum withLabel(Label... __values)
public DataModelEnum withLabel(java.util.Collection<Label> __values)
public DataModelEnum makeCopy()
public static DataModelEnum readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static DataModelEnum fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
public void addElement(DataModelEnumElement element)
Copyright © 2021 Dassault Systèmes, All Rights Reserved.