|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opencyc.util.StringUtils
Provides String utilities not otherwise provided by Violin Strings. All methods are static. There is no need to instantiate this class.
Copyright 2001 Cycorp, Inc., license is open source GNU LGPL.
THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Constructor Summary | |
StringUtils()
|
Method Summary | |
static java.lang.String |
escapeDoubleQuotes(java.lang.String string)
Escapes embedded double quote and backslash characters in the given string. |
static boolean |
isDelimitedString(java.lang.Object object)
Returns true iff the given object is a string delimited by double quotes. |
static boolean |
isNumeric(java.lang.String string)
Returns true iff all characters in the given string are numeric. |
static java.lang.String |
removeDelimiters(java.lang.String string)
Removes delimiter characters from the given string. |
static java.lang.String |
wordsToPhrase(java.util.List words)
Returns the phrase formed from the given list of words |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtils()
Method Detail |
public static boolean isNumeric(java.lang.String string)
string
- the string to be testedpublic static boolean isDelimitedString(java.lang.Object object)
object
- the object to be testedpublic static java.lang.String removeDelimiters(java.lang.String string)
string
- the string which has delimiters to be removedpublic static java.lang.String wordsToPhrase(java.util.List words)
words
- the phrase wordspublic static java.lang.String escapeDoubleQuotes(java.lang.String string)
string
- the given string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |