Skip navigation links


com.fatwire.assetapi.def
Interface AssetAssociationDef

All Known Implementing Classes:
AssetAssociationDefImpl

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.util.List<java.lang.String> getLegalChildAssetTypes()
          Gets the list of legal asset types that this association could hold
 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.
 boolean isMultiple()
          Gets the association value type
 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 desc)
          Sets the description associated with association
 void setLegalChildAssetTypes(java.util.List<java.lang.String> legalChildAsseTypes)
          Sets the list of legal asset types that this association could hold
 void setMultiple(boolean multiple)
          Sets the association type
 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 desc)
Sets the description associated with association
Parameters:
desc - description associated with association

getLegalChildAssetTypes

java.util.List<java.lang.String> getLegalChildAssetTypes()
Gets the list of legal asset types that this association could hold
Returns:
the list of asset type names that are legal to this association

setLegalChildAssetTypes

void setLegalChildAssetTypes(java.util.List<java.lang.String> legalChildAsseTypes)
Sets the list of legal asset types that this association could hold
Parameters:
legalChildAsseTypes - the list of asset type names that are legal to this 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

setMultiple

void setMultiple(boolean multiple)
Sets the association type
Parameters:
multiple - the association value type

isMultiple

boolean isMultiple()
Gets the association value type
Returns:
true if the association is multiple valued; false if not

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.