kaos.ontology.roleValueMap
Class KAoSRoleValueMap
java.lang.Object
kaos.ontology.roleValueMap.KAoSRoleValueMap
- All Implemented Interfaces:
- java.io.Serializable
public class KAoSRoleValueMap
- extends java.lang.Object
- implements java.io.Serializable
KAoS representation of the Role-Value-Map semantics
$Revision: 1.10 $
- See Also:
- Serialized Form
Constructor Summary |
KAoSRoleValueMap()
Empty constructor |
KAoSRoleValueMap(java.util.Vector firstPath,
java.util.Vector secondPath,
java.lang.String mapType)
Creates a new role-value-map constraint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EQUALITY_MAP
public static java.lang.String EQUALITY_MAP
CONTAINMENT_FROM_LEFT_TO_RIGHT_MAP
public static java.lang.String CONTAINMENT_FROM_LEFT_TO_RIGHT_MAP
CONTAINMENT_FROM_RIGHT_TO_LEFT_MAP
public static java.lang.String CONTAINMENT_FROM_RIGHT_TO_LEFT_MAP
UNEMPTY_INTERSECTION_MAP
public static java.lang.String UNEMPTY_INTERSECTION_MAP
DISJOINTMENT_MAP
public static java.lang.String DISJOINTMENT_MAP
ROLE_VALUE_MAP_TYPES
public static java.lang.String[] ROLE_VALUE_MAP_TYPES
KAoSRoleValueMap
public KAoSRoleValueMap()
- Empty constructor
KAoSRoleValueMap
public KAoSRoleValueMap(java.util.Vector firstPath,
java.util.Vector secondPath,
java.lang.String mapType)
throws IncorrectMapType
- Creates a new role-value-map constraint
- Parameters:
_firstPath
- Vector of property names constituting the first path to the value(s)_secondPath
- Vector of property names constituting the second path to the value(s)_mapType
- Determines the type of the map either EQUALITY_MAP or CONTAINMENT_MAP
- Throws:
IncorrectMapType
setFirstPath
public void setFirstPath(java.util.Vector firstPath)
- Parameters:
_firstPath
- Vector of property names constituting the first path to the value(s)
setSecondPath
public void setSecondPath(java.util.Vector secondPath)
- Parameters:
__secondPath
- Vector of property names constituting the second path to the value(s)
setMapType
public void setMapType(java.lang.String mapType)
throws IncorrectMapType
- Parameters:
_mapType
- Determines the type of the map either EQUALITY_MAP or CONTAINMENT_MAP
- Throws:
IncorrectMapType
getMapID
public java.lang.String getMapID()
- Returns:
- Map id
getFirstPath
public java.util.Vector getFirstPath()
- Returns:
- Vector of property names constituting the first path to the value(s)
getSecondPath
public java.util.Vector getSecondPath()
- Returns:
- Vector of property names constituting the second path to the value(s)
getMapType
public java.lang.String getMapType()
- Returns:
- Type of the map
toString
public java.lang.String toString()
- Prints the map
- Overrides:
toString
in class java.lang.Object
setMapID
public void setMapID(java.lang.String mapID)