org.wso2.carbon.registry.core
Class Association

java.lang.Object
  extended by org.wso2.carbon.registry.core.Association

public class Association
extends Object

This class is to store resource associations. Association can be made between 1. Registry Resource Paths. 2. Path with web url In addition to the source and target paths associations has a type. Dependency is a special case of association where the type field is always equal to Association.DEPENDS constant.


Field Summary
static String DEPENDS
           
static String USED_BY
           
 
Constructor Summary
Association()
          Default constructor for the Association Class.
Association(String sourcePath, String destinationPath, String associationType)
          Construct an association by providing the source, target and the association type.
 
Method Summary
 String getAssociationType()
          Method to get the association type.
 String getDestinationPath()
          Method to get the destination path.
 String getSourcePath()
          Method to get the source path.
 void setAssociationType(String associationType)
          Method to get the association type.
 void setDestinationPath(String destinationPath)
          Method to set the destination path.
 void setSourcePath(String sourcePath)
          Method to set the source path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPENDS

public static final String DEPENDS
See Also:
Constant Field Values

USED_BY

public static final String USED_BY
See Also:
Constant Field Values
Constructor Detail

Association

public Association()
Default constructor for the Association Class. Just create an empty association.


Association

public Association(String sourcePath,
                   String destinationPath,
                   String associationType)
Construct an association by providing the source, target and the association type.

Parameters:
sourcePath - the source of the association.
destinationPath - the destination of the association.
associationType - the type of the association.
Method Detail

getSourcePath

public String getSourcePath()
Method to get the source path.

Returns:
the source path.

setSourcePath

public void setSourcePath(String sourcePath)
Method to set the source path.

Parameters:
sourcePath - the source path.

getDestinationPath

public String getDestinationPath()
Method to get the destination path.

Returns:
the destination path.

setDestinationPath

public void setDestinationPath(String destinationPath)
Method to set the destination path.

Parameters:
destinationPath - the destination path.

getAssociationType

public String getAssociationType()
Method to get the association type.

Returns:
the association type.

setAssociationType

public void setAssociationType(String associationType)
Method to get the association type.

Parameters:
associationType - the association type.


Copyright © 2010. All Rights Reserved.