jpos.profile
Interface PropType

All Known Implementing Classes:
AbstractPropType, BooleanPropType, CharacterPropType, IntegerPropType, StringPropType, FloatPropType

public interface PropType

Defines a property type

Since:
1.3 (SF 2K meeting)
Author:
E. Michael Maximilien (maxim@us.ibm.com)

Method Summary
 java.lang.String getDescription()
           
 java.lang.Class getJavaTypeClass()
           
 boolean isValidValue(java.lang.Object obj)
           
 boolean isValidValue(PropValue obj)
           
 java.lang.String toString()
           
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a String representation of this PropType

getDescription

public java.lang.String getDescription()
Returns:
a String description of this PropType (can be HTML text)

getJavaTypeClass

public java.lang.Class getJavaTypeClass()
Returns:
a Java class that defines this type

isValidValue

public boolean isValidValue(java.lang.Object obj)
Parameters:
obj - the Java Object
Returns:
true if the object passed is of this PropType

isValidValue

public boolean isValidValue(PropValue obj)
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