kaos.ontology.roleValueMap
Class KAoSRoleValueMapContainer

java.lang.Object
  extended by kaos.ontology.roleValueMap.KAoSRoleValueMapContainer
All Implemented Interfaces:
java.io.Serializable

public class KAoSRoleValueMapContainer
extends java.lang.Object
implements java.io.Serializable

KAoS container for the Role-Value-Map statements $Revision: 1.10 $

See Also:
Serialized Form

Constructor Summary
KAoSRoleValueMapContainer()
          Empty constructor
KAoSRoleValueMapContainer(java.util.Vector maps)
           
 
Method Summary
 void addMap(KAoSRoleValueMap _map)
          Adds map to the container, if object with this id already exists, its old version will be first removed
 KAoSRoleValueMap findMap(java.lang.String mapID)
           
 java.util.Vector findMapsForProperty(java.lang.String propertyName)
          Find all the maps whose either path starts with the specified property
 java.util.Vector findMapsForProperty(java.lang.String propertyName, boolean firstPathOnly)
           
 java.util.Vector findMapsForSubPath(java.util.Vector subPath)
          Find all the maps whose either path starts with the specified subpath
 java.util.Vector findMapsForSubPath(java.util.Vector subPath, boolean firstPathOnly)
           
 java.util.Vector getAllMaps()
           
 void removeMap(java.lang.String mapID)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KAoSRoleValueMapContainer

public KAoSRoleValueMapContainer()
Empty constructor


KAoSRoleValueMapContainer

public KAoSRoleValueMapContainer(java.util.Vector maps)
Method Detail

addMap

public void addMap(KAoSRoleValueMap _map)
Adds map to the container, if object with this id already exists, its old version will be first removed

Parameters:
_map - KAoSRoleValueMap object to be added to the container

removeMap

public void removeMap(java.lang.String mapID)
Parameters:
mapID - Id of the map to be removed from the container

findMapsForProperty

public java.util.Vector findMapsForProperty(java.lang.String propertyName)
Find all the maps whose either path starts with the specified property

Parameters:
propertyName - name of the property starting a path

findMapsForProperty

public java.util.Vector findMapsForProperty(java.lang.String propertyName,
                                            boolean firstPathOnly)

findMapsForSubPath

public java.util.Vector findMapsForSubPath(java.util.Vector subPath)
Find all the maps whose either path starts with the specified subpath

Parameters:
subPath - vector representing the subpath

findMapsForSubPath

public java.util.Vector findMapsForSubPath(java.util.Vector subPath,
                                           boolean firstPathOnly)

findMap

public KAoSRoleValueMap findMap(java.lang.String mapID)
Parameters:
mapID - Id of the map to be found in the container

getAllMaps

public java.util.Vector getAllMaps()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object