org.apache.myfaces.trinidadinternal.convert
Class ShortConverter

java.lang.Object
  extended by javax.faces.convert.ShortConverter
      extended by org.apache.myfaces.trinidadinternal.convert.ShortConverter
All Implemented Interfaces:
javax.faces.convert.Converter, org.apache.myfaces.trinidad.convert.ClientConverter

public class ShortConverter
extends javax.faces.convert.ShortConverter
implements org.apache.myfaces.trinidad.convert.ClientConverter

Implementation for java.lang.Short values.

Author:
The Oracle ADF Faces Team

Field Summary
static java.lang.String CONVERT_MESSAGE_ID
          The message identifier of the FacesMessage to be created if the value cannot be converted to an integer
static java.lang.String MAXIMUM_MESSAGE_ID
          The message identifier of the FacesMessage to be created if the value is greater than Short.MAX_VALUE.
static java.lang.String MINIMUM_MESSAGE_ID
          The message identifier of the FacesMessage to be created if the value is less than Short.MIN_VALUE.
 
Fields inherited from class javax.faces.convert.ShortConverter
CONVERTER_ID
 
Fields inherited from interface org.apache.myfaces.trinidad.convert.ClientConverter
ALERT_FORMAT_KEY
 
Constructor Summary
ShortConverter()
           
 
Method Summary
 java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)
           
 java.lang.String getClientConversion(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 java.util.Collection<java.lang.String> getClientImportNames()
           
 java.lang.String getClientLibrarySource(javax.faces.context.FacesContext context)
           
 java.lang.String getClientScript(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 
Methods inherited from class javax.faces.convert.ShortConverter
getAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXIMUM_MESSAGE_ID

public static final java.lang.String MAXIMUM_MESSAGE_ID

The message identifier of the FacesMessage to be created if the value is greater than Short.MAX_VALUE. The message format string for this message may optionally include a {2} placeholder, which will be replaced by Short.MAX_VALUE.

See Also:
Constant Field Values

MINIMUM_MESSAGE_ID

public static final java.lang.String MINIMUM_MESSAGE_ID

The message identifier of the FacesMessage to be created if the value is less than Short.MIN_VALUE. The message format string for this message may optionally include a {2} placeholder, which will be replaced by Short.MIN_VALUE.

See Also:
Constant Field Values

CONVERT_MESSAGE_ID

public static final java.lang.String CONVERT_MESSAGE_ID

The message identifier of the FacesMessage to be created if the value cannot be converted to an integer

See Also:
Constant Field Values
Constructor Detail

ShortConverter

public ShortConverter()
Method Detail

getAsObject

public java.lang.Object getAsObject(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.String value)
Specified by:
getAsObject in interface javax.faces.convert.Converter
Overrides:
getAsObject in class javax.faces.convert.ShortConverter

getClientScript

public java.lang.String getClientScript(javax.faces.context.FacesContext context,
                                        javax.faces.component.UIComponent component)
Specified by:
getClientScript in interface org.apache.myfaces.trinidad.convert.ClientConverter

getClientConversion

public java.lang.String getClientConversion(javax.faces.context.FacesContext context,
                                            javax.faces.component.UIComponent component)
Specified by:
getClientConversion in interface org.apache.myfaces.trinidad.convert.ClientConverter
Parameters:
context -
Returns:

getClientLibrarySource

public java.lang.String getClientLibrarySource(javax.faces.context.FacesContext context)
Specified by:
getClientLibrarySource in interface org.apache.myfaces.trinidad.convert.ClientConverter

getClientImportNames

public java.util.Collection<java.lang.String> getClientImportNames()
Specified by:
getClientImportNames in interface org.apache.myfaces.trinidad.convert.ClientConverter


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.