Skip navigation links


com.fatwire.assetapi.def
Class AssetTypeDefImpl

java.lang.Object
  extended by com.fatwire.assetapi.def.AssetTypeDefImpl

All Implemented Interfaces:
AssetTypeDef

public final class AssetTypeDefImpl
extends java.lang.Object
implements AssetTypeDef

The default implementation for AssetTypeDef


Constructor Summary
AssetTypeDefImpl()
           

 

Method Summary
 java.util.List<AssetAssociationDef> getAssociations()
          Gets association definitions for this asset type
 AttributeDef getAttributeDef(java.lang.String name, boolean isMetaAttribute)
          Return the attribute definition for that given name and specified user defined or not type
 java.util.List<AttributeDef> getAttributeDefs()
          Returns all attribute definitions that make up this asset type definition
 boolean getCanBeChild()
          Indicates if instances of this asset type can be a child of instances of other asset types.
 java.lang.String getDescription()
          Gets the description associated with the asset type.
 java.lang.String getName()
          Gets the name of the Asset type
 java.util.List<AttributeDef> getParentDefs()
          Lists parent definitions for thsi asset type
 java.lang.String getPlural()
          Gets the plural name associated with the asset type.
 AssetTypeDefProperties getProperties()
          Returns properties associated with asset type
 java.lang.String getSubtype()
          Returns the name of subtype, if present.
 void setAssociations(java.util.List<AssetAssociationDef> associations)
          Sets the association definitions of this asset type
 void setAttributeDefs(java.util.List<AttributeDef> def)
          Sets the list of attribute definitions that the asset type contains
 void setCaBeChild(boolean val)
          Sets whether the asset type could be child asset type of other asset types or not
 void setDescription(java.lang.String descr)
          Sets the description of the asset type definition
 void setName(java.lang.String name)
          Sets the asset type
 void setParentDefs(java.util.List<AttributeDef> def)
          Sets the list of parent definitions
 void setPlural(java.lang.String pluralname)
          Sets the plural name of the asset type
 void setProperties(AssetTypeDefProperties props)
          Sets the properties for the asset type
 void setSubtype(java.lang.String subtype)
          Sets the asset subtype
 java.lang.String toString()
           

 

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

 

Constructor Detail

AssetTypeDefImpl

public AssetTypeDefImpl()

Method Detail

getName

public java.lang.String getName()
Description copied from interface: AssetTypeDef
Gets the name of the Asset type
Specified by:
getName in interface AssetTypeDef
Returns:
name of the asset type this definition belongs

getDescription

public java.lang.String getDescription()
Description copied from interface: AssetTypeDef
Gets the description associated with the asset type.
Specified by:
getDescription in interface AssetTypeDef
Returns:
description associated with the asset type.

getSubtype

public java.lang.String getSubtype()
Description copied from interface: AssetTypeDef
Returns the name of subtype, if present. Subtype in this sense is the flex definition of the flex asset or flex parent asset type.
Specified by:
getSubtype in interface AssetTypeDef
Returns:
Subtype, if applicable

getPlural

public java.lang.String getPlural()
Description copied from interface: AssetTypeDef
Gets the plural name associated with the asset type.
Specified by:
getPlural in interface AssetTypeDef
Returns:
plural name associated with the asset type.

getCanBeChild

public boolean getCanBeChild()
Description copied from interface: AssetTypeDef
Indicates if instances of this asset type can be a child of instances of other asset types.
Specified by:
getCanBeChild in interface AssetTypeDef
Returns:
true if instances can be child, false otherwise.

getAttributeDefs

public java.util.List<AttributeDef> getAttributeDefs()
Description copied from interface: AssetTypeDef
Returns all attribute definitions that make up this asset type definition
Specified by:
getAttributeDefs in interface AssetTypeDef
Returns:
List of AttributeDefs

getAttributeDef

public AttributeDef getAttributeDef(java.lang.String name,
                                    boolean isMetaAttribute)
Description copied from interface: AssetTypeDef
Return the attribute definition for that given name and specified user defined or not type
Specified by:
getAttributeDef in interface AssetTypeDef
Parameters:
name - the name of the attribute
isMetaAttribute - whether the attribute is user defined or system, true indicates it is user defined, false indicates it is system attribute
Returns:
the attribute definition; null if no attribute defintion found.

getProperties

public AssetTypeDefProperties getProperties()
Description copied from interface: AssetTypeDef
Returns properties associated with asset type
Specified by:
getProperties in interface AssetTypeDef
Returns:
Map Properties with AssetTypeDefProperties.Keys as kays and pre defined values.

getAssociations

public java.util.List<AssetAssociationDef> getAssociations()
Description copied from interface: AssetTypeDef
Gets association definitions for this asset type
Specified by:
getAssociations in interface AssetTypeDef
Returns:
List of Asset association name and asset type name

getParentDefs

public java.util.List<AttributeDef> getParentDefs()
Description copied from interface: AssetTypeDef
Lists parent definitions for thsi asset type
Specified by:
getParentDefs in interface AssetTypeDef
Returns:
List of AssetTypeDef of parent asset type definitions.

setName

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

setDescription

public void setDescription(java.lang.String descr)
Description copied from interface: AssetTypeDef
Sets the description of the asset type definition
Specified by:
setDescription in interface AssetTypeDef
Parameters:
descr - the description

setSubtype

public void setSubtype(java.lang.String subtype)
Description copied from interface: AssetTypeDef
Sets the asset subtype
Specified by:
setSubtype in interface AssetTypeDef
Parameters:
subtype - the subtype

setPlural

public void setPlural(java.lang.String pluralname)
Description copied from interface: AssetTypeDef
Sets the plural name of the asset type
Specified by:
setPlural in interface AssetTypeDef
Parameters:
pluralname - the plural

setCaBeChild

public void setCaBeChild(boolean val)
Description copied from interface: AssetTypeDef
Sets whether the asset type could be child asset type of other asset types or not
Specified by:
setCaBeChild in interface AssetTypeDef
Parameters:
val - true if the asset type could be child; false if not

setAttributeDefs

public void setAttributeDefs(java.util.List<AttributeDef> def)
Description copied from interface: AssetTypeDef
Sets the list of attribute definitions that the asset type contains
Specified by:
setAttributeDefs in interface AssetTypeDef
Parameters:
def - the list of attribute definitions

setProperties

public void setProperties(AssetTypeDefProperties props)
Description copied from interface: AssetTypeDef
Sets the properties for the asset type
Specified by:
setProperties in interface AssetTypeDef
Parameters:
props - the AssetTypeDefProperties

setParentDefs

public void setParentDefs(java.util.List<AttributeDef> def)
Description copied from interface: AssetTypeDef
Sets the list of parent definitions
Specified by:
setParentDefs in interface AssetTypeDef
Parameters:
def - the list of parent defintions

setAssociations

public void setAssociations(java.util.List<AssetAssociationDef> associations)
Description copied from interface: AssetTypeDef
Sets the association definitions of this asset type
Specified by:
setAssociations in interface AssetTypeDef
Parameters:
associations - the list of AssetAssocationDefs

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.