| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.tools.patternengine.DomParser.ValueObject
A value in the input XML stream can be represented as a ValueObject. This class supports various helper routines to get different variations of the values.
| Constructor Summary | |
| DomParser.ValueObject(String value)Creates an instance. | |
| Method Summary | |
|  boolean | getBooleanValue()Returns true if the value is any of true/yes/t/y/1. | 
|  String | getCriteriaFieldType()Returns the CriteriaField implementation classname appropriate for the datatype represented by this value. | 
|  boolean | getCriteriaFieldTypeThrowsException()Returns true if the CriteriaField implementation class appropriate for the datatype represented by this value throws an Exception during Instantiation. | 
|  boolean | getDataTypeBoolean()Returns a true if the value represents the Boolean datatype or its variants. | 
|  boolean | getDataTypeDateOnly()Returns a true if the value represents the DateOnly datatype | 
|  boolean | getDataTypeDateTime()Returns a true if the value represents the DateTime datatype | 
|  boolean | getDataTypeNumeric()Returns a true if the value represents a numeric datatype. | 
|  boolean | getDataTypeString()Returns a true if the value represents the datatype for which the String class is used. | 
|  String | getGridColumnDataType()Returns the string to be specified as the GridColumnDataType for the datatype represented by this value. | 
|  int | getIntValue()Translates the value to an int value. | 
|  String | getJavaDataType()Returns the Java classname for the datatype represented by this value. | 
|  String | getLower()Returns the value with the value in lowercase. | 
|  String | getLower1()Returns the value with the 1st character in lowercase. | 
|  String | getMetaFieldType()Returns the FieldMetaData implementation classname appropriate for the datatype represented by this value. | 
|  String | getParserMethod()Returns the ParserMethod appropriate for the datatype represented by this value. | 
|  Map | getRelatedObject(Object relatedObjectsMap)This will check the input Map for a RelatedObject having the same Name as this field. | 
|  String | getRelationshipType(Object relatedObjectsMap)This will check the input Map for a RelatedObject having the same Name as this field. | 
|  boolean | getRelationshipTypeMany()Returns true if the value equals any of the values: Many, OneAndMany, *, m..*, m (where m > 1) or m..n (where n >= m && n > 1) | 
|  boolean | getRelationshipTypeMany(Object relatedObjectsMap)Returns true if the RelationshipType for the matching RelatedObject equals any of the values: Many, OneAndMany, *, m..*, m (where m > 1) or m..n (where n >= m && n > 1) This is extensively used by the object-maintenace_2_0 pattern. | 
|  boolean | getRelationshipTypeOne()Returns true if the value equals any of the values: One, OneAndMany, 1, 0..1, 1..1. | 
|  boolean | getRelationshipTypeOne(Object relatedObjectsMap)Returns true if the RelationshipType for the matching RelatedObject equals any of the values: One, OneAndMany, 1, 0..1, 1..1 This is extensively used by the object-maintenace_2_0 pattern. | 
|  boolean | getRelationshipTypeOptional()Returns true if the value equals any of the values: 0..*, *, 0 or 0..n | 
|  String | getSpace()Translates the value to words separated by spaces. | 
|  String | getStatic()Translates the value to all UpperCase with underscores separating the words. | 
|  String | getUpper()Returns the value with the value in uppercase. | 
|  String | getUpper1()Returns the value with the 1st character in uppercase. | 
|  String | getWidgetType()Returns the WidgetType appropriate for the datatype represented by this value. | 
|  String | getWidgetTypeBasedOnBreakup()Returns the WidgetType appropriate for the Breakup type represented by this value. | 
|  String | getWidgetTypeInCriteriaScreen()Returns the WidgetType appropriate for the datatype represented by this value for an Inquiry Criteria Screen. | 
|  String | toString()Returns the value as is. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public DomParser.ValueObject(String value)
value - the value of this object.| Method Detail | 
public String getLower1()
public String getUpper1()
public String getLower()
public String getUpper()
public String getStatic()
public String getSpace()
public int getIntValue()
                throws NumberFormatException
NumberFormatException - if the String cannot be converted to an int value.public String toString()
public boolean getBooleanValue()
public String getJavaDataType()
public String getGridColumnDataType()
public String getCriteriaFieldType()
public boolean getCriteriaFieldTypeThrowsException()
public String getMetaFieldType()
public String getWidgetType()
public String getWidgetTypeInCriteriaScreen()
public String getWidgetTypeBasedOnBreakup()
public String getParserMethod()
public boolean getDataTypeDateOnly()
public boolean getDataTypeDateTime()
public boolean getDataTypeBoolean()
public boolean getDataTypeString()
public boolean getDataTypeNumeric()
public Map getRelatedObject(Object relatedObjectsMap)
relatedObjectsMap - The Map containing a collection of RelatedObjects.
public String getRelationshipType(Object relatedObjectsMap)
relatedObjectsMap - The Map containing a collection of RelatedObjects.
public boolean getRelationshipTypeOne(Object relatedObjectsMap)
relatedObjectsMap - The Map containing a collection of RelatedObjects.
public boolean getRelationshipTypeMany(Object relatedObjectsMap)
relatedObjectsMap - The Map containing a collection of RelatedObjects.
public boolean getRelationshipTypeOne()
public boolean getRelationshipTypeMany()
public boolean getRelationshipTypeOptional()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||