OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adf.view.js.base
Class AdfStrings

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfStrings

public class AdfStrings
extends Object
Holder of commonly used string constants



Field Summary

public static Object
CLOSE_CURLY_BRACKET
public static Object
COMMA
private static Object
_CONSTANT_REGEXP
public static Object
EQUALS
private static Object
_REPLACE_PATTERN
public static Object
START_CURLY_BRACKET
private static Object
_TRIM_ALL_RE
private static Object
_TRIM_BEGINNING_RE
private static Object
_TRIM_END_RE


Fields inherited from org.ecmascript.object.Object

constructor, prototype


Constructor Summary

public
AdfStrings()
Holder of commonly used string constants


Method Summary

public static Number
count(String searchString, Object matchString)
Returns the number of non-overlapping times that matchString occurs in the searchString.
public static Object
createConstantName(Object inString)
Given a String, returns a new String in the constant style with the String in uppercase and camel-cased words separated by underscores.
public static Object
endsWith(string searchIn, string searchFor)
Function to efficiently check if a string starts with another string
private static Object
_getOwnProperties(Object theObject)
Returns an object containing all of the hasOwnProperties of another object
public static Object
initUpperCase(Object inString)
Return a String with initial upper cases
public static boolean
isString(object obj)
Test if an object is a string (either a string constant or a string object)
public static Object
startsWith(string searchIn, string searchFor)
Function to efficiently check if a string starts with another string
private static Object
_stringStartsOrEndsWith(Object searchIn, Object searchFor, Object startAtBeginning)
public static Object
toDebugString(Object source)
Returns a reasonable debugging string for an object
private static Object
_toJSONKeyValue(Object key, Object value)
Format a keyvalue pair
private static Object
_toJSONString(Object theObject)
Returns the properties of an object in JSON format
public static Object
trim(Object data)
Remove leading and trailing whitespace
public static Object
trimLeading(Object data)
Remove leading whitespace
public static Object
trimTrailing(Object data)
Deprecated: Use AdfString.trimTrailing


Field Detail


CLOSE_CURLY_BRACKET

public static Object CLOSE_CURLY_BRACKET

COMMA

public static Object COMMA

_CONSTANT_REGEXP

private static Object _CONSTANT_REGEXP

EQUALS

public static Object EQUALS

_REPLACE_PATTERN

private static Object _REPLACE_PATTERN

START_CURLY_BRACKET

public static Object START_CURLY_BRACKET

_TRIM_ALL_RE

private static Object _TRIM_ALL_RE

_TRIM_BEGINNING_RE

private static Object _TRIM_BEGINNING_RE

_TRIM_END_RE

private static Object _TRIM_END_RE

Constructor Detail


AdfStrings

public AdfStrings()

Holder of commonly used string constants

Method Detail


count

public static Number count(String searchString,
                           Object matchString)

Returns the number of non-overlapping times that matchString occurs in the searchString.

Parameters:
searchString  -  String to search for matches
matchString    
Return:
Number - number of non-overlapping matches

createConstantName

public static Object createConstantName(Object inString)

Given a String, returns a new String in the constant style with the String in uppercase and camel-cased words separated by underscores. For example mouseMove becomes MOUSE_MOVE.

Parameters:
inString    
Return:
Object

endsWith

public static Object endsWith(string searchIn,
                              string searchFor)

Function to efficiently check if a string starts with another string

Parameters:
searchIn  -  the string to see if it starts with the other string
searchFor  -  the string that will be compared against the beginning of the other string
Return:
Object

_getOwnProperties

private static Object _getOwnProperties(Object theObject)

Returns an object containing all of the hasOwnProperties of another object

Parameters:
theObject  -  The object to get the properties of
Return:
Object

initUpperCase

public static Object initUpperCase(Object inString)

Return a String with initial upper cases

Parameters:
inString    
Return:
Object

isString

public static boolean isString(object obj)

Test if an object is a string (either a string constant or a string object)

Parameters:
obj  -  object to test
Return:
boolean - true if a string constant or string object

startsWith

public static Object startsWith(string searchIn,
                                string searchFor)

Function to efficiently check if a string starts with another string

Parameters:
searchIn  -  the string to see if it starts with the other string
searchFor  -  the string that will be compared against the beginning of the other string
Return:
Object

_stringStartsOrEndsWith

private static Object _stringStartsOrEndsWith(Object searchIn,
                                              Object searchFor,
                                              Object startAtBeginning)

Parameters:
searchIn    
searchFor    
startAtBeginning    
Return:
Object

toDebugString

public static Object toDebugString(Object source)

Returns a reasonable debugging string for an object

Parameters:
source  -  Object to generate debug string for
Return:
Object

_toJSONKeyValue

private static Object _toJSONKeyValue(Object key,
                                      Object value)

Format a keyvalue pair

Parameters:
key    
value    
Return:
Object

_toJSONString

private static Object _toJSONString(Object theObject)

Returns the properties of an object in JSON format

Parameters:
theObject    
Return:
Object

trim

public static Object trim(Object data)

Remove leading and trailing whitespace

Parameters:
data    
Return:
Object

trimLeading

public static Object trimLeading(Object data)

Remove leading whitespace

Parameters:
data    
Return:
Object

trimTrailing

public static Object trimTrailing(Object data)

Remove trailing whitespace

Deprecated: Use AdfString.trimTrailing
Parameters:
data    
Return:
Object

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2014.03.27 12:59 UTC
Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.