public abstract class IModelProperty
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char |
TYPE_BOOLEAN |
static char |
TYPE_CODE_SIGNATURE |
static char |
TYPE_COMPOSITE_MODEL |
static char |
TYPE_COMPOSITE_MODEL_COLLECTION |
static char |
TYPE_END_RELATIONSHIP |
static char |
TYPE_HTML_STRING |
static char |
TYPE_INT |
static char |
TYPE_MODEL |
static char |
TYPE_MODEL_COLLECTION |
static char |
TYPE_PARENT_MODEL |
static char |
TYPE_RELATIONSHIP_END |
static char |
TYPE_STRING |
static char |
TYPE_STRING_ARRAY |
static char |
TYPE_STRING_SELECTION |
static char |
TYPE_TEXT_MODEL |
static char |
TYPE_TRANSIT_FROM |
static char |
TYPE_TRANSIT_TO |
Constructor and Description |
---|
IModelProperty(java.lang.String name,
char type,
IModelElement owner) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAllowModify() |
java.lang.String |
getName() |
IModelElement |
getOwner() |
char |
getType() |
abstract java.lang.Object |
getValue() |
boolean |
getValueAsBoolean() |
int |
getValueAsInt() |
IModelElement |
getValueAsModel() |
IModelElement[] |
getValueAsModelCollection() |
java.lang.String |
getValueAsString() |
java.lang.String[] |
getValueAsStringArray() |
abstract boolean |
isAllowModify()
Some model type does not allow modify its properties.
|
void |
setValue(boolean value) |
void |
setValue(double value) |
void |
setValue(int value) |
void |
setValue(long value) |
abstract void |
setValue(java.lang.Object value) |
void |
setValue(java.lang.String[] value) |
public static final char TYPE_BOOLEAN
public static final char TYPE_INT
public static final char TYPE_MODEL_COLLECTION
public static final char TYPE_COMPOSITE_MODEL_COLLECTION
public static final char TYPE_MODEL
public static final char TYPE_COMPOSITE_MODEL
public static final char TYPE_STRING
public static final char TYPE_STRING_SELECTION
public static final char TYPE_HTML_STRING
public static final char TYPE_TEXT_MODEL
public static final char TYPE_TRANSIT_FROM
public static final char TYPE_TRANSIT_TO
public static final char TYPE_RELATIONSHIP_END
public static final char TYPE_END_RELATIONSHIP
public static final char TYPE_PARENT_MODEL
public static final char TYPE_CODE_SIGNATURE
public static final char TYPE_STRING_ARRAY
public IModelProperty(java.lang.String name, char type, IModelElement owner)
public java.lang.String getName()
public char getType()
public IModelElement getOwner()
public abstract void setValue(java.lang.Object value)
public abstract java.lang.Object getValue()
public boolean getValueAsBoolean()
public int getValueAsInt()
public java.lang.String getValueAsString()
public IModelElement getValueAsModel()
public IModelElement[] getValueAsModelCollection()
public java.lang.String[] getValueAsStringArray()
public void setValue(boolean value)
public void setValue(int value)
public void setValue(long value)
public void setValue(double value)
public void setValue(java.lang.String[] value)
public abstract boolean isAllowModify()
setValue(Object)
or IModelCollectionProperty.addValue(IModelElement)
),
UnsupportedOperationException() will be thrownprotected final void checkAllowModify()