com.fatwire.assetapi.query
Class AssetResultRowImpl

java.lang.Object
  extended by com.fatwire.assetapi.query.AssetResultRowImpl
All Implemented Interfaces:
AssetResultRow

public class AssetResultRowImpl
extends java.lang.Object
implements AssetResultRow

The default implementation class for an AssetResultRow


Constructor Summary
AssetResultRowImpl(AssetId id, java.util.List<java.lang.String> fields)
           
 
Method Summary
 java.util.List<java.lang.String> getAttributeNames()
          Gets the list of attribute names
 AssetId getId()
          gets the Asset Id of the result row
 java.lang.Object getValue(java.lang.String fieldName)
          Gets the value of an attribute given attribute name
 void setValue(java.lang.String fieldName, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetResultRowImpl

public AssetResultRowImpl(AssetId id,
                          java.util.List<java.lang.String> fields)
                   throws AssetAccessException
Throws:
AssetAccessException
Method Detail

getId

public AssetId getId()
Description copied from interface: AssetResultRow
gets the Asset Id of the result row

Specified by:
getId in interface AssetResultRow
Returns:
the asset id

getAttributeNames

public java.util.List<java.lang.String> getAttributeNames()
Description copied from interface: AssetResultRow
Gets the list of attribute names

Specified by:
getAttributeNames in interface AssetResultRow
Returns:
the list of attribute names contained in the result row

getValue

public java.lang.Object getValue(java.lang.String fieldName)
Description copied from interface: AssetResultRow
Gets the value of an attribute given attribute name

Specified by:
getValue in interface AssetResultRow
Parameters:
fieldName - the name of the attribute
Returns:
the value of the given attribute

setValue

public void setValue(java.lang.String fieldName,
                     java.lang.Object value)


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.