|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.client.events.ConceptAttributeChange
public class ConceptAttributeChange
Defines concept attribute change. It contains all information of a concept modifying.
The concept modifying includes the following situation:
Field Summary | |
---|---|
static int |
ASSOCIATION
The constant for concept association change |
static int |
DEFININGCONCEPT
The constant for concept parent 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 concept name change |
static int |
NEW
The constant for change type NEW |
static int |
PRIMITIVE
The constant for concept primitive change |
static int |
PROPERTY
The constant for concept property change |
static int |
ROLE
The constant for concept role change |
static int |
ROLEGROUP
The constant for concept role group change |
static int |
SYNONYM
The constant for concept synonym change |
Constructor Summary | |
---|---|
ConceptAttributeChange(Boolean oldPrimitive,
Boolean newPrimitive)
Constructs a ConceptAttributeChange object for concept primitive change. |
|
ConceptAttributeChange(ConceptAssociation oldAssoc,
ConceptAssociation newAssoc)
Constructs a ConceptAttributeChange object for concept association change. |
|
ConceptAttributeChange(DTSProperty oldProp,
DTSProperty newProp)
Constructs a ConceptAttributeChange object for concept property change. |
|
ConceptAttributeChange(DTSRole oldRole,
DTSRole newRole)
Constructs a ConceptAttributeChange object for concept role change. |
|
ConceptAttributeChange(int oldRoleGroupNum,
int newRoleGroupNum)
Constructs a ConceptAttributeChange object for concept role group change. |
|
ConceptAttributeChange(OntylogConcept oldDefiningConcept,
OntylogConcept newDefiningConcept)
Constructs a ConceptAttributeChange object for concept parent change. |
|
ConceptAttributeChange(String oldName,
String newName)
Constructs a ConceptAttributeChange object for concept name change. |
|
ConceptAttributeChange(Synonym oldSynonym,
Synonym newSynonym)
Constructs a ConceptAttributeChange object for concept synonym change. |
Method Summary | |
---|---|
int |
getAttributeType()
Get Attribute Type. |
int |
getChangeType()
Get Change Type. |
Object |
getNewAttribute()
Get the new Concept Attribute Object. |
Object |
getOldAttribute()
Get the old Concept 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 SYNONYM
public static final int ROLE
public static final int PRIMITIVE
public static final int DEFININGCONCEPT
public static final int ROLEGROUP
public static final int NEW
public static final int MODIFY
public static final int DELETE
public static final int INVALID_TYPE
Constructor Detail |
---|
public ConceptAttributeChange(String oldName, String newName)
NAME
.
oldName
- If adding a new concept name, the oldName should null;
If modifying a concept name, the oldName should be the name before being updated;
If deleting a concept name, the oldName should be the name that is deleted.newName
- If adding a new concept name, the newName should be the name that is added;
If modifying a concept name, the newName should be the name after being updated;
If deleting a concept name, the newName should be null.public ConceptAttributeChange(ConceptAssociation oldAssoc, ConceptAssociation newAssoc)
ASSOCIATION
.
oldAssoc
- If adding a new concept association, the oldAssoc should null;
If modifying a concept association, the oldAssoc should be the association before being updated;
If deleting a concept association, the oldAssoc should be the association that is deleted.newAssoc
- If adding a new concept association, the newAssoc should be the association that is added;
If modifying a concept association, the newAssoc should be the association after being updated;
If deleting a concept association, the newAssoc should be null.public ConceptAttributeChange(Synonym oldSynonym, Synonym newSynonym)
SYNONYM
.
oldSynonym
- If adding a new synonym, the oldSynonym should null;
If modifying a synonym, the oldSynonym should be the synonym before being updated;
If deleting a synonym, the oldSynonym should be the synonym that is deleted.newSynonym
- If adding a new synonym, the newSynonym should be the synonym that is added;
If modifying a synonym, the newSynonym should be the synonym after being updated;
If deleting a synonym, the newSynonym should be null.public ConceptAttributeChange(DTSProperty oldProp, DTSProperty newProp)
PROPERTY
.
oldProp
- If adding a new concept property, the oldProp should null;
If modifying a concept property, the oldProp should be the property before being updated;
If deleting a concept property, the oldProp should be the property that is deleted.newProp
- If adding a new concept property, the newProp should be the property that is added;
If modifying a concept property, the newProp should be the property after being updated;
If deleting a concept property, the newProp should be null.public ConceptAttributeChange(DTSRole oldRole, DTSRole newRole)
ROLE
.
oldRole
- If adding a new concept role, the oldRole should null;
If modifying a concept role, the oldRole should be the role before being updated;
If deleting a concept role, the oldRole should be the role that is deleted.newRole
- If adding a new concept role, the newRole should be the role that is added;
If modifying a concept role, the newRole should be the role after being updated;
If deleting a concept role, the newRole should be null.public ConceptAttributeChange(Boolean oldPrimitive, Boolean newPrimitive)
PRIMITIVE
.
oldPrimitive
- If adding a new primitive, the oldPrimitive should null;
If modifying a primitive, the oldPrimitive should be the primitive before being updated;
If deleting a primitive, the oldPrimitive should be the primitive that is deleted.newPrimitive
- If adding a new primitive, the newPrimitive should be the primitive that is added;
If modifying a primitive, the newPrimitive should be the primitive after being updated;
If deleting a primitive, the newPrimitive should be null.public ConceptAttributeChange(OntylogConcept oldDefiningConcept, OntylogConcept newDefiningConcept)
DEFININGCONCEPT
.
oldDefiningConcept
- If adding a new defining concept, the oldDefiningConcept should null;
If modifying a defining concept, the oldDefiningConcept should be the defining concept before being updated;
If deleting a defining concept, the oldDefiningConcept should be the defining concept that is deleted.newDefiningConcept
- If adding a new defining concept, the newDefiningConcept should be the defining concept that is added;
If modifying a defining concept, the newDefiningConcept should be the defining concept after being updated;
If deleting a defining concept, the newDefiningConcept should be null.public ConceptAttributeChange(int oldRoleGroupNum, int newRoleGroupNum)
ROLEGROUP
.
oldRoleGroupNum
- Role group number before the role group change.newRoleGroupNum
- Role group number after the role group change.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
, SYNONYM
,
ROLE
, or PRIMITIVE
.
NAME
;
If concept association is changed, return ASSOCIATION
;
If concept property is changed, return PROPERTY
;
If concept synonym is changed, return SYNONYM
;
If concept role is changed, return ROLE
;
If concept primitive is changed, return PRIMITIVE
public Object getOldAttribute()
getAttributeType()
the Concept Attribute object can be casted to NAME
, ConceptAssociation
,
Synonym
, DTSProperty
, DTSRole
, or Boolean
.
public Object getNewAttribute()
getAttributeType()
the Concept Attribute object can be casted to NAME
, ConceptAssociation
,
Synonym
, DTSProperty
, DTSRole
, or Boolean
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |