|
Joda System API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for String properties.
| Nested Class Summary |
| Nested classes inherited from class org.joda.property.Property |
Property.Internal |
| Field Summary | |
static java.lang.Class |
DEFAULT_TYPE
|
| Method Summary | |
void |
append(java.lang.Object appendValue)
Append another string to this property's value. |
char |
charAt(int index)
Returns the character at a particular index. |
boolean |
contains(java.lang.String searchString)
Check for the presence of a particular string. |
void |
delete(int startIndex,
int endIndex)
Delete part of the string. |
void |
deleteCharAt(int index)
Delete a character at a particular index. |
boolean |
endsWith(java.lang.String searchString)
Check whether the property starts with particular string. |
boolean |
equalsValueIgnoreCase(java.lang.Object object)
Check whether this string equals the one passed in ignoring case. |
java.lang.String |
get()
Get the property's value. |
int |
indexOf(java.lang.String searchString)
Get the index of a particular string, or -1 if not found |
int |
indexOf(java.lang.String searchString,
int fromIndex)
Get the index of a particular string, or -1 if not found |
void |
insert(int insertIndex,
java.lang.Object appendValue)
Insert another string into this property's value. |
boolean |
isEmpty()
Is the string currently null or zero length |
int |
lastIndexOf(java.lang.String searchString)
Get the last index of a particular string, or -1 if not found |
java.lang.String |
left(int length)
Returns a string that is the leftmost characters of this string. |
int |
length()
Get the length of the string. |
java.lang.String |
mid(int beginIndex,
int length)
Returns a string that is a substring of this string. |
void |
replace(java.lang.String searchString,
java.lang.String replaceString)
Replace one string with another in the property's value. |
java.lang.String |
right(int length)
Returns a string that is the rightmost characters of this string. |
void |
setCharAt(int index,
char character)
Set a character at a particular index. |
void |
setToLowerCase()
Set the property's value to lower case. |
void |
setToLowerCase(java.util.Locale locale)
Set the property's value to lower case using the locale's rules. |
void |
setToUpperCase()
Set the property's value to upper case. |
void |
setToUpperCase(java.util.Locale locale)
Set the property's value to upper case using the locale's rules. |
boolean |
startsWith(java.lang.String searchString)
Check whether the property ends with particular string. |
java.lang.String |
substring(int beginIndex)
Returns a string that is a substring of this string. |
java.lang.String |
substring(int beginIndex,
int endIndex)
Returns a string that is a substring of this string. |
| Methods inherited from interface org.joda.property.type.DataProperty |
toDataString |
| Methods inherited from interface org.joda.property.Property |
addPropertyChangeListener, bean, equals, equalsValue, firePropertyChange, getContentName, getContentType, getPropertyName, getPropertyType, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, set, setModifiable, setReadOnly, toObject, toString |
| Methods inherited from interface org.joda.property.ModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Field Detail |
public static final java.lang.Class DEFAULT_TYPE
| Method Detail |
public java.lang.String get()
public char charAt(int index)
index - the index to obtain
java.lang.StringIndexOutOfBoundsException - if the index is out of range
NullValuePropertyException - thrown if the property value is nullpublic java.lang.String substring(int beginIndex)
beginIndex - the beginning index, inclusive
java.lang.StringIndexOutOfBoundsException - if the index is out of range
NullValuePropertyException - thrown if the property value is null
public java.lang.String substring(int beginIndex,
int endIndex)
beginIndex - the beginning index, inclusiveendIndex - the ending index, exclusive
java.lang.StringIndexOutOfBoundsException - if either index is out of range
NullValuePropertyException - thrown if the property value is nullpublic java.lang.String left(int length)
length - the length of string to obtain
NullValuePropertyException - thrown if the property value is null
public java.lang.String mid(int beginIndex,
int length)
beginIndex - the beginning index, inclusivelength - the length of string to obtain
NullValuePropertyException - thrown if the property value is nullpublic java.lang.String right(int length)
length - the length of string to obtain
NullValuePropertyException - thrown if the property value is nullpublic boolean isEmpty()
public int length()
NullValuePropertyException - thrown if the property value is nullpublic boolean equalsValueIgnoreCase(java.lang.Object object)
public boolean contains(java.lang.String searchString)
searchString - the string to search for
public boolean endsWith(java.lang.String searchString)
searchString - the string to search for
public boolean startsWith(java.lang.String searchString)
searchString - the string to search for
public int indexOf(java.lang.String searchString)
searchString - the string to search for
public int indexOf(java.lang.String searchString,
int fromIndex)
searchString - the string to search forfromIndex - the index to start the search at
public int lastIndexOf(java.lang.String searchString)
searchString - the string to search for
public void setCharAt(int index,
char character)
index - the index to set the value atcharacter - the character to set to
NullValuePropertyException - thrown if the property value is nullpublic void deleteCharAt(int index)
index - the index to set the value at
NullValuePropertyException - thrown if the property value is nullpublic void append(java.lang.Object appendValue)
appendValue - a value to append to the property
NullValuePropertyException - thrown if the property value is null
public void insert(int insertIndex,
java.lang.Object appendValue)
insertIndex - the index at which to insert
NullValuePropertyException - thrown if the property value is null
public void delete(int startIndex,
int endIndex)
startIndex - the index at which to start, inclusiveendIndex - the index at which to end deleting, exclusive
NullValuePropertyException - thrown if the property value is null
public void replace(java.lang.String searchString,
java.lang.String replaceString)
searchString - the string to search forreplaceString - the string to replace it with
NullValuePropertyException - thrown if the property value is nullpublic void setToLowerCase()
public void setToLowerCase(java.util.Locale locale)
locale - the locale to use for conversionpublic void setToUpperCase()
public void setToUpperCase(java.util.Locale locale)
locale - the locale to use for conversion
|
Joda System API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||