|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
public class Type
Type is the base of all 'type model' classes that are part of the domain model. All model classes must either extend this class, or another that itself extends this class.
| Field Summary | |
|---|---|
org.apache.commons.jxpath.JXPathContext |
jXPathContext
|
static long |
NOT_PERSISTED
|
| Constructor Summary | |
|---|---|
Type()
|
|
| Method Summary | ||
|---|---|---|
void |
addAttribute(Attribute attribute)
Add an instance of Attribute to the list associated with this object. |
|
java.lang.Object |
clone()
Clone this object. |
|
void |
deleteLock()
|
|
void |
deleteSerialVersion()
|
|
org.apache.commons.jxpath.JXPathContext |
fetchJXPathContext()
|
|
java.util.List<Attribute> |
getAttribute()
Get the collection of instances of Attribute associated with this object. |
|
Attribute |
getAttribute(int i)
Fetch a spacific Attribute from the collection by index number. |
|
int |
getAttributeCount()
Get a count of the number of Attribute instances associated with this object |
|
java.lang.String |
getForeignSystemId()
The foreign system id is provided in order to make mapping to/from external system somewhat easier. |
|
boolean |
getLock()
|
|
long |
getSerialVersion()
|
|
long |
getSystemId()
|
|
boolean |
hasLock()
|
|
boolean |
hasSerialVersion()
|
|
boolean |
hasSystemId()
|
|
boolean |
isPersisted()
Return true if this object has been persisted. |
|
void |
markAsNotPersisted()
Disassociate this object with it's persisted counterpart. |
|
void |
mergeWithDataFrom(Type donor,
Core core)
Merge data from a specified type into this. |
|
void |
removeAttribute(Attribute attribute)
Remove the specified instance of Attribute from the list. |
|
void |
removeAttribute(int i)
Remove the element specified from the list. |
|
void |
setAttribute(java.util.List<Attribute> attribute)
Set the collection of instances of Attribute associated with this object. |
|
void |
setForeignSystemId(java.lang.String foreignSystemId)
|
|
void |
setLock(boolean lock)
|
|
void |
setSerialVersion(long serialVersion)
|
|
void |
setSystemId(long systemId)
|
|
java.lang.Object |
xpathGet(java.lang.String xpath)
Execute the given xpath expression on this and return the single result. |
|
|
xpathGet(java.lang.String xpath,
java.lang.Class<T> clazz)
Evaluate the given xpath expression on this and return the result as an instance of the class clazz. |
|
java.util.Iterator |
xpathIterate(java.lang.String xpath)
Execute the given xpath expression on this. |
|
void |
xpathSet(java.lang.String xpath,
java.lang.Object obj)
Set the value of a property within this identified by an xpath expression to a the value obj. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long NOT_PERSISTED
public transient org.apache.commons.jxpath.JXPathContext jXPathContext
| Constructor Detail |
|---|
public Type()
| Method Detail |
|---|
public void deleteLock()
public boolean hasLock()
public boolean getLock()
public void setLock(boolean lock)
public void deleteSerialVersion()
public boolean hasSerialVersion()
public long getSerialVersion()
public void setSerialVersion(long serialVersion)
public boolean hasSystemId()
public long getSystemId()
public void setSystemId(long systemId)
public boolean isPersisted()
public void markAsNotPersisted()
public org.apache.commons.jxpath.JXPathContext fetchJXPathContext()
public java.lang.Object xpathGet(java.lang.String xpath)
xpath - Expression to evaluate
TypeXPathException - If evaluation of the expression fails.public java.util.Iterator xpathIterate(java.lang.String xpath)
xpath - Expression to evaluate
TypeXPathException - If evaluation of the expression fails.
public <T> T xpathGet(java.lang.String xpath,
java.lang.Class<T> clazz)
xpath - Expression to evaluateclazz - Class to return an instance of
public void xpathSet(java.lang.String xpath,
java.lang.Object obj)
xpath - Expression identifying the property to set.obj - value to set the property to.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - If the type cannot be deep cloned.
public void mergeWithDataFrom(Type donor,
Core core)
donor - Take values from here into thispublic java.util.List<Attribute> getAttribute()
setAttribute(java.util.List) public void setAttribute(java.util.List<Attribute> attribute)
attribute - A collection of instances of ExcessgetAttribute()public int getAttributeCount()
public void removeAttribute(int i)
i - Index of element to removepublic void removeAttribute(Attribute attribute)
attribute - Instance to be removedpublic void addAttribute(Attribute attribute)
attribute - Instance to add to listpublic Attribute getAttribute(int i)
i - Index of element to returnpublic java.lang.String getForeignSystemId()
public void setForeignSystemId(java.lang.String foreignSystemId)
foreignSystemId - getForeignSystemId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||