com.sage.orion.sdata.servlet
Class ServiceFieldDecimal

java.lang.Object
  extended by com.sage.orion.sdata.servlet.ResourceField
      extended by com.sage.orion.sdata.servlet.ServiceField
          extended by com.sage.orion.sdata.servlet.ServiceFieldDecimal

public class ServiceFieldDecimal
extends ServiceField

ServiceFieldDecimal contains information of the ServiceField related to only Decimal field types.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sage.orion.sdata.servlet.ServiceField
ServiceField.ServiceFieldPresentationType, ServiceField.ServiceFieldType
 
Constructor Summary
ServiceFieldDecimal(java.lang.String name)
          Constructing ServiceFieldDecimal.
ServiceFieldDecimal(java.lang.String name, java.lang.String description, boolean required)
          Constructing ServiceFieldDecimal.
ServiceFieldDecimal(java.lang.String name, java.lang.String description, boolean required, int maxDigits, int decimalPlaces)
          Constructing ServiceFieldDecimal with all parameters except value.
ServiceFieldDecimal(java.lang.String name, java.lang.String description, boolean required, java.lang.String value)
          Constructing ServiceFieldDecimal..
ServiceFieldDecimal(java.lang.String name, java.lang.String description, boolean required, java.lang.String value, int maxDigits, int decimalPlaces)
          Constructing ServiceFieldDecimal with all parameters.
 
Method Summary
 int getDecimalPlaces()
          Gets the decimal places for the field.
 int getMaxDigits()
          Gets the maximum digits for the field.
 void setDecimalPlaces(int decimalPlaces)
          Sets decimal places for the field.
 void setMaxDigits(int maxDigits)
          Sets maximum digits for the field.
 
Methods inherited from class com.sage.orion.sdata.servlet.ServiceField
getPresentationMask, getPresentationType, getPresentsList, getType, getValue, isRequired, setPresentationMask, setPresentationType, setPresentsList, setRequired, setType, setValue
 
Methods inherited from class com.sage.orion.sdata.servlet.ResourceField
equals, getDescription, getName, hashCode, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceFieldDecimal

public ServiceFieldDecimal(java.lang.String name)
Constructing ServiceFieldDecimal.

The description will be defaulted to the name. And required = true; type = DECIMAL;

Parameters:
name - name

ServiceFieldDecimal

public ServiceFieldDecimal(java.lang.String name,
                           java.lang.String description,
                           boolean required)
Constructing ServiceFieldDecimal.

The value of the field will be defaulted to "" The attribute values for lengths and digits will be defaulted to 0;

Parameters:
name - of the service field.
description - of the service field.
required - is true when a value is required for this service field, false otherwise.

ServiceFieldDecimal

public ServiceFieldDecimal(java.lang.String name,
                           java.lang.String description,
                           boolean required,
                           java.lang.String value)
Constructing ServiceFieldDecimal..

The value of the field will be defaulted to "" The attribute values for lengths and digits will be defaulted to 0;

Parameters:
name - of the service field.
description - of the service field.
required - is true when a value is required for this service field, false otherwise.
value - of the service field.

ServiceFieldDecimal

public ServiceFieldDecimal(java.lang.String name,
                           java.lang.String description,
                           boolean required,
                           java.lang.String value,
                           int maxDigits,
                           int decimalPlaces)
Constructing ServiceFieldDecimal with all parameters.

The value of the field will be defaulted to ""

Parameters:
name - of the service field.
description - of the service field.
required - is true when a value is required for this service field, false otherwise.
value - of the service field.
maxDigits - is the maximum digits allowed in the number.
decimalPlaces - is the number of digits to the right of the decimal symbol.

ServiceFieldDecimal

public ServiceFieldDecimal(java.lang.String name,
                           java.lang.String description,
                           boolean required,
                           int maxDigits,
                           int decimalPlaces)
Constructing ServiceFieldDecimal with all parameters except value.

The value of the field will be defaulted to ""

Parameters:
name - of the service field.
description - of the service field.
required - is true when a value is required for this service field, false otherwise.
maxDigits - is the maximum digits allowed in the number.
decimalPlaces - is the number of digits to the right of the decimal symbol.
Method Detail

getMaxDigits

public int getMaxDigits()
Gets the maximum digits for the field.

Returns:
maximum number of digits for the decimal type service field.

setMaxDigits

public void setMaxDigits(int maxDigits)
Sets maximum digits for the field.

Parameters:
maxDigits - is the maximum number of digits for the decimal type service field.

getDecimalPlaces

public int getDecimalPlaces()
Gets the decimal places for the field.

Returns:
decimalPlaces is the number of digits to the right of the decimal symbol.

setDecimalPlaces

public void setDecimalPlaces(int decimalPlaces)
Sets decimal places for the field.

Parameters:
decimalPlaces - is the number of places to the right of the decimal places.


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