com.sage.orion.sdata.servlet
Class BaseServiceOperation.FieldData

java.lang.Object
  extended by com.sage.orion.sdata.servlet.BaseServiceOperation.FieldData
Enclosing class:
BaseServiceOperation

protected static final class BaseServiceOperation.FieldData
extends java.lang.Object

The set of field data complete with methods to retrieve it based upon FieldNames


Constructor Summary
BaseServiceOperation.FieldData(java.util.Map<java.lang.String,SDataResourceElement> dataMap)
          Constructor
 
Method Summary
 boolean contains(BaseServiceOperation.FieldNames... fields)
          Returns true if and only if the data contains information for all the specified fields
 java.lang.String getValue(BaseServiceOperation.FieldNames field)
          Returns the value of the given field, as a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseServiceOperation.FieldData

public BaseServiceOperation.FieldData(java.util.Map<java.lang.String,SDataResourceElement> dataMap)
Constructor

Parameters:
dataMap - Map
Method Detail

contains

public boolean contains(BaseServiceOperation.FieldNames... fields)
Returns true if and only if the data contains information for all the specified fields

Parameters:
fields - the list of fields to check
Returns:
true if and only if the data contains information for all the specified fields

getValue

public java.lang.String getValue(BaseServiceOperation.FieldNames field)
Returns the value of the given field, as a String

Parameters:
field - the field whose value is wanted
Returns:
the value of the given field, as a String
Throws:
java.lang.NullPointerException - if the field is not in the data or if the field is a null reference


Copyright © 2011 Sage Software, Inc. All rights reserved.