|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.util.E4String
public class E4String
Similar to a String datatype, but it is possible to inheritance sub classes from this type. It is used to build up user defined and generated classes for String values.
E4ModuleDictionaryTypes,
E4DBType,
E4StringImage,
E4Long| Field Summary | |
|---|---|
static java.lang.String |
CLASSNAME
|
protected int |
m_maxsize
|
protected boolean |
m_nullable
|
protected java.lang.String |
m_string
|
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Constructor Summary | |
|---|---|
E4String()
|
|
E4String(char ch)
|
|
E4String(char[] s)
|
|
E4String(char[] s,
int maxsize)
|
|
E4String(char[] s,
int maxsize,
boolean nullable)
|
|
E4String(char ch,
int maxsize)
|
|
E4String(char ch,
int maxsize,
boolean nullable)
|
|
E4String(E4String s)
|
|
E4String(E4String s,
int len)
|
|
E4String(E4String s,
int len,
boolean nullable)
|
|
E4String(int maxsize)
|
|
E4String(int maxsize,
boolean nullable)
|
|
E4String(java.lang.String s)
|
|
E4String(java.lang.StringBuffer s)
|
|
E4String(java.lang.StringBuffer s,
int maxsize)
|
|
E4String(java.lang.StringBuffer s,
int maxsize,
boolean nullable)
|
|
E4String(java.lang.String s,
int maxsize)
|
|
E4String(java.lang.String s,
int maxsize,
boolean nullable)
|
|
| Method Summary | |
|---|---|
boolean |
_equals(java.lang.String anotherString)
|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
char |
charAt(int pos)
|
java.lang.Object |
clone()
|
int |
compareTo(E4String anotherString)
|
int |
compareTo(java.lang.Object anotherString)
|
int |
compareTo(java.lang.String anotherString)
|
int |
compareToIgnoreCase(E4String anotherString)
|
int |
compareToIgnoreCase(java.lang.String anotherString)
|
E4String |
concat(char ch)
|
E4String |
concat(E4String str)
|
E4String |
concat(int val)
|
E4String |
concat(long val)
|
E4String |
concat(java.lang.String str)
|
static java.lang.String |
cut(java.lang.String s,
E4DBColumnInfo ci)
Cut a string to the specified length. |
static java.lang.String |
cut(java.lang.String s,
int len)
Cut a string to the specified length. |
boolean |
endsWith(E4String suffix)
|
boolean |
endsWith(java.lang.String suffix)
|
boolean |
equals(E4String anotherString)
|
boolean |
equals(java.lang.String anotherString)
|
boolean |
equalsIgnoreCase(E4String anotherString)
|
boolean |
equalsIgnoreCase(java.lang.String anotherString)
|
static java.lang.String |
fixed(java.lang.String str,
int len)
Fill up a string with spaces (' '), so that the length will be len characters. |
static java.lang.String |
fixedRight(java.lang.String str,
int len)
Fill up a string with spaces (' '), so that the length will be len characters. |
int |
getMaxSize()
Return the maximum size for this string. |
boolean |
getNullable()
Return the nullable status of this String. |
java.lang.String |
getString()
|
int |
hashCode()
|
int |
indexOf(char ch)
|
int |
indexOf(char ch,
int fromIndex)
|
int |
indexOf(E4String str)
|
int |
indexOf(E4String str,
int fromIndex)
|
int |
indexOf(java.lang.String str)
|
int |
indexOf(java.lang.String str,
int fromIndex)
|
int |
lastIndexOf(char ch)
|
int |
lastIndexOf(char ch,
int fromIndex)
|
int |
lastIndexOf(E4String str)
|
int |
lastIndexOf(E4String str,
int fromIndex)
|
int |
lastIndexOf(java.lang.String str)
|
int |
lastIndexOf(java.lang.String str,
int fromIndex)
|
E4String |
left(int places)
|
static java.lang.String |
left(java.lang.String s,
int places)
Get the left part of a string. |
int |
length()
|
static boolean |
matches(java.lang.String s,
java.lang.String wildcards)
Test, if a specified string including wildcards matches. |
static boolean |
matchesIgnoreCase(java.lang.String s,
java.lang.String wildcards)
Test, if a specified string including wildcards matches. |
boolean |
regionMatches(boolean ignoreCase,
int toffset,
E4String other,
int ooffset,
int len)
|
boolean |
regionMatches(boolean ignoreCase,
int toffset,
java.lang.String other,
int ooffset,
int len)
|
boolean |
regionMatches(int toffset,
E4String other,
int ooffset,
int len)
|
boolean |
regionMatches(int toffset,
java.lang.String other,
int ooffset,
int len)
|
static java.lang.String |
remove(java.lang.String str,
java.lang.String source)
Remove a substring within a string. |
E4String |
removeSpaces()
Remove spaces from a String |
static java.lang.String |
removeSpaces(java.lang.String s)
Remove spaces from a String |
E4String |
replace(char oldChar,
char newChar)
|
E4String |
replace(E4String oldStr,
E4String newStr)
|
static java.lang.String |
replace(java.lang.String str,
char source,
java.lang.String replace)
Replace a substring within a string by another substring. |
E4String |
replace(java.lang.String oldStr,
java.lang.String newStr)
|
static java.lang.String |
replace(java.lang.String str,
java.lang.String source,
java.lang.String replace)
Replace a substring within a string by another substring. |
static java.lang.String |
replaceIgnoreCase(java.lang.String str,
java.lang.String source,
java.lang.String replace)
Replace a substring within a string by another substring. |
E4String |
right(int places)
|
static java.lang.String |
right(java.lang.String s,
int places)
Get the right part of a string. |
void |
setMaxSize(int maxsize)
Defines and validates the mayimum size for this string. |
void |
setNullable(boolean nullable)
Define the nullable status of this String. |
void |
setString(java.lang.String str)
|
boolean |
startsWith(E4String prefix)
|
boolean |
startsWith(E4String prefix,
int toffset)
|
boolean |
startsWith(java.lang.String prefix)
|
boolean |
startsWith(java.lang.String prefix,
int toffset)
|
E4String |
substring(int i)
|
E4String |
substring(int i1,
int i2)
|
char[] |
toCharArray()
|
E4String |
toLowerCase()
|
E4String |
toLowerCase(java.util.Locale locale)
|
java.lang.String |
toString()
|
E4String |
toUpperCase()
|
E4String |
toUpperCase(java.util.Locale locale)
|
E4String |
trim()
|
protected void |
validate()
If a maximum length is specified, validate if the String is smaller than that specified size and throw an Error if exceeds. |
| Methods inherited from class e4s.util.E4Object |
|---|
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String m_string
protected int m_maxsize
protected boolean m_nullable
public static final java.lang.String CLASSNAME
| Constructor Detail |
|---|
public E4String()
public E4String(int maxsize)
public E4String(int maxsize,
boolean nullable)
public E4String(java.lang.String s)
public E4String(java.lang.String s,
int maxsize,
boolean nullable)
public E4String(java.lang.String s,
int maxsize)
public E4String(char[] s)
public E4String(char[] s,
int maxsize)
public E4String(char[] s,
int maxsize,
boolean nullable)
public E4String(char ch)
public E4String(char ch,
int maxsize)
public E4String(char ch,
int maxsize,
boolean nullable)
public E4String(E4String s)
public E4String(E4String s,
int len)
public E4String(E4String s,
int len,
boolean nullable)
public E4String(java.lang.StringBuffer s)
public E4String(java.lang.StringBuffer s,
int maxsize)
public E4String(java.lang.StringBuffer s,
int maxsize,
boolean nullable)
| Method Detail |
|---|
public java.lang.String getString()
public void setString(java.lang.String str)
public java.lang.String toString()
toString in class E4Objectpublic E4String trim()
public E4String substring(int i)
public E4String substring(int i1,
int i2)
public char charAt(int pos)
public int compareTo(java.lang.String anotherString)
public int compareTo(E4String anotherString)
public int compareTo(java.lang.Object anotherString)
compareTo in interface java.lang.Comparablepublic int compareToIgnoreCase(java.lang.String anotherString)
public int compareToIgnoreCase(E4String anotherString)
public E4String concat(java.lang.String str)
public E4String concat(char ch)
public E4String concat(E4String str)
public E4String concat(int val)
public E4String concat(long val)
public boolean endsWith(java.lang.String suffix)
public boolean endsWith(E4String suffix)
public boolean equals(java.lang.String anotherString)
public boolean _equals(java.lang.String anotherString)
public boolean equals(E4String anotherString)
public boolean equalsIgnoreCase(java.lang.String anotherString)
public boolean equalsIgnoreCase(E4String anotherString)
public int indexOf(char ch)
public int indexOf(char ch,
int fromIndex)
public int indexOf(java.lang.String str)
public int indexOf(java.lang.String str,
int fromIndex)
public int indexOf(E4String str)
public int indexOf(E4String str,
int fromIndex)
public int lastIndexOf(char ch)
public int lastIndexOf(char ch,
int fromIndex)
public int lastIndexOf(java.lang.String str)
public int lastIndexOf(java.lang.String str,
int fromIndex)
public int lastIndexOf(E4String str)
public int lastIndexOf(E4String str,
int fromIndex)
public int length()
public boolean regionMatches(boolean ignoreCase,
int toffset,
java.lang.String other,
int ooffset,
int len)
public boolean regionMatches(boolean ignoreCase,
int toffset,
E4String other,
int ooffset,
int len)
public boolean regionMatches(int toffset,
java.lang.String other,
int ooffset,
int len)
public boolean regionMatches(int toffset,
E4String other,
int ooffset,
int len)
public E4String replace(char oldChar,
char newChar)
public E4String removeSpaces()
s - the string
removeSpaces(String)
public E4String replace(java.lang.String oldStr,
java.lang.String newStr)
public E4String replace(E4String oldStr,
E4String newStr)
public boolean startsWith(java.lang.String prefix)
public boolean startsWith(E4String prefix)
public boolean startsWith(java.lang.String prefix,
int toffset)
public boolean startsWith(E4String prefix,
int toffset)
public E4String toLowerCase()
public E4String toLowerCase(java.util.Locale locale)
public E4String toUpperCase()
public E4String toUpperCase(java.util.Locale locale)
public char[] toCharArray()
public int hashCode()
hashCode in class java.lang.Objectpublic int getMaxSize()
setMaxSize(int),
getNullable()public boolean getNullable()
getMaxSize(),
setNullable(boolean)public void setNullable(boolean nullable)
nullable - true means that null or empty values are allowedgetNullable()public void setMaxSize(int maxsize)
maxsize - the maximum size, or a value of -1 which indicates that there is no limitationgetMaxSize(),
validate()protected void validate()
public java.lang.Object clone()
clone in class java.lang.Objectpublic E4String right(int places)
public E4String left(int places)
public static java.lang.String fixed(java.lang.String str,
int len)
str - the Stringlen - length to fill up
public static java.lang.String fixedRight(java.lang.String str,
int len)
str - the Stringlen - length to fill up
public static java.lang.String cut(java.lang.String s,
int len)
s - the stringlen - the length
cut(String,e4s.db.E4DBColumnInfo)
public static java.lang.String cut(java.lang.String s,
E4DBColumnInfo ci)
s - the stringci - a column info entry specifying the length
cut(String,int)
public static java.lang.String remove(java.lang.String str,
java.lang.String source)
str - the main string, where the replacement shall take placesource - the substring to search for
replace(String,String,String)
public static java.lang.String replace(java.lang.String str,
java.lang.String source,
java.lang.String replace)
str - the main string, where the replacement shall take placesource - the substring to search forreplace - new replaced string, null if nothing to replace
e4string#replace(String,String)
public static java.lang.String replaceIgnoreCase(java.lang.String str,
java.lang.String source,
java.lang.String replace)
str - the main string, where the replacement shall take placesource - the substring to search forreplace - new replaced string, null if nothing to replace
e4string#replace(String,String),
replace(char, char)
public static java.lang.String replace(java.lang.String str,
char source,
java.lang.String replace)
str - the main string, where the replacement shall take placesource - the substring to search forreplace - new replaced string, null if nothing to replace
e4string#replace(String,String),
e4string#replace(String,String,String)
public static java.lang.String right(java.lang.String s,
int places)
places - number of characters to getleft(String,int)
public static java.lang.String left(java.lang.String s,
int places)
places - number of characters to getright(String,int)
public static final boolean matches(java.lang.String s,
java.lang.String wildcards)
s - the string to be testedwildcards - a wildcard expression containing asterix at the beginning and/or end
matchesIgnoreCase(String, String)public static java.lang.String removeSpaces(java.lang.String s)
s - the string
public static final boolean matchesIgnoreCase(java.lang.String s,
java.lang.String wildcards)
s - the string to be testedwildcards - a wildcard expression containing asterix at the beginning and/or end
matches(String, String)public static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||