public class GLFormat
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GLFormat(java.lang.String value)
Deprecated.
|
GLFormat(java.lang.String[] segs)
Create a GL Formatter with the specified segments
|
GLFormat(java.lang.String[] segs,
java.lang.String orgId)
Create a GL Formatter with the specified segments
|
GLFormat(java.lang.String value,
boolean full)
Deprecated.
|
GLFormat(java.lang.String value,
boolean full,
java.lang.String orgId)
Construct a formatter for the given value and indicate of it is fully specified
If a GLFormat object has not previously been initialized on the same Java VM,
using the int() method,then a default formatter will be created.
|
GLFormat(java.lang.String value,
java.lang.String orgId)
Create a GL Formatter that is NOT fully specified
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkType(int segno,
java.lang.String val)
Check the type of the segment to make sure it is OK !
|
java.lang.String |
getPlaceHolder()
Return the place holder character used for unspecified segments.
|
static boolean |
getPropertyAsBoolean(java.sql.Connection con,
java.lang.String name)
Return a property as a boolean
|
char |
getScreenDelimiter(int segno)
What is the delimiter used to display after the specifed
segment number.
|
int |
getSegmentCount()
How many segments are there in the GL Account ?
|
int |
getSegmentLength(int segno)
Return the length of a specified segment.
|
java.lang.String |
getSegmentName(int segno)
Return the name of the segment as defined by the user.
|
java.lang.String[] |
getSegments()
Return the segments of the account
|
int |
getSegmentType(int segno)
Return the type of the specified segment.
|
boolean |
isFullySpecified()
Does the code need to be fully specified ?
|
boolean |
isSegmentRequired(int segno)
Is the specified segment required ?
|
void |
mergeString(java.lang.String val)
Merge the specified string with the current value
The current value of the account has highest priority, and the
passed in string will be used to fill in any non specified values
|
java.lang.String |
segmentPlaceHolder(int segno)
Return a string of place holders the length of the specified segment
|
java.lang.String |
toDisplayString()
Convert segments to a string for display on screen
|
java.lang.String |
toQueryString()
Returns a string that can be used to in an SQL database to validate
the componenets that have been entered so far.
|
java.lang.String |
toStorageString()
Convert segments to a string for storage in the database
|
java.lang.String |
toString()
Convert segments to a string.
|
public GLFormat(java.lang.String value, boolean full, java.lang.String orgId) throws MXException, java.rmi.RemoteException
value
- full
- userinfo
- MXException
java.rmi.RemoteException
public GLFormat(java.lang.String value, java.lang.String orgId) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public GLFormat(java.lang.String value, boolean full) throws MXException
value
- full
- MXApplicationException
MXException
public GLFormat(java.lang.String value) throws MXException
value
- MXApplicationException
MXException
public GLFormat(java.lang.String[] segs) throws MXException
MXException
public GLFormat(java.lang.String[] segs, java.lang.String orgId) throws MXException
MXException
public java.lang.String[] getSegments()
public java.lang.String segmentPlaceHolder(int segno)
public java.lang.String checkType(int segno, java.lang.String val) throws MXApplicationException
MXApplicationException
public java.lang.String toQueryString()
public java.lang.String toDisplayString()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStorageString()
public void mergeString(java.lang.String val) throws MXApplicationException
MXApplicationException
public int getSegmentCount()
public java.lang.String getSegmentName(int segno)
public int getSegmentLength(int segno)
public int getSegmentType(int segno)
public boolean isSegmentRequired(int segno)
public char getScreenDelimiter(int segno)
public java.lang.String getPlaceHolder()
public boolean isFullySpecified()
public static boolean getPropertyAsBoolean(java.sql.Connection con, java.lang.String name) throws MXException
MXException