Skip navigation links


com.fatwire.services.beans.asset
Class TypeBean

java.lang.Object
  extended by com.fatwire.services.beans.BaseBean
      extended by com.fatwire.services.beans.asset.TypeBean

All Implemented Interfaces:
java.io.Serializable

public class TypeBean
extends BaseBean

The TypeBean is the classification of an asset.

Every asset is an instance of an asset type composed of an ensemble of associated properties called attributes. An asset may also be further classified into a sub-type defined using a subset of those attributes from its enclosing type.

The type returned by TypeBean.getType() should match the string returned by the AssetId.getType() method.

See Also:
AssetId, AssetBean, Serialized Form

Constructor Summary
TypeBean()
          Default constructor does not set a type or sub-type.
TypeBean(java.lang.String type)
          Overloaded Constructor which sets only a type.
TypeBean(java.lang.String type, java.lang.String subtype)
          Overloaded Constructor which sets a type and a sub-type.

 

Method Summary
 java.lang.String getAssetTypeDescription()
          Returns the description of the asset type
 java.lang.String getSubType()
           Returns the sub type of an asset.
 java.lang.String getType()
          Returns the type of an asset.
 boolean isFlex()
           
 java.lang.Boolean isTracked()
          Returns true if this asset type is revision tracked.
 void setAssetTypeDescription(java.lang.String assetTypeDescription)
          Set the description of the asset type.
 void setFlex(boolean isFlex)
           
 void setSubType(java.lang.String subType)
           Sets the sub-type for an asset.
 void setTracked(java.lang.Boolean tracked)
           Sets a flag to indicate if the asset type is revision tracked.
 void setType(java.lang.String type)
          Sets the type for an asset.

 

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

 

Constructor Detail

TypeBean

public TypeBean()
Default constructor does not set a type or sub-type.

TypeBean

public TypeBean(java.lang.String type)
Overloaded Constructor which sets only a type.
Parameters:
type - the type to set.

TypeBean

public TypeBean(java.lang.String type,
                java.lang.String subtype)
Overloaded Constructor which sets a type and a sub-type.
Parameters:
type - the type to set.
subtype - the subtype to set.

Method Detail

getSubType

public java.lang.String getSubType()

Returns the sub type of an asset.

For Assetmaker assets, this may return null if there is no sub-type classification for the asset. For Flex assets, it is guaranteed to return the type definition for the asset instance.
Returns:
the sub type for an asset, may return null for assetmaker assets in case of no sub-type classification.

getType

public java.lang.String getType()
Returns the type of an asset.
Returns:
the type of an asset.

setType

public void setType(java.lang.String type)
Sets the type for an asset.
Parameters:
type - the name of the type to set for an asset.

setSubType

public void setSubType(java.lang.String subType)

Sets the sub-type for an asset.

For Assetmaker assets, sub-type is an optional classification for the asset, so this setter need not be called. For Flex assets, it is necessary to set the type definition for the asset instance as the sub-type.
Parameters:
subType - the name of the sub-type to set for an asset.

isTracked

public java.lang.Boolean isTracked()
Returns true if this asset type is revision tracked.
Returns:
true if this asset type is revision tracked, false otherwise.

setTracked

public void setTracked(java.lang.Boolean tracked)

Sets a flag to indicate if the asset type is revision tracked.

Set the flag to true if the asset type is tracked. This information can be utilized by versioning related modules.
Parameters:
tracked - the flag to indicate if this asset type is tracked; set to true if the asset type is revision tracked, false otherwise.

getAssetTypeDescription

public java.lang.String getAssetTypeDescription()
Returns the description of the asset type
Returns:

setAssetTypeDescription

public void setAssetTypeDescription(java.lang.String assetTypeDescription)
Set the description of the asset type.
Parameters:
assetTypeDescription -

isFlex

public boolean isFlex()

setFlex

public void setFlex(boolean isFlex)

Skip navigation links


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