|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.fatwire.services.beans.BaseBean
com.fatwire.services.beans.asset.TypeBean
public class TypeBean
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.
true
if the asset type is revision trackedThe type returned by TypeBean.getType()
should match the string returned by the AssetId.getType()
method.
AssetId
, AssetBean
, Serialized FormConstructor 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 |
---|
public TypeBean()
public TypeBean(java.lang.String type)
type
- the type to set.public TypeBean(java.lang.String type, java.lang.String subtype)
type
- the type to set.subtype
- the subtype to set.Method Detail |
---|
public java.lang.String getSubType()
Returns the sub type of an asset.
For Assetmaker assets, this may returnnull
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.null
for assetmaker assets in case of no sub-type classification.public java.lang.String getType()
public void setType(java.lang.String type)
type
- the name of the type to set for an asset.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.subType
- the name of the sub-type to set for an asset.public java.lang.Boolean isTracked()
true
if this asset type is revision tracked.true
if this asset type is revision tracked, false
otherwise.public void setTracked(java.lang.Boolean tracked)
Sets a flag to indicate if the asset type is revision tracked.
Set the flag totrue
if the asset type is tracked. This information can be utilized by versioning related modules.tracked
- the flag to indicate if this asset type is tracked; set to true
if the asset type is revision tracked, false
otherwise.public java.lang.String getAssetTypeDescription()
public void setAssetTypeDescription(java.lang.String assetTypeDescription)
assetTypeDescription
-public boolean isFlex()
public void setFlex(boolean isFlex)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.