|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--AjxUtil
Defined in AjxUtil.js
Field Summary | |
<static> Object |
DOMAIN_NAME_FULL_RE
|
<static> Object |
DOMAIN_NAME_SHORT_RE
|
<static> Object |
ELEMENT_NODE
|
<static> Object |
EMAIL_FULL_RE
|
<static> Object |
EMAIL_RE
|
<static> Object |
EMAIL_SHORT_RE
|
<static> Object |
FLOAT_RE
|
<static> Object |
HOST_NAME_RE
|
<static> Object |
HOST_NAME_WITH_PORT_RE
|
<static> Object |
IP_ADDRESS_RE
|
<static> Object |
IP_SHORT_URL_RE
|
<static> Object |
JS_CHAR_ENCODINGS
|
<static> Object |
LIFETIME_FIELD
|
<static> Object |
NODE_CONTENT
|
<static> Object |
NODE_IS_ATTR
|
<static> Object |
NODE_REPEATS
|
<static> Object |
NOTFLOAT_RE
|
<static> Object |
NOTINT_RE
|
<static> Object |
SHORT_URL_RE
|
<static> Object |
SIZE_BYTES
|
<static> Object |
SIZE_GIGABYTES
|
<static> Object |
SIZE_KILOBYTES
|
<static> Object |
SIZE_MEGABYTES
|
<static> Object |
TEXT_NODE
|
Constructor Summary | |
AjxUtil
()
AjxUtil - static class with some utility methods. |
Method Summary | |
<static> void
|
assert(aCondition, aMessage)
|
<static> Object
|
collapseList(list)
Returns a copy of a list with empty members removed. |
<static> Object
|
createProxy(object, level)
This method returns a proxy for the specified object. |
<static> Object
|
formatSize(size, round, fractions)
Formats a size (in bytes) to the largest whole unit. |
<static> Object
|
formatSizeForUnits(size, units, round, fractions)
Formats a size (in bytes) to a specific unit. |
<static> Object
|
getInnerText(node)
|
<static> Object
|
isArray(aThing)
|
<static> Object
|
isBoolean(aThing)
|
<static> Object
|
isDate(aThing)
|
<static> Object
|
isDomain(s)
|
<static> Object
|
isDomainName(s, shortMatch)
|
<static> Object
|
isEmailAddress(s, nameOnly)
|
<static> Object
|
isFunction(aThing)
|
<static> Object
|
isHostName(s)
|
<static> void
|
isInstance(aThing, aClass)
|
<static> Object
|
isIpAddress(s)
|
<static> Object
|
isLifeTime(aThing)
|
<static> Object
|
isLong(aThing)
|
<static> Object
|
isNonNegativeLong(aThing)
|
<static> Object
|
isNull(aThing)
|
<static> Object
|
isNumber(aThing)
|
<static> Object
|
isNumeric(aThing)
|
<static> Object
|
isObject(aThing)
|
<static> Object
|
isSpecified(aThing)
|
<static> Object
|
isString(aThing)
|
<static> Object
|
isUndefined(aThing)
|
<static> Object
|
jsEncode(string)
|
<static> void
|
onassert(aMessage)
|
<static> Object
|
parseSize(formattedSize, units)
Performs the opposite of AjxUtil.formatSize in that this function takes a formatted size. |
<static> Object
|
xmlToJs(node, omitName)
Convert an XML node to the equivalent JS. |
Field Detail |
<static> Object DOMAIN_NAME_FULL_RE
<static> Object DOMAIN_NAME_SHORT_RE
<static> Object ELEMENT_NODE
<static> Object EMAIL_FULL_RE
<static> Object EMAIL_RE
<static> Object EMAIL_SHORT_RE
<static> Object FLOAT_RE
<static> Object HOST_NAME_RE
<static> Object HOST_NAME_WITH_PORT_RE
<static> Object IP_ADDRESS_RE
<static> Object IP_SHORT_URL_RE
<static> Object JS_CHAR_ENCODINGS
<static> Object LIFETIME_FIELD
<static> Object NODE_CONTENT
<static> Object NODE_IS_ATTR
<static> Object NODE_REPEATS
<static> Object NOTFLOAT_RE
<static> Object NOTINT_RE
<static> Object SHORT_URL_RE
<static> Object SIZE_BYTES
<static> Object SIZE_GIGABYTES
<static> Object SIZE_KILOBYTES
<static> Object SIZE_MEGABYTES
<static> Object TEXT_NODE
Constructor Detail |
AjxUtil()
Method Detail |
<static> void assert(aCondition, aMessage)
<static> Object collapseList(list)
list
- [array] original list
<static> Object createProxy(object, level)
hasOwnProperty
method to determine if the property is a new value in the proxy.
Note: A reference to the original object is stored in the proxy as the "_object_" property.
object
- [object] The object to proxy.
level
- [number] The number of property levels deep to proxy. Defaults to zero.
<static> Object formatSize(size, round, fractions)
size
- The size (in bytes) to be formatted.
round
- True to round to nearest integer. Default is true.
fractions
- Number of fractional digits to display, if not rounding. Trailing zeros after the decimal point are trimmed.
<static> Object formatSizeForUnits(size, units, round, fractions)
size
- The size (in bytes) to be formatted.
units
- The unit of measure.
round
- True to round to nearest integer. Default is true.
fractions
- Number of fractional digits to display, if not rounding. Trailing zeros after the decimal point are trimmed.
<static> Object getInnerText(node)
<static> Object isArray(aThing)
<static> Object isBoolean(aThing)
<static> Object isDate(aThing)
<static> Object isDomain(s)
<static> Object isDomainName(s, shortMatch)
<static> Object isEmailAddress(s, nameOnly)
<static> Object isFunction(aThing)
<static> Object isHostName(s)
<static> void isInstance(aThing, aClass)
<static> Object isIpAddress(s)
<static> Object isLifeTime(aThing)
<static> Object isLong(aThing)
<static> Object isNonNegativeLong(aThing)
<static> Object isNull(aThing)
<static> Object isNumber(aThing)
<static> Object isNumeric(aThing)
<static> Object isObject(aThing)
<static> Object isSpecified(aThing)
<static> Object isString(aThing)
<static> Object isUndefined(aThing)
<static> Object jsEncode(string)
<static> void onassert(aMessage)
<static> Object parseSize(formattedSize, units)
units
- Unit constant: "GB", "MB", "KB", "B". Must be specified unless the formatted size ends with the size marker, in which case the size marker in the formattedSize param overrides this parameter.
<static> Object xmlToJs(node, omitName)
NOTE: This method has not been extensively tested and likely needs work.
node
- [Element] XML node
omitName
- [boolean] if true, don't include node name in output
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |