org.kuali.kfs.sys.businessobject
Class BusinessObjectStringParserFieldUtils
java.lang.Object
org.kuali.kfs.sys.businessobject.BusinessObjectStringParserFieldUtils
- Direct Known Subclasses:
- CollectorBatchHeaderFieldUtil, CollectorBatchTrailerRecordFieldUtil, CollectorDetailFieldUtil, LaborOriginEntryFieldUtil, OriginEntryFieldUtil
public abstract class BusinessObjectStringParserFieldUtils
- extends Object
An abstract class which provides help in determining field lengths of business objects being parsed from Strings
Field Summary |
protected org.apache.log4j.Logger |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected org.apache.log4j.Logger LOG
BusinessObjectStringParserFieldUtils
public BusinessObjectStringParserFieldUtils()
getFieldLengthMap
public Map<String,Integer> getFieldLengthMap()
- Returns:
- a Map with attribute names as keys and lengths of how long those fields are specified to be in the DataDictionary as values
initializeFieldLengthMap
protected void initializeFieldLengthMap()
- Calculates a map with the field length of all of the attributes of the class given by the
getBusinessObjectClass method
getBusinessObjectClass
public abstract Class<? extends org.kuali.rice.kns.bo.BusinessObject> getBusinessObjectClass()
- Returns:
- the class of the BusinessObject that this utility class will help parse from a String
getFieldBeginningPositionMap
public Map<String,Integer> getFieldBeginningPositionMap()
- Returns:
- a Map with business object field names as keys and starting positions of each field in the String as values
initializeFieldBeginningPositionMap
protected void initializeFieldBeginningPositionMap()
- Calculates the beginning positions of each field in the array returned by getOrderedProperties, based on
the length map calculated by getFieldLengthMap().
getOrderedProperties
public abstract String[] getOrderedProperties()
- Returns:
- an array of String names of fields in a business object in the order they will show up in the String to be parsed
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.