|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.client.events.TermAttributeChange
public class TermAttributeChange
Defines term attribute change. It contains all information of a term modifying.
The term modifying includes the following situation:
Field Summary | |
---|---|
static int |
ASSOCIATION
The constant for term association change |
static int |
DELETE
The constant for change type DELETE |
static int |
INVALID_TYPE
The constant for INVALID_TYPE |
static int |
MODIFY
The constant for change type MODIFY |
static int |
NAME
The constant for term name change |
static int |
NEW
The constant for change type NEW |
static int |
PROPERTY
The constant for term property change |
Constructor Summary | |
---|---|
TermAttributeChange(DTSProperty oldProp,
DTSProperty newProp)
Constructs a TermAttributeChange object for term property change. |
|
TermAttributeChange(String oldName,
String newName)
Constructs a TermAttributeChange object for term name change. |
|
TermAttributeChange(TermAssociation oldAssoc,
TermAssociation newAssoc)
Constructs a TermAttributeChange object for term association change. |
Method Summary | |
---|---|
int |
getAttributeType()
Get Attribute Type. |
int |
getChangeType()
Get Change Type. |
Object |
getNewAttribute()
Get the new Term Attribute Object. |
Object |
getOldAttribute()
Get the old Term Attribute Object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NAME
public static final int ASSOCIATION
public static final int PROPERTY
public static final int NEW
public static final int MODIFY
public static final int DELETE
public static final int INVALID_TYPE
Constructor Detail |
---|
public TermAttributeChange(String oldName, String newName)
NAME
.
oldName
- If adding a new term name, the oldName should null;
If modifying a term name, the oldName should be the name before being updated;
If deleting a term name, the oldName should be the name that is deleted.newName
- If adding a new term name, the newName should be the name that is added;
If modifying a term name, the newName should be the name after being updated;
If deleting a term name, the newName should be null.public TermAttributeChange(TermAssociation oldAssoc, TermAssociation newAssoc)
ASSOCIATION
.
oldAssoc
- If adding a new term association, the oldAssoc should null;
If modifying a term association, the oldAssoc should be the association before being updated;
If deleting a term association, the oldAssoc should be the association that is deleted.newAssoc
- If adding a new term association, the newAssoc should be the association that is added;
If modifying a term association, the newAssoc should be the association after being updated;
If deleting a term association, the newAssoc should be null.public TermAttributeChange(DTSProperty oldProp, DTSProperty newProp)
PROPERTY
.
oldProp
- If adding a new term property, the oldProp should null;
If modifying a term property, the oldProp should be the property before being updated;
If deleting a term property, the oldProp should be the property that is deleted.newProp
- If adding a new term property, the newProp should be the property that is added;
If modifying a term property, the newProp should be the property after being updated;
If deleting a term property, the newProp should be null.Method Detail |
---|
public int getChangeType()
NEW
,
MODIFY
, or DELETE
.
NEW
;
If the attribute is updated, return MODIFY
;
If the attribute is deleted, return DELETE
.public int getAttributeType()
NAME
,
ASSOCIATION
, PROPERTY
.
NAME
;
If term association is changed, return ASSOCIATION
;
If term property is changed, return PROPERTY
.public Object getOldAttribute()
getAttributeType()
the Term Attribute object can be casted to NAME
, TermAssociation
,
or DTSProperty
.
public Object getNewAttribute()
getAttributeType()
the Term Attribute object can be casted to NAME
, TermAssociation
,
or DTSProperty
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |