Package org.wso2.carbon.registry.api
Class Association
- java.lang.Object
-
- org.wso2.carbon.registry.api.Association
-
public class Association extends Object
This is a representation of a uni-directional association on the registry. An association can be created from any resource (or collection) on the registry to another resource (or collection) on the registry or an external resource which can be referred to by a URL. While the source should be a resource existing on the registry, the destination resource can be anything for which a URL can be given.
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAssociationType()Method to get the association type.StringgetDestinationPath()Method to get the destination path.StringgetSourcePath()Method to get the source path.voidsetAssociationType(String associationType)Method to get the association type.voidsetDestinationPath(String destinationPath)Method to set the destination path.voidsetSourcePath(String sourcePath)Method to set the source path.
-
-
-
Field Detail
-
DEPENDS
public static final String DEPENDS
Identifies a dependency to a resources.- See Also:
- Constant Field Values
-
USED_BY
public static final String USED_BY
Identifies a usage of a resource.- 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.
-
-