public class DomainObject extends Object
| Constructor and Description |
|---|
DomainObject(DOType doType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListFieldValue(String fieldName,
Object value)
Add a value to a list or array field
|
void |
clearListField(String fieldName)
Removes all of the elements from the list field.
|
DOType |
getDomainObjectType()
Answer the type of this generic domain object
|
Object |
getFieldValue(String fieldName)
Get a field (attribute) value
|
int |
getIndexOfValue(String fieldName,
Object value)
Returns the index of the first occurrence of the specified value
in the list field, or -1 if the list field does not contain the value.
|
int |
getListFieldLength(String fieldName)
Answer the length of a list field
|
Object |
getListFieldValue(String fieldName,
int index)
if the field is a list or array, answer the value at the given index.
|
void |
insertListFieldValue(String fieldName,
int index,
Object value)
Add a value to a list or array field at the given index.
|
void |
removeListFieldValue(String fieldName,
int index)
Remove a value from a list at the given index.
|
void |
setFieldValue(String fieldName,
Object value)
Set a field (attribute) value
|
public DomainObject(DOType doType)
public DOType getDomainObjectType()
public void setFieldValue(String fieldName, Object value)
fieldName - value - public void addListFieldValue(String fieldName, Object value)
fieldName - value - public void insertListFieldValue(String fieldName, int index, Object value)
fieldName - index - value - public Object getFieldValue(String fieldName)
fieldName - public Object getListFieldValue(String fieldName, int index)
fieldName - index - public int getIndexOfValue(String fieldName, Object value)
fieldName - value - public void clearListField(String fieldName)
fieldName - public void removeListFieldValue(String fieldName, int index)
fieldName - index - public int getListFieldLength(String fieldName)
fieldName - Copyright © 2016. All rights reserved.