|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.ResourceField
com.sage.orion.sdata.servlet.ServiceField
com.sage.orion.sdata.servlet.ServiceFieldDecimal
public class ServiceFieldDecimal
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 |
---|
public ServiceFieldDecimal(java.lang.String name)
The description will be defaulted to the name. And required = true; type = DECIMAL;
name
- namepublic ServiceFieldDecimal(java.lang.String name, java.lang.String description, boolean required)
The value of the field will be defaulted to "" The attribute values for lengths and digits will be defaulted to 0;
name
- of the service field.description
- of the service field.required
- is true when a value is required for this service field, false otherwise.public ServiceFieldDecimal(java.lang.String name, java.lang.String description, boolean required, java.lang.String value)
The value of the field will be defaulted to "" The attribute values for lengths and digits will be defaulted to 0;
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.public ServiceFieldDecimal(java.lang.String name, java.lang.String description, boolean required, java.lang.String value, int maxDigits, int decimalPlaces)
The value of the field will be defaulted to ""
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.public ServiceFieldDecimal(java.lang.String name, java.lang.String description, boolean required, int maxDigits, int decimalPlaces)
The value of the field will be defaulted to ""
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 |
---|
public int getMaxDigits()
public void setMaxDigits(int maxDigits)
maxDigits
- is the maximum number of digits for the decimal type service field.public int getDecimalPlaces()
public void setDecimalPlaces(int decimalPlaces)
decimalPlaces
- is the number of places to the right of the decimal places.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |