|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
| Field Summary | |
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_BINARY
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_BOOLEAN
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_DATE
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_DECIMAL
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_DOUBLE
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_FLOAT
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_INTEGER
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_LONG
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_SHORT
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_STRING
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_TIME
|
static com.sap.dictionary.runtime.BuiltInTypeEnum |
TYPE_TIMESTAMP
|
| Method Summary | |
void |
checkValid(java.lang.Object value)
Validates a value of type Object against the SimpleTypes properties |
ISimpleTypeModifiable |
cloneType()
Clones this SimpleType to a modifiable copy |
ISimpleTypeModifiable |
cloneType(java.util.Locale newLocale)
Clones this SimpleType to a modifiable copy according to given locale |
java.lang.String |
format(java.math.BigDecimal value)
Formats a value of type BigDecimal to produce a string. |
java.lang.String |
format(java.math.BigInteger value)
Formats a value of type BigInteger to produce a string |
java.lang.String |
format(boolean value)
Formats a value of type boolean to produce a string |
java.lang.String |
format(java.lang.Boolean value)
Formats a value of type Boolean to produce a string |
java.lang.String |
format(byte value)
Formats a value of type byte to produce a string |
java.lang.String |
format(java.lang.Byte value)
Formats a value of type Byte to produce a string |
java.lang.String |
format(java.util.Date value)
Formats a value of type java.sql.Date to produce a string Formatting is executed by using the underlying SimpleType's format-template. |
java.lang.String |
format(java.sql.Date value)
Formats a value of type java.sql.Date to produce a string Formatting is executed by using the underlying SimpleType's format-template. |
java.lang.String |
format(double value)
Formats a value of type double to produce a string |
java.lang.String |
format(java.lang.Double value)
Formats a value of type Double to produce a string |
java.lang.String |
format(float value)
Formats a value of type float to produce a string |
java.lang.String |
format(java.lang.Float value)
Formats a value of type Float to produce a string |
java.lang.String |
format(int value)
Formats a value of type int to produce a string |
java.lang.String |
format(java.lang.Integer value)
Formats a value of type Integerg to produce a string |
java.lang.String |
format(long value)
Formats a value of type long to produce a string |
java.lang.String |
format(java.lang.Long value)
Formats a value of type Long to produce a string |
java.lang.String |
format(java.lang.Object value)
Formats a value of Object to produce a string |
java.lang.String |
format(short value)
Formats a value of type short to produce a string |
java.lang.String |
format(java.lang.Short value)
Formats a value of type Short to produce a string |
java.lang.String |
format(java.lang.String value)
Formats a value of type String to produce a string |
java.lang.String |
format(java.sql.Time value)
Formats a value of type java.sql.Time to produce a string Formatting is executed by using the underlying SimpleType's format-template. |
java.lang.String |
formatOfDefaultValue()
Formats the default value of special type to produce a string. |
java.lang.Class |
getAttributeClass()
A SimpleType is instantiated as object of a class dependent of the SimpleType's builtInType. |
java.lang.String |
getBuiltInType()
Gets the builtInType as String |
java.lang.Object |
getBuiltInTypeEnum()
Gets the builtInType as Object |
java.lang.String |
getColumnLabel()
Gets the columnLabel. |
java.lang.Object |
getDefaultValue()
Gets the defaultValue. |
java.lang.String |
getDescription()
Gets the description. |
java.util.Set |
getEnumeration()
Gets the enumeration. |
java.util.Map |
getEnumerationTexts()
Gets the enumerationTexts. enumerationTexts contains a description for each enumeration value. |
java.lang.String |
getFieldLabel()
Gets the fieldLabel. |
java.lang.String |
getFormat()
Gets the format. format is the string the format- and parse- methods are based onto. |
java.lang.String |
getFormatTemplate()
Gets the format template. |
int |
getFractionDigits()
Gets fractionDigits. totalDigits is the maximum number of digits in the fractional part of values of type decimal. |
int |
getLength()
Gets the length. |
java.lang.Object |
getMaxExclusive()
Gets maxExclusive. maxExclusive is the exclusive upper bound of the value space for a datatype which ca be ordered. |
int |
getMaxExternalLength()
Gets the maxExternalLength. maxExternalLength is the maximum length of values of this types on the screen. |
java.lang.Object |
getMaxInclusive()
Gets maxInclusive. maxInclusive is the inclusive upper bound of the value space for a datatype which ca be ordered. |
int |
getMaxLength()
Gets the maximal length. maxLength is the maximal number of units of length, where units of length varies depending on the type. |
java.lang.Object |
getMinExclusive()
Gets minExclusive. minExclusive is the exclusive lower bound of the value space for a datatype which ca be ordered. |
java.lang.Object |
getMinInclusive()
Gets minInclusive. minInclusive is the inclusive lower bound of the value space for a datatype which ca be ordered. |
int |
getMinLength()
Gets the minimal length. minLength is the minumum number of units of length, where units of length varies depending on the type. |
java.lang.String |
getPattern()
Gets pattern. pattern is a constraint on the value space of a datatype which is achieved by constraining the lexical space to literals which match a specific pattern. |
IDataProvider |
getProvider()
Get the SimpleType's provider |
java.lang.String |
getQuickInfo()
Gets the quickInfo. |
boolean |
getReadOnly()
Gets readOnly. |
com.sap.typeservices.ISimpleValueServices |
getSVServices()
Gets the valueservices. |
java.lang.String |
getTextLocale()
Deprecated. return value will be null - always |
com.sap.typeservices.ITextServices |
getTextServices()
Gets the textservices. |
int |
getTotalDigits()
Gets totalDigits. totalDigits is the maximum number of digits in values of type decimal. |
boolean |
getTranslateFlag()
Gets translate-property. |
boolean |
getUppercase()
Gets Uppercase. |
boolean |
hasSVService()
Returns true if a simple value service exists, false otherwise. |
boolean |
isNumeric()
Returns the information if a SimpleType accepts only numeric values in the method checkValid(). |
boolean |
isValid(java.math.BigDecimal value)
Deprecated. Use checkValid() instead |
boolean |
isValid(boolean value)
Deprecated. Use checkValid() instead |
boolean |
isValid(java.lang.Boolean value)
Deprecated. Use checkValid() instead |
boolean |
isValid(java.sql.Date value)
Deprecated. Use checkValid() instead |
boolean |
isValid(double value)
Deprecated. Use checkValid() instead |
boolean |
isValid(java.lang.Double value)
Deprecated. Use checkValid() instead |
boolean |
isValid(int value)
Deprecated. Use checkValid() instead |
boolean |
isValid(java.lang.Integer value)
Deprecated. Use checkValid() instead |
boolean |
isValid(java.lang.Object value)
Deprecated. Use checkValid() instead |
boolean |
isValid(java.lang.String value)
Deprecated. Use checkValid() instead |
boolean |
isValid(java.sql.Time value)
Deprecated. Use checkValid() instead |
java.lang.Object |
parse(java.lang.String value)
Returns an instance of Object with a value matching the given string. |
java.math.BigInteger |
parseBigInteger(java.lang.String text)
Returns an instance of BigInteger with a value matching the given string. |
boolean |
parseBoolean(java.lang.String text)
Returns a value of type boolean with a value matching the given string. |
java.lang.Boolean |
parseBooleanObject(java.lang.String text)
Allocates a Boolean object representing the value true if the string argument is not null and is equal, ignoring case, to the string "true". |
byte |
parseByte(java.lang.String text)
Returns a byte with a value matching the given string. |
java.lang.Byte |
parseByteObject(java.lang.String text)
Returns an instance of Byte with a value matching the given string. |
java.sql.Date |
parseDate(java.lang.String text)
Returns an instance of java.sql.Date with a value matching the given string. |
java.math.BigDecimal |
parseDecimal(java.lang.String text)
Returns an instance of BigDecimal with a value matching the given string. |
double |
parseDouble(java.lang.String text)
Returns a double with a value matching the given string. |
java.lang.Double |
parseDoubleObject(java.lang.String text)
Returns an instance of Double with a value matching the given string. |
float |
parseFloat(java.lang.String text)
Returns a float with a value matching the given string. |
java.lang.Float |
parseFloatObject(java.lang.String text)
Returns an instance of Float with a value matching the given string. |
int |
parseInt(java.lang.String text)
Returns an int with a value matching the given string. |
java.lang.Integer |
parseInteger(java.lang.String text)
Returns an instance of Integer with a value matching the given string. |
long |
parseLong(java.lang.String text)
Returns a long with a value matching the given string. |
java.lang.Long |
parseLongObject(java.lang.String text)
Returns an instance of Long with a value matching the given string. |
short |
parseShort(java.lang.String text)
Returns a short with a value matching the given string. |
java.lang.Short |
parseShortObject(java.lang.String text)
Returns an instance of Short with a value matching the given string. |
java.lang.String |
parseString(java.lang.String text)
Returns an instance of String with a value matching the given string. |
java.sql.Time |
parseTime(java.lang.String text)
Returns an instance of java.sql.Time with a value matching the given string. |
java.sql.Timestamp |
parseTimestamp(java.lang.String text)
Returns an instance of java.sql.Timestamp with a value matching the given string. |
java.util.Date |
parseUtilDate(java.lang.String text)
Returns an instance of java.util.Date with a value matching the given string. |
int |
resolveLength()
Computes the relevant length out of length, minLength and maxLength. |
java.lang.String |
toString(java.lang.Object value)
Formats a value of type Object to produce a string |
java.lang.Object |
valueOf(java.lang.String string)
Returns an instance of Object with a value matching the given string using xml as locale Additionally the value is checked against the SimpleType definition. |
| Methods inherited from interface com.sap.dictionary.runtime.IDataType |
getAssociatedClass, getBackendConversionRule, getBackendName, getLocale, getLocalName, getName, getPrefix, getQualifiedName, isModifyAllowed, isSimpleType, isStructure |
| Field Detail |
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_STRING
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_BINARY
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_DATE
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_TIME
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_TIMESTAMP
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_BOOLEAN
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_DOUBLE
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_INTEGER
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_DECIMAL
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_FLOAT
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_LONG
public static final com.sap.dictionary.runtime.BuiltInTypeEnum TYPE_SHORT
| Method Detail |
public IDataProvider getProvider()
public ISimpleTypeModifiable cloneType()
public ISimpleTypeModifiable cloneType(java.util.Locale newLocale)
newLocale - the locale for the modfiable typepublic java.lang.Class getAttributeClass()
public java.lang.String format(boolean value)
value - - The value to formatpublic java.lang.String format(java.lang.Boolean value)
value - - The value to formatpublic java.lang.String format(java.lang.String value)
value - - The value to formatpublic java.lang.String format(java.lang.Object value)
value - - The value to formatpublic java.lang.String format(java.math.BigDecimal value)
value - - The value to formatgetFormat()public java.lang.String format(java.math.BigInteger value)
value - - The value to formatpublic java.lang.String format(java.lang.Byte value)
value - - The value to formatpublic java.lang.String format(java.lang.Double value)
value - - The value to formatpublic java.lang.String format(java.lang.Float value)
value - - The value to formatpublic java.lang.String format(java.lang.Integer value)
value - - The value to formatpublic java.lang.String format(java.lang.Long value)
value - - The value to formatpublic java.lang.String format(java.lang.Short value)
value - - The value to formatpublic java.lang.String format(byte value)
value - - The value to formatpublic java.lang.String format(double value)
value - - The value to formatpublic java.lang.String format(float value)
value - - The value to formatpublic java.lang.String format(int value)
value - - The value to formatpublic java.lang.String format(long value)
value - - The value to formatpublic java.lang.String format(short value)
value - - The value to formatpublic java.lang.String format(java.util.Date value)
value - - The value to formatgetFormat()public java.lang.String format(java.sql.Date value)
value - - The value to formatgetFormat()public java.lang.String format(java.sql.Time value)
value - - The value to formatgetFormat()public java.lang.String formatOfDefaultValue()
public java.lang.String getFormatTemplate()
public java.lang.Object parse(java.lang.String value)
throws java.text.ParseException
value - - the string to be parsed
public boolean parseBoolean(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public java.lang.String parseString(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public java.lang.Boolean parseBooleanObject(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public java.math.BigDecimal parseDecimal(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsedgetFormat()
public java.math.BigInteger parseBigInteger(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public java.lang.Byte parseByteObject(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public java.lang.Double parseDoubleObject(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public java.lang.Float parseFloatObject(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public java.lang.Integer parseInteger(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public java.lang.Long parseLongObject(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public java.lang.Short parseShortObject(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public byte parseByte(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public double parseDouble(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public float parseFloat(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public int parseInt(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public long parseLong(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public short parseShort(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsed
public java.util.Date parseUtilDate(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsedgetFormat()
public java.sql.Date parseDate(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsedgetFormat()
public java.sql.Time parseTime(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsedgetFormat()
public java.sql.Timestamp parseTimestamp(java.lang.String text)
throws java.text.ParseException
value - - the string to be parsedgetFormat()public java.lang.String toString(java.lang.Object value)
value - - the value to format
public java.lang.Object valueOf(java.lang.String string)
throws java.text.ParseException
value - - the string to be parsedpublic boolean isValid(java.lang.Object value)
value - - The value to validatepublic boolean isValid(boolean value)
value - - The value to validatepublic boolean isValid(int value)
value - - The value to validatepublic boolean isValid(double value)
value - - The value to validatepublic boolean isValid(java.lang.String value)
value - - The value to validatepublic boolean isValid(java.sql.Date value)
value - - The value to validatepublic boolean isValid(java.sql.Time value)
value - - The value to validatepublic boolean isValid(java.math.BigDecimal value)
value - - The value to validatepublic boolean isValid(java.lang.Boolean value)
value - - The value to validatepublic boolean isValid(java.lang.Integer value)
value - - The value to validatepublic boolean isValid(java.lang.Double value)
value - - The value to validate
public void checkValid(java.lang.Object value)
throws com.sap.dictionary.runtime.DdCheckException
value - - The value to validateDdCheckException, - if value is not validpublic int getLength()
public int getMinLength()
public int getMaxLength()
public int resolveLength()
public java.lang.Object getMinInclusive()
public java.lang.Object getMaxInclusive()
public java.lang.Object getMinExclusive()
public java.lang.Object getMaxExclusive()
public int getTotalDigits()
public int getFractionDigits()
public java.lang.String getPattern()
public boolean getReadOnly()
public boolean getUppercase()
public boolean getTranslateFlag()
public int getMaxExternalLength()
public java.lang.Object getDefaultValue()
public java.lang.String getFormat()
public java.lang.String getDescription()
public java.lang.String getFieldLabel()
public java.lang.String getColumnLabel()
public java.lang.String getQuickInfo()
public java.lang.String getTextLocale()
public java.util.Set getEnumeration()
public java.util.Map getEnumerationTexts()
public com.sap.typeservices.ITextServices getTextServices()
DdRuntimeException - - error when trying to instantiate
textservicespublic boolean hasSVService()
public com.sap.typeservices.ISimpleValueServices getSVServices()
DdRuntimeException - - error when trying to instantiate
valueservicespublic java.lang.String getBuiltInType()
public java.lang.Object getBuiltInTypeEnum()
public boolean isNumeric()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||