Skip navigation links


com.fatwire.services.beans.asset
Class AttributeBean

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

All Implemented Interfaces:
java.io.Serializable

public class AttributeBean
extends BaseBean

The AttributeBean is the value object for asset data related services. It represents an attribute associated with 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. An attribute is populated with data in the context of an asset.

The data is stored in a list to accommodate for multi-valued attributes. It is up to the client application to enforce usage of this bean in the context of single or multi-valued attributes.

See Also:
TypeBean, AssetBean, Serialized Form

Constructor Summary
AttributeBean()
           Default constructor.

 

Method Summary
 boolean canOverwriteData()
          Returns the over-write flag for this attribute.
 java.util.List<java.lang.Object> getData()
          Returns the data associated with this attribute.
 java.lang.String getName()
          Returns the name of this attribute.
 void setData(java.util.List<java.lang.Object> data)
          Sets the data associated with this attribute.
 void setName(java.lang.String name)
          Sets the name fo this attribute.
 void setOverwriteData(boolean overwritedata)
          Sets the the over-write flag for this attribute.

 

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

 

Constructor Detail

AttributeBean

public AttributeBean()

Default constructor.

Data can be over-written in an attribute built out of this constructor unless explicitly set to false using the AttributeBean.setOverwriteData(boolean) method.

Method Detail

getName

public java.lang.String getName()
Returns the name of this attribute.
Returns:
the name of this attribute.

setName

public void setName(java.lang.String name)
Sets the name fo this attribute.
Parameters:
name - the name to set for this attribute.

getData

public java.util.List<java.lang.Object> getData()
Returns the data associated with this attribute.
Returns:
the data associated with this attribute.

setData

public void setData(java.util.List<java.lang.Object> data)
Sets the data associated with this attribute.
Parameters:
data - the data to set for this attribute.

canOverwriteData

public boolean canOverwriteData()
Returns the over-write flag for this attribute. The over-write flag should be true if data for this attribute can be over-written.
Returns:
true if data for this attribute can be over-written.

setOverwriteData

public void setOverwriteData(boolean overwritedata)
Sets the the over-write flag for this attribute.
Parameters:
overwritedata - set to true if data for this attribute can be allowed to be over-written.

Skip navigation links


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