Package org.wso2.carbon.registry.ws.api
Class WSAssociation
java.lang.Object
org.wso2.carbon.registry.ws.api.WSAssociation
This class is used as a data transfer object class in web service calls. It encapsulates data
in org.wso2.carbon.registry.core.Association class. The above mentioned class cannot be directly
used as a argument/return type of a web service.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the WSAssociation class.WSAssociation(String sourcePath, String destinationPath, String associationType) Construct an association by providing the source, target and the association type. -
Method Summary
Modifier and TypeMethodDescriptionMethod to get the association type.Method to get the destination path.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.
-
Constructor Details
-
WSAssociation
public WSAssociation()Default constructor for the WSAssociation class. It just creates an empty association. -
WSAssociation
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 Details
-
getSourcePath
Method to get the source path.- Returns:
- the source path.
-
setSourcePath
Method to set the source path.- Parameters:
sourcePath- the source path.
-
getDestinationPath
Method to get the destination path.- Returns:
- the destination path.
-
setDestinationPath
Method to set the destination path.- Parameters:
destinationPath- the destination path.
-
getAssociationType
Method to get the association type.- Returns:
- the association type.
-
setAssociationType
Method to get the association type.- Parameters:
associationType- the association type.
-