com.fatwire.assetapi.def
Interface AssetAssociationDef


public interface AssetAssociationDef

This interface defines an asset association definition.

An asset association definition contains the type of assets permitted and dependency type.


Field Summary
static java.lang.String UnnamedAssociationName
          The key associated with unnamed association.
 
Method Summary
 java.lang.String getChildAssetType()
          Returns the child asset type associated with this relationship definition.
 DependencyTypeEnum getDependencyType()
          Returns dependency type associated with this relationship.
 java.lang.String getDescription()
          Returns description associated with the association, if any.
 java.lang.String getName()
          Gets the name of the association
 java.util.List<java.lang.String> getSubTypes()
          Returns list of subtypes selected for this association.
 void setChildAssetType(java.lang.String childAssetTye)
          Sets the name of child asset type
 void setDependencyType(DependencyTypeEnum type)
          Sets dependency type
 void setDescription(java.lang.String descr)
          Sets the description associated with association
 void setName(java.lang.String name)
          Sets the name of the association
 void setSubTypes(java.util.List<java.lang.String> subtypes)
          Sets subtype names
 

Field Detail

UnnamedAssociationName

static final java.lang.String UnnamedAssociationName
The key associated with unnamed association.

See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Gets the name of the association

Returns:
Name of the association

setName

void setName(java.lang.String name)
Sets the name of the association

Parameters:
name - name of the association

getDescription

java.lang.String getDescription()
Returns description associated with the association, if any.

Returns:
Description associated with the association.

setDescription

void setDescription(java.lang.String descr)
Sets the description associated with association

Parameters:
descr - description associated with association

getChildAssetType

java.lang.String getChildAssetType()
Returns the child asset type associated with this relationship definition.

Returns:
name of the child asset type.

setChildAssetType

void setChildAssetType(java.lang.String childAssetTye)
Sets the name of child asset type

Parameters:
childAssetTye - child asset type name

getSubTypes

java.util.List<java.lang.String> getSubTypes()
Returns list of subtypes selected for this association.

Returns:
List of subtype names

setSubTypes

void setSubTypes(java.util.List<java.lang.String> subtypes)
Sets subtype names

Parameters:
subtypes - subtype names

getDependencyType

DependencyTypeEnum getDependencyType()
Returns dependency type associated with this relationship.

Returns:
DependencyTypeEnum type of dependency

setDependencyType

void setDependencyType(DependencyTypeEnum type)
Sets dependency type

Parameters:
type - dependency type