jpos.profile
Class BooleanPropType
java.lang.Object
|
+--jpos.profile.AbstractPropType
|
+--jpos.profile.BooleanPropType
- All Implemented Interfaces:
- PropType, java.io.Serializable
- public class BooleanPropType
- extends AbstractPropType
- implements PropType, java.io.Serializable
Defines a Boolean 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 |
BooleanPropType
BooleanPropType()
- 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(boolean b)
- Parameters:
boolean - the boolean 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