|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.policy.information.KAoSProperty
public class KAoSProperty
Field Summary | |
---|---|
static int |
_ALL_INST_PRESENT
|
static int |
_NO_INST_PRESENT
|
static int |
_PROPERTY_NOT_FOUND
|
static InstanceClassifierFactory |
myInstanceClassifierFactory
|
Constructor Summary | |
---|---|
KAoSProperty(java.lang.String name)
|
|
KAoSProperty(java.lang.String name,
InstanceClassifierFactory sf)
|
Method Summary | |
---|---|
void |
addInstance(java.lang.Object inst)
|
void |
addInstanceDescription(java.lang.String instID,
KAoSInstance desc)
|
void |
addKAoSInstanceDescription(java.lang.String instID,
KAoSInstanceDescription desc)
|
void |
addMultipleInstances(java.util.Collection inst)
|
void |
addSubpropertyNames(java.util.Collection propNames)
|
int |
areDescriptionIDsInMyRange(java.util.Hashtable table)
this method checks if the ids of KAoSInstances passed to it (the keys of the hashtable passed) are in range of the ids of this property's KAoSInstances. |
int |
areInstancesInRange(java.util.Set other)
|
java.util.Enumeration |
getAllInstanceIDs()
|
java.util.Set |
getAllInstances()
|
java.util.Set |
getAllSubpropertyNames()
|
java.lang.String |
getClassName()
|
boolean |
getDataContext()
|
KAoSInstance |
getInstanceDescription(java.lang.String instID)
Use getKAoSInstanceDescription(String instID) instead. |
java.util.Hashtable |
getInstanceDescriptionsTable()
|
KAoSInstanceDescription |
getKAoSInstanceDescription(java.lang.String instID)
Get the addition ontology description for an instance, if one has been added to this property - otherwise null. |
java.lang.String |
getParentClassName()
|
java.lang.String |
getPropertyName()
|
java.lang.String |
getRestrictionType()
|
boolean |
isComplement()
|
boolean |
isInstancePresent(java.lang.Object inst)
|
boolean |
isPropertyAMatch(KAoSProperty otherProp)
This function is only to be used for comparing a property from two different *policies*. |
int |
isPropertyInRange(KAoSProperty otherProp)
|
boolean |
isSchemaSet()
|
boolean |
isSubpropertyPresent(java.lang.String propName)
|
void |
removeAllInstanceDescriptions()
|
void |
removeAllInstances()
|
void |
removeInstance(java.lang.Object inst)
|
void |
removeInstanceDescription(java.lang.String instID)
|
void |
removeMultipleInstances(java.util.Collection inst)
|
KAoSProperty |
returnCopy()
|
void |
setClassName(java.lang.String name)
|
void |
setComplement(boolean b)
|
void |
setDataContext(boolean b)
|
void |
setMultipleInstances(java.util.Collection inst)
|
void |
setParentClassName(java.lang.String name)
|
void |
setRestrictionType(java.lang.String type)
To set and get the restriction type of this property, i.e. |
void |
setSchema(java.util.Vector objectDef)
|
java.lang.String |
toString()
|
void |
updateInstances(java.util.Collection inst)
remove all the old instances and add the new ones |
void |
updateSubpropertyNames(java.lang.String mainProp,
java.util.Collection propNames)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int _PROPERTY_NOT_FOUND
public static final int _ALL_INST_PRESENT
public static final int _NO_INST_PRESENT
public static InstanceClassifierFactory myInstanceClassifierFactory
Constructor Detail |
---|
public KAoSProperty(java.lang.String name)
public KAoSProperty(java.lang.String name, InstanceClassifierFactory sf)
Method Detail |
---|
public java.lang.String getPropertyName()
public void setClassName(java.lang.String name)
public java.lang.String getClassName()
public void setParentClassName(java.lang.String name)
public java.lang.String getParentClassName()
public void setComplement(boolean b)
public boolean isComplement()
public void setDataContext(boolean b)
public boolean getDataContext()
public boolean isInstancePresent(java.lang.Object inst)
public void addInstance(java.lang.Object inst)
public void addMultipleInstances(java.util.Collection inst)
public void updateInstances(java.util.Collection inst)
public void addInstanceDescription(java.lang.String instID, KAoSInstance desc)
public void addKAoSInstanceDescription(java.lang.String instID, KAoSInstanceDescription desc)
public void setMultipleInstances(java.util.Collection inst)
public java.util.Set getAllInstances()
public void addSubpropertyNames(java.util.Collection propNames)
public void updateSubpropertyNames(java.lang.String mainProp, java.util.Collection propNames)
public java.util.Set getAllSubpropertyNames()
public boolean isSubpropertyPresent(java.lang.String propName)
public KAoSInstance getInstanceDescription(java.lang.String instID)
instID
-
public KAoSInstanceDescription getKAoSInstanceDescription(java.lang.String instID)
instID
-
public java.util.Enumeration getAllInstanceIDs()
public void removeInstance(java.lang.Object inst)
public void removeInstanceDescription(java.lang.String instID)
public void removeMultipleInstances(java.util.Collection inst)
public void removeAllInstances()
public void removeAllInstanceDescriptions()
public void setRestrictionType(java.lang.String type)
public java.lang.String getRestrictionType()
public int isPropertyInRange(KAoSProperty otherProp)
public int areInstancesInRange(java.util.Set other)
public int areDescriptionIDsInMyRange(java.util.Hashtable table)
table
- a Hashtable containing ids and KAoSInstances
public java.util.Hashtable getInstanceDescriptionsTable()
public boolean isPropertyAMatch(KAoSProperty otherProp)
public KAoSProperty returnCopy()
public void setSchema(java.util.Vector objectDef)
public boolean isSchemaSet()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |