com.ptc.core.ca.co.client.property.real
Class CoRealPropertyHandler

java.lang.Object
  extended by com.ptc.core.ca.co.client.element.CoElementHandler
      extended by com.ptc.core.ca.co.client.property.CoPropertyHandler
          extended by com.ptc.core.ca.co.client.property.CoAbstractPropertyHandler
              extended by com.ptc.core.ca.co.client.property.CoSimplePropertyHandler
                  extended by com.ptc.core.ca.co.client.property.real.CoRealPropertyHandler
All Implemented Interfaces:
CoModelHandler
Direct Known Subclasses:
WebRealPropertyHandler

Deprecated.

@Deprecated
public class CoRealPropertyHandler
extends CoSimplePropertyHandler

This class defines property handler for the com.ptc.core.meta.common.FloatingPoint attribute value type.

Supported API: true

Extendable: false


Field Summary
 
Fields inherited from class com.ptc.core.ca.co.client.property.CoPropertyHandler
ATTRIBUTE_TAG
 
Method Summary
 String format(Object value, Locale locale)
          Deprecated. Format the specified floating point (or floating point with units) value, based upon the locale, into string form value.
 String format(String non_localized_string, Locale locale)
          Deprecated. Format the specified non-locale string value, based upon the locale, into locale formatted string form value.
 int getPrecision(String value)
          Deprecated. For the specified string, get the precision character.
 String getUnits(Object value)
          Deprecated. Get the units string from the specified FloatingPointWithUnits object.
 String getUnits(String value)
          Deprecated. Get the units string from the specified string.
 FloatingPoint parse(String attr_value, Locale locale)
          Deprecated. For the specified string value, parse it into FloatingPoint value.
 FloatingPointWithUnits parseWithUnits(String attr_value, Locale locale)
          Deprecated. For the specified string value, parse it into FloatingPointWithUnits value.
 
Methods inherited from class com.ptc.core.ca.co.client.property.CoSimplePropertyHandler
newModel, updateInstance
 
Methods inherited from class com.ptc.core.ca.co.client.property.CoAbstractPropertyHandler
updateModel
 
Methods inherited from class com.ptc.core.ca.co.client.property.CoPropertyHandler
updateModel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public FloatingPoint parse(String attr_value,
                           Locale locale)
                    throws WTException
Deprecated. 
For the specified string value, parse it into FloatingPoint value. The locale is taken into consideration while parsing.

Supported API: true

Parameters:
attr_value -
locale -
Returns:
FloatingPoint
Throws:
WTException

parseWithUnits

public FloatingPointWithUnits parseWithUnits(String attr_value,
                                             Locale locale)
                                      throws WTException
Deprecated. 
For the specified string value, parse it into FloatingPointWithUnits value. The locale is taken into consideration while parsing.

Supported API: true

Parameters:
attr_value -
locale -
Returns:
FloatingPointWithUnits
Throws:
WTException

format

public String format(Object value,
                     Locale locale)
              throws WTException
Deprecated. 
Format the specified floating point (or floating point with units) value, based upon the locale, into string form value.

Supported API: true

Parameters:
value -
locale -
Returns:
String
Throws:
WTException

format

public String format(String non_localized_string,
                     Locale locale)
              throws WTException
Deprecated. 
Format the specified non-locale string value, based upon the locale, into locale formatted string form value. For example if the specified string is "1234.56", the formatted value using us_en locale would be "1,234.56".

Supported API: true

Parameters:
non_localized_string -
locale -
Returns:
String
Throws:
WTException

getPrecision

public int getPrecision(String value)
Deprecated. 
For the specified string, get the precision character. For example if the string is specified as "1.23:5", it get the '5' as precision value.

Supported API: true

Parameters:
value -
Returns:
int

getUnits

public String getUnits(String value)
Deprecated. 
Get the units string from the specified string. For example, if the specified string is "1.23 ft:6", it would return 'ft' units string.

Supported API: true

Parameters:
value -
Returns:
String

getUnits

public String getUnits(Object value)
Deprecated. 
Get the units string from the specified FloatingPointWithUnits object. For example, if the specified object's string equivalent value is "1.23 ft:6", it would return 'ft' units string.

Supported API: true

Parameters:
value -
Returns:
String