jpos.profile
Class CharacterPropType
java.lang.Object
|
+--jpos.profile.AbstractPropType
|
+--jpos.profile.CharacterPropType
- All Implemented Interfaces:
- PropType, java.io.Serializable
- public class CharacterPropType
- extends AbstractPropType
- implements PropType, java.io.Serializable
Defines a Character property type
- Since:
- 1.3 (SF 2K meeting)
- Author:
- E. Michael Maximilien (maxim@us.ibm.com)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CharacterPropType
CharacterPropType()
- Default ctor
getInstance
public static PropType getInstance()
- Returns:
- the unique instance of this class (create if necessary)
toString
public java.lang.String toString()
- Specified by:
toString
in interface PropType
- Overrides:
toString
in class AbstractPropType
- Returns:
- a String representation of this PropType
getJavaTypeClass
public java.lang.Class getJavaTypeClass()
- Specified by:
getJavaTypeClass
in interface PropType
- Overrides:
getJavaTypeClass
in class AbstractPropType
- Returns:
- a Java class that defines this type
isValidValue
public boolean isValidValue(char c)
- Parameters:
char
- the char primitive type- Returns:
- true if the object passed is of this PropType
isValidValue
public boolean isValidValue(java.lang.Object obj)
- Specified by:
isValidValue
in interface PropType
- Overrides:
isValidValue
in class AbstractPropType
- Parameters:
obj
- the Java Object- Returns:
- true if the object passed is of this PropType
isValidValue
public boolean isValidValue(PropValue propValue)
- Specified by:
isValidValue
in interface PropType
- Overrides:
isValidValue
in class AbstractPropType
- Parameters:
propValue
- the PropValue- Returns:
- true if the PropValue passed is of this PropType
This API and code belongs to the JavaPOS committee please see LISCENCE file for details