Skip navigation links


com.openmarket.xcelerate.asset
Class AssetAssociationDefImpl

java.lang.Object
  extended by com.openmarket.xcelerate.asset.AssetAssociationDefImpl

All Implemented Interfaces:
AssetAssociationDef

public final class AssetAssociationDefImpl
extends java.lang.Object
implements AssetAssociationDef

Simple implementation of AssetAssociationDef


Field Summary

 

Fields inherited from interface com.fatwire.assetapi.def.AssetAssociationDef
UnnamedAssociationName

 

Constructor Summary
AssetAssociationDefImpl(java.lang.String name, java.lang.String descr, java.util.List<java.lang.String> legalChildAssetType, DependencyTypeEnum depType)
           
AssetAssociationDefImpl(java.lang.String name, java.lang.String descr, java.lang.String childAssetType, DependencyTypeEnum depType)
           

 

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 childAssetType)
          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
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

AssetAssociationDefImpl

public AssetAssociationDefImpl(java.lang.String name,
                               java.lang.String descr,
                               java.lang.String childAssetType,
                               DependencyTypeEnum depType)

AssetAssociationDefImpl

public AssetAssociationDefImpl(java.lang.String name,
                               java.lang.String descr,
                               java.util.List<java.lang.String> legalChildAssetType,
                               DependencyTypeEnum depType)

Method Detail

getName

public java.lang.String getName()
Description copied from interface: AssetAssociationDef
Gets the name of the association
Specified by:
getName in interface AssetAssociationDef
Returns:
Name of the association

setName

public void setName(java.lang.String name)
Description copied from interface: AssetAssociationDef
Sets the name of the association
Specified by:
setName in interface AssetAssociationDef
Parameters:
name - name of the association

getDescription

public java.lang.String getDescription()
Description copied from interface: AssetAssociationDef
Returns description associated with the association, if any.
Specified by:
getDescription in interface AssetAssociationDef
Returns:
Description associated with the association.

setDescription

public void setDescription(java.lang.String desc)
Description copied from interface: AssetAssociationDef
Sets the description associated with association
Specified by:
setDescription in interface AssetAssociationDef
Parameters:
desc - description associated with association

getLegalChildAssetTypes

public java.util.List<java.lang.String> getLegalChildAssetTypes()
Description copied from interface: AssetAssociationDef
Gets the list of legal asset types that this association could hold
Specified by:
getLegalChildAssetTypes in interface AssetAssociationDef
Returns:
the list of asset type names that are legal to this association

setLegalChildAssetTypes

public void setLegalChildAssetTypes(java.util.List<java.lang.String> legalChildAsseTypes)
Description copied from interface: AssetAssociationDef
Sets the list of legal asset types that this association could hold
Specified by:
setLegalChildAssetTypes in interface AssetAssociationDef
Parameters:
legalChildAsseTypes - the list of asset type names that are legal to this association

getChildAssetType

public java.lang.String getChildAssetType()
Description copied from interface: AssetAssociationDef
Returns the child asset type associated with this relationship definition.
Specified by:
getChildAssetType in interface AssetAssociationDef
Returns:
name of the child asset type.

setChildAssetType

public void setChildAssetType(java.lang.String childAssetType)
Description copied from interface: AssetAssociationDef
Sets the name of child asset type
Specified by:
setChildAssetType in interface AssetAssociationDef
Parameters:
childAssetType - child asset type name

getSubTypes

public java.util.List<java.lang.String> getSubTypes()
Description copied from interface: AssetAssociationDef
Returns list of subtypes selected for this association.
Specified by:
getSubTypes in interface AssetAssociationDef
Returns:
List of subtype names

setSubTypes

public void setSubTypes(java.util.List<java.lang.String> subtypes)
Description copied from interface: AssetAssociationDef
Sets subtype names
Specified by:
setSubTypes in interface AssetAssociationDef
Parameters:
subtypes - subtype names

getDependencyType

public DependencyTypeEnum getDependencyType()
Description copied from interface: AssetAssociationDef
Returns dependency type associated with this relationship.
Specified by:
getDependencyType in interface AssetAssociationDef
Returns:
DependencyTypeEnum type of dependency

setDependencyType

public void setDependencyType(DependencyTypeEnum type)
Description copied from interface: AssetAssociationDef
Sets dependency type
Specified by:
setDependencyType in interface AssetAssociationDef
Parameters:
type - dependency type

setMultiple

public void setMultiple(boolean multiple)
Description copied from interface: AssetAssociationDef
Sets the association type
Specified by:
setMultiple in interface AssetAssociationDef
Parameters:
multiple - the association value type

isMultiple

public boolean isMultiple()
Description copied from interface: AssetAssociationDef
Gets the association value type
Specified by:
isMultiple in interface AssetAssociationDef
Returns:
true if the association is multiple valued; false if not

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links


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