biz.c24.io.api.transform
Class Map

java.lang.Object
  extended by biz.c24.io.api.transform.Map
Direct Known Subclasses:
Filter, StopFilter, Transform

public abstract class Map
extends Object

Abstract class containing mapping function methods.

The methods in this class are designed for use by subclasses deployed from the Designer. They are designed to simplify the use of their underlying operations by handling null arguments and type incompatibilites.


Nested Class Summary
 class Map.CollectionArgFunction
           
 class Map.FirstCollectionArgFunction
           
 class Map.Function
           
 
Field Summary
 Map.Function ABS
           
 Map.Function ADD
           
 Map.Function ADDCOMMENT
           
 Map.Function ADDNS
           
 Map.Function ADJUSTTIMEZONE
           
 Map.Function ADLER32
           
 Map.Function AFTER
           
 Map.Function ANCESTOR
           
 Map.Function AND
           
 Map.Function AND3
           
 Map.Function AND4
           
 Map.Function ARCCOS
           
 Map.Function ARCSIN
           
 Map.Function ARCTAN
           
 Map.Function ARCTAN2
           
 Map.Function BEFORE
           
 Map.Function BINARYSEARCH
           
 Map.Function BITWISEAND
           
 Map.Function BITWISECOMPLEMENT
           
 Map.Function BITWISEOR
           
 Map.Function BITWISEXOR
           
protected static Calendar CALENDAR
          Calendar instance (shared) to be used for date/time calculation with time zones.
 Map.Function CAST
           
 Map.Function CEIL
           
 Map.Function CHARAT
           
 Map.Function CHARFOR
           
 Map.Function CHARLIST
           
 Map.Function CHGDAYS
           
 Map.Function CHGHOURS
           
 Map.Function CHGMINS
           
 Map.Function CHGMONTHS
           
 Map.Function CHGMSECS
           
 Map.Function CHGSECS
           
 Map.Function CHGYEARS
           
 Map.Function COLLAPSEWHITESPACE
           
 Map.Function COMPARE
           
 Map.Function CONCAT
           
 Map.Function CONTAINS
           
 Map.Function CONVERTDATE
           
 Map.Function COS
           
 Map.Function CRC32
           
 Map.Function DATE2MSECS
           
 Map.Function DATEFROMSTRING
           
 Map.Function DATETOSTRING
           
 Map.Function DATETOSTRINGTZ
           
 Map.Function DELSUBSTRING
           
 Map.Function DESERIALIZE
           
 Map.Function DIFFERENCE
           
 Map.Function DIVIDE
           
 Map.Function E
           
 Map.Function ENDSWITH
           
 Map.Function EQUALS
           
 Map.Function EQUALSIGNORECASE
           
 Map.Function EVEN
           
 Map.Function EXISTS
           
 Map.Function EXP
           
 Map.Function FIRST
           
 Map.Function FLOOR
           
 Map.Function FROMBASE64
           
 Map.Function FROMBLOB
           
 Map.Function FROMBYTES
           
 Map.Function FROMCLOB
           
 Map.Function FROMHEX
           
 Map.Function FROMSTRING
           
 Map.Function GETBYTES
           
 Map.Function GETCLIENTPROPERTY
           
 Map.Function GETCLIENTPROPERTYKEYS
           
 Map.Function GETCOMMENTS
           
 Map.Function GETDAYS
           
 Map.Function GETHOURS
           
 Map.Function GETJVMPROPERTY
           
 Map.Function GETMINS
           
 Map.Function GETMONTHS
           
 Map.Function GETMSECS
           
 Map.Function GETNSPREFIX
           
 Map.Function GETNSPREFIXES
           
 Map.Function GETNSURI
           
 Map.Function GETNSURIS
           
 Map.Function GETPI
           
 Map.Function GETPIKEYS
           
 Map.Function GETSECS
           
 Map.Function GETTIMEZONEID
           
 Map.Function GETTRANSFORMPROPERTY
           
 Map.Function GETYEARS
           
 Map.Function GREATERTHAN
           
 Map.Function GREATERTHANOREQUAL
           
 Map.Function GZIP
           
 Map.Function IF
           
 Map.Function IFEXISTS
           
 Map.Function INDEXOF
           
 Map.Function INSERT
           
 Map.Function INSERTINDEX
           
 Map.Function INSTANCE
           
 Map.Function INTERSECTION
           
 Map.Function KEEPALPHA
           
 Map.Function KEEPALPHANUMERIC
           
 Map.Function KEEPNUMERIC
           
 Map.Function LAST
           
 Map.Function LASTINDEXOF
           
 Map.Function LASTPOSITIONOF
           
 Map.Function LENGTH
           
 Map.Function LESSTHAN
           
 Map.Function LESSTHANOREQUAL
           
 Map.Function LOG
           
 Map.Function LOGEVENT
           
 Map.Function MATCHES
           
 Map.Function MAX
           
 Map.Function MAXLIST
           
 Map.Function MIN
           
 Map.Function MINLIST
           
 Map.Function MOD
           
 Map.Function MULTIPLY
           
 Map.Function NOT
           
 Map.Function NOTEQUALS
           
 Map.Function NOTEXISTS
           
 Map.Function NOW
           
 Map.Function ODD
           
static List ONLY_NULL_LIST
           
 Map.Function OR
           
 Map.Function OR3
           
 Map.Function OR4
           
 Map.Function PAD
           
 Map.Function PARENT
           
 Map.Function PI
           
 Map.Function POSITIONOF
           
 Map.Function POW
           
 Map.Function PRODUCT
           
 Map.Function PUTCLIENTPROPERTY
           
 Map.Function PUTJVMPROPERTY
           
 Map.Function PUTPI
           
 Map.Function PUTTRANSFORMPROPERTY
           
 Map.Function RANDOM
           
 Map.Function REMOVE
           
 Map.Function REMOVECLIENTPROPERTY
           
 Map.Function REMOVECOMMENT
           
 Map.Function REMOVEINDEX
           
 Map.Function REMOVENSPREFIX
           
 Map.Function REMOVENSURI
           
 Map.Function REMOVEPI
           
 Map.Function REPLACEALL
           
 Map.Function REPLACECHAR
           
 Map.Function REPLACEFIRST
           
 Map.Function REPLACEWHITESPACE
           
 Map.Function REVERSE
           
 Map.Function ROOT
           
 Map.Function ROTATE
           
 Map.Function ROUND
           
 Map.Function SERIALIZE
           
 Map.Function SETDOCTYPENAME
           
 Map.Function SETDOCTYPEPUBLICID
           
 Map.Function SETDOCTYPESYSTEMID
           
 Map.Function SETNONAMESPACESCHEMALOCATION
           
 Map.Function SETSCHEMALOCATION
           
 Map.Function SETTIMEZONE
           
 Map.Function SHUFFLE
           
 Map.Function SIN
           
 Map.Function SIZE
           
 Map.Function SORT
           
 Map.Function SPLIT
           
 Map.Function SQRT
           
 Map.Function STARTSWITH
           
 Map.Function SUBLIST
           
 Map.Function SUBSTRING
           
 Map.Function SUBTRACT
           
 Map.Function SUM
           
 Map.Function TAN
           
protected static TimeZone TIME_ZONE_GMT
           
 Map.Function TOBASE64
           
 Map.Function TOBLOB
           
 Map.Function TOBYTES
           
 Map.Function TOCLOB
           
 Map.Function TODEGREES
           
 Map.Function TOHEX
           
 Map.Function TOLOWERCASE
           
 Map.Function TORADIANS
           
 Map.Function TOSTRING
           
 Map.Function TOUPPERCASE
           
 Map.Function TRIM
           
 Map.Function UNGZIP
           
 Map.Function UNION
           
 Map.Function UNPAD
           
 Map.Function UNZIP
           
 Map.Function WRAP
           
 Map.Function XOR
           
 Map.Function XPATH
           
 Map.Function ZIP
           
 
Constructor Summary
protected Map()
           
 
Method Summary
protected  void appendObject(StringBuffer sb, Object obj)
           
protected  void appendReturnObject(StringBuffer sb, Object obj)
           
protected  boolean booleanOrValue(Object obj)
           
protected  List combinations(Object[] in)
           
protected  Object[][] createInArr(Iterator it, Object[] data)
           
protected  LogEntry createLogEntry(String function, Object returnValue)
           
protected  LogEntry createLogEntry(String function, Object returnValue, Object param1)
           
protected  LogEntry createLogEntry(String function, Object returnValue, Object param1, Object param2)
           
protected  LogEntry createLogEntry(String function, Object returnValue, Object param1, Object param2, Object param3)
           
protected  LogEntry createLogEntry(String function, Object returnValue, Object param1, Object param2, Object param3, Object param4)
           
protected  void createOutArr(Object[][] tmp, List[] out, Element[] definingElementDecl)
           
protected  void createOutArr(Object[] tmp, List out, Element definingElementDecl)
           
protected  Object dateTimeAdder(String funcName, Object dateObj, int field, Integer value, DateDataType type)
           
protected  Integer dateTimeGetter(String funcName, Object dateObj, int field)
           
protected  Object filter(Filter filter, Object[] inArr, Object in)
           
protected  Object filter(String filterName, Object[] inArr, Object in)
           
 Number functionAbs(Number arg)
           
 Number functionAdd(Number arg1, Number arg2)
           
 ComplexDataObject functionAddComment(ComplexDataObject obj, String comment)
           
 ComplexDataObject functionAddNs(ComplexDataObject obj, String prefix, String uri)
           
 Object functionAdjustTimeZone(Object dateObj, String timeZoneId, DateDataType type)
           
 Long functionAdler32(byte[] arr)
           
 Boolean functionAfter(Date obj1, Date obj2)
           
 ComplexDataObject functionAncestor(ComplexDataObject obj, Integer levels)
           
 Boolean functionAnd(Boolean obj1, Boolean obj2)
           
 Boolean functionAnd3(Boolean obj1, Boolean obj2, Boolean obj3)
           
 Boolean functionAnd4(Boolean obj1, Boolean obj2, Boolean obj3, Boolean obj4)
           
 Double functionArcCos(Double obj1)
           
 Double functionArcSin(Double obj1)
           
 Double functionArcTan(Double obj1)
           
 Double functionArcTan2(Double obj1, Double obj2)
           
 Boolean functionBefore(Date obj1, Date obj2)
           
 Integer functionBinarySearch(List l, Object key)
           
 Number functionBitwiseAnd(Number arg1, Number arg2)
           
 Number functionBitwiseComplement(Number arg)
           
 Number functionBitwiseOr(Number arg1, Number arg2)
           
 Number functionBitwiseXor(Number arg1, Number arg2)
           
 Object functionCast(Object arg, DataType type)
           
 Long functionCeil(Double obj1)
           
 Character functionCharAt(String str, Integer obj1)
           
 Character functionCharFor(Integer obj1)
           
 Object functionChgDays(Object dateObj, Integer days, DateDataType type)
           
 Object functionChgHours(Object dateObj, Integer hours, DateDataType type)
           
 Object functionChgMins(Object dateObj, Integer mins, DateDataType type)
           
 Object functionChgMonths(Object dateObj, Integer months, DateDataType type)
           
 Object functionChgMsecs(Object dateObj, Integer msecs, DateDataType type)
           
 Object functionChgSecs(Object dateObj, Integer secs, DateDataType type)
           
 Object functionChgYears(Object dateObj, Integer years, DateDataType type)
           
 String functionCollapseWhitespace(String str)
           
 Integer functionCompare(Object obj1, Object obj2)
           
 String functionConcat(String obj1, String obj2)
           
 Boolean functionContains(List l, Object obj)
           
 Object functionConvertDate(Object obj, DateDataType type)
           
 Double functionCos(Double obj1)
           
 Long functionCRC32(byte[] arr)
           
 Long functionDate2Msecs(Object dateObj)
           
 Date functionDateFromString(String str, String pattern)
           
 String functionDateToString(Date obj, String pattern)
           
 String functionDateToStringTZ(Date obj, String pattern, String timeZoneId)
           
 String functionDelSubstring(String str, Integer index1, Integer index2)
           
 Object functionDeserialize(byte[] arr)
           
 List functionDifference(List l1, List l2)
           
 Number functionDivide(Number arg1, Number arg2)
           
 Double functionE()
           
 Boolean functionEndsWith(String obj1, String obj2)
           
 Boolean functionEquals(Object obj1, Object obj2)
           
 Boolean functionEqualsIgnoreCase(String obj1, String obj2)
           
 List functionEven(List l)
           
 Boolean functionExists(Object obj)
           
 Double functionExp(Double obj1)
           
 Object functionFirst(List l)
           
 Long functionFloor(Double obj1)
           
 byte[] functionFromBase64(String str)
           
 byte[] functionFromBlob(Blob blob)
           
 String functionFromBytes(byte[] arr, String charSetName)
           
 String functionFromClob(Clob clob)
           
 byte[] functionFromHex(String str)
           
 Object functionFromString(String str, DataType type)
           
 byte[] functionGetBytes(String str, String charSetName)
          Deprecated. Use TOBYTES function instead.
 Object functionGetClientProperty(ComplexDataObject obj, Object key)
           
 Object[] functionGetClientPropertyKeys(ComplexDataObject obj)
           
 String[] functionGetComments(ComplexDataObject obj)
           
 Integer functionGetDays(Object dateObj)
           
 Integer functionGetHours(Object dateObj)
           
 String functionGetJvmProperty(String key)
           
 Integer functionGetMins(Object dateObj)
           
 Integer functionGetMonths(Object dateObj)
           
 Integer functionGetMsecs(Object dateObj)
           
 String functionGetNsPrefix(ComplexDataObject obj, String uri)
           
 String[] functionGetNsPrefixes(ComplexDataObject obj)
           
 String functionGetNsUri(ComplexDataObject obj, String prefix)
           
 String[] functionGetNsUris(ComplexDataObject obj)
           
 String functionGetPi(ComplexDataObject obj, String key)
           
 String[] functionGetPiKeys(ComplexDataObject obj)
           
 Integer functionGetSecs(Object dateObj)
           
 String functionGetTimeZoneId(Object dateObj)
           
 Object functionGetTransformProperty(Object key, DataType type)
           
 Integer functionGetYears(Object dateObj)
           
 Boolean functionGreaterThan(Number arg1, Number arg2)
           
 Boolean functionGreaterThanOrEqual(Number arg1, Number arg2)
           
 byte[] functionGzip(byte[] arr)
           
 Object functionIf(Boolean b, Object obj1, Object obj2, DataType type)
           
 Object functionIfExists(Object obj, Object obj1, Object obj2, DataType type)
           
 Integer functionIndexOf(String obj1, String obj2)
           
 List functionInsert(List l, Object obj)
           
 List functionInsertIndex(List l, Object obj, Integer i)
           
 Object functionInstance(List l, Integer index)
           
 List functionIntersection(List l1, List l2)
           
 String functionKeepAlpha(String str)
           
 String functionKeepAlphaNumeric(String str)
           
 String functionKeepNumeric(String str)
           
 Object functionLast(List l)
           
 Integer functionLastIndexOf(String obj1, String obj2)
           
 Integer functionLastPositionOf(List l, Object obj)
           
 Integer functionLength(String str)
           
 Boolean functionLessThan(Number arg1, Number arg2)
           
 Boolean functionLessThanOrEqual(Number arg1, Number arg2)
           
 Double functionLog(Double obj1)
           
 ComplexDataObject functionLogEvent(ComplexDataObject obj, String msg, String loggerName, String levelName)
           
 Boolean functionMatches(String obj1, String obj2)
           
 Number functionMax(Number arg1, Number arg2)
           
 Object functionMaxList(List l)
           
 Number functionMin(Number arg1, Number arg2)
           
 Object functionMinList(List l)
           
 Number functionMod(Number arg1, Number arg2)
           
 Number functionMultiply(Number arg1, Number arg2)
           
 Boolean functionNot(Boolean b)
           
 Boolean functionNotEquals(Object obj1, Object obj2)
           
 Boolean functionNotExists(Object obj)
           
 Date functionNow()
           
 List functionOdd(List l)
           
 Boolean functionOr(Boolean obj1, Boolean obj2)
           
 Boolean functionOr3(Boolean obj1, Boolean obj2, Boolean obj3)
           
 Boolean functionOr4(Boolean obj1, Boolean obj2, Boolean obj3, Boolean obj4)
           
 String functionPad(String original, String pad, Integer size, Boolean left)
           
 ComplexDataObject functionParent(ComplexDataObject obj)
           
 Double functionPi()
           
 Integer functionPositionOf(List l, Object obj)
           
 Number functionPow(Number arg1, Number arg2)
           
 Number functionProduct(List l)
           
 ComplexDataObject functionPutClientProperty(ComplexDataObject obj, Object key, Object value)
           
 ComplexDataObject functionPutJvmProperty(ComplexDataObject obj, String key, String value)
           
 ComplexDataObject functionPutPi(ComplexDataObject obj, String key, String value)
           
 ComplexDataObject functionPutTransformProperty(ComplexDataObject obj, Object key, Object value)
           
 Double functionRandom()
           
 List functionRemove(List l, Object obj)
           
 ComplexDataObject functionRemoveClientProperty(ComplexDataObject obj, Object key)
           
 ComplexDataObject functionRemoveComment(ComplexDataObject obj, String comment)
           
 List functionRemoveIndex(List l, Integer i)
           
 ComplexDataObject functionRemoveNsPrefix(ComplexDataObject obj, String prefix)
           
 ComplexDataObject functionRemoveNsUri(ComplexDataObject obj, String uri)
           
 ComplexDataObject functionRemovePi(ComplexDataObject obj, String key)
           
 String functionReplaceAll(String str, String regex, String replacement)
           
 String functionReplaceChar(String str, Character ch1, Character ch2)
           
 String functionReplaceFirst(String str, String regex, String replacement)
           
 String functionReplaceWhitespace(String str)
           
 List functionReverse(List l)
           
 ComplexDataObject functionRoot(ComplexDataObject obj)
           
 List functionRotate(List l, Integer distance)
           
 Long functionRound(Double obj1)
           
 byte[] functionSerialize(Object obj)
           
 ComplexDataObject functionSetDocTypeName(ComplexDataObject obj, String value)
           
 ComplexDataObject functionSetDocTypePublicId(ComplexDataObject obj, String value)
           
 ComplexDataObject functionSetDocTypeSystemId(ComplexDataObject obj, String value)
           
 ComplexDataObject functionSetNoNamespaceSchemaLocation(ComplexDataObject obj, String value)
           
 ComplexDataObject functionSetSchemaLocation(ComplexDataObject obj, String value)
           
 Object functionSetTimeZone(Object dateObj, String timeZoneId, DateDataType type)
           
 List functionShuffle(List l)
           
 Double functionSin(Double obj1)
           
 Integer functionSize(List l)
           
 List functionSort(List l)
           
 List functionSplit(String str, String regex)
           
 Number functionSqrt(Number arg)
           
 Boolean functionStartsWith(String obj1, String obj2)
           
 List functionSubList(List l, Integer index1, Integer index2)
           
 String functionSubstring(String str, Integer index1, Integer index2)
           
 Number functionSubtract(Number arg1, Number arg2)
           
 Number functionSum(List l)
           
 Double functionTan(Double obj1)
           
 String functionToBase64(byte[] arr)
           
 Blob functionToBlob(byte[] arr)
           
 byte[] functionToBytes(String str, String charSetName)
           
 List functionToCharList(String str)
           
 Clob functionToClob(String str)
           
 Double functionToDegrees(Double obj1)
           
 String functionToHex(byte[] arr)
           
 String functionToLowerCase(String str)
           
 Double functionToRadians(Double obj1)
           
 String functionToString(Object obj)
           
 String functionToUpperCase(String str)
           
 String functionTrim(String str)
           
 byte[] functionUngzip(byte[] arr)
           
 List functionUnion(List l1, List l2)
           
 String functionUnpad(String original, String pad, Integer size, Boolean left)
           
 byte[] functionUnzip(byte[] arr)
           
 String[] functionWrap(String str, Integer columns, Boolean wrapLongWords)
           
 Boolean functionXor(Boolean obj1, Boolean obj2)
           
 Object functionXPath(IOXPath xpath, ComplexDataObject d, DataType type)
           
 byte[] functionZip(byte[] arr, Integer level)
           
 Logger getLog()
          Returns the static singleton log4j Logger used to log messages for this object.
protected  Set getMaps()
           
 HashMap getProperties()
          Sets the properties to be used for this object.
protected  Object hashtable(Map map, Object in, Object def)
           
protected  Object[][] multiTransform(Transform transform, Object[] data, Element[] definingElementDecl)
           
protected  Number newNumber(Class a, Class b, double value)
           
protected  Number newNumber(Class a, Number value)
           
protected  List nullList(List l)
           
static String[] parametersAddComment()
           
static String[] parametersAddNs()
           
static String[] parametersAdjustTimeZone()
           
static String[] parametersAncestor()
           
static String[] parametersBinarySearch()
           
static String[] parametersCharAt()
           
static String[] parametersChgDays()
           
static String[] parametersChgHours()
           
static String[] parametersChgMins()
           
static String[] parametersChgMonths()
           
static String[] parametersChgMsecs()
           
static String[] parametersChgSecs()
           
static String[] parametersChgYears()
           
static String[] parametersContains()
           
static String[] parametersDateFromString()
           
static String[] parametersDateToString()
           
static String[] parametersDateToStringTZ()
           
static String[] parametersDelSubstring()
           
static String[] parametersEndsWith()
           
static String[] parametersFromBytes()
           
static String[] parametersGetBytes()
          Deprecated. Use TOBYTES function instead.
static String[] parametersGetClientProperty()
           
static String[] parametersGetJvmProperty()
           
static String[] parametersGetNsPrefix()
           
static String[] parametersGetNsUri()
           
static String[] parametersGetPi()
           
static String[] parametersGetTransformProperty()
           
static String[] parametersIf()
           
static String[] parametersIfExists()
           
static String[] parametersIndexOf()
           
static String[] parametersInsert()
           
static String[] parametersInsertIndex()
           
static String[] parametersInstance()
           
static String[] parametersLastIndexOf()
           
static String[] parametersLastPositionOf()
           
static String[] parametersLogEvent()
           
static String[] parametersMatches()
           
static String[] parametersPad()
           
static String[] parametersPositionOf()
           
static String[] parametersPutClientProperty()
           
static String[] parametersPutJvmProperty()
           
static String[] parametersPutPi()
           
static String[] parametersPutTransformProperty()
           
static String[] parametersRemove()
           
static String[] parametersRemoveClientProperty()
           
static String[] parametersRemoveComment()
           
static String[] parametersRemoveIndex()
           
static String[] parametersRemoveNsPrefix()
           
static String[] parametersRemoveNsUri()
           
static String[] parametersRemovePi()
           
static String[] parametersReplaceAll()
           
static String[] parametersReplaceChar()
           
static String[] parametersReplaceFirst()
           
static String[] parametersRotate()
           
static String[] parametersSetDocTypeName()
           
static String[] parametersSetDocTypePublicId()
           
static String[] parametersSetDocTypeSystemId()
           
static String[] parametersSetNoNamespaceSchemaLocation()
           
static String[] parametersSetSchemaLocation()
           
static String[] parametersSetTimeZone()
           
static String[] parametersSplit()
           
static String[] parametersStartsWith()
           
static String[] parametersSubList()
           
static String[] parametersSubstring()
           
static String[] parametersToBytes()
           
static String[] parametersUnpad()
           
static String[] parametersWrap()
           
static String[] parametersXPath()
           
static String[] parametersZip()
           
protected  Date parseDate(String data, String format)
           
protected  void register(Map m)
           
protected  Object resolve(Object obj, String path, boolean init)
           
protected  Object resolve(Object obj, String path, boolean init, boolean simple)
           
protected  void resolveAttribute(ComplexDataObject node, String name, Attribute a, List nodes, String idrefName, boolean init)
           
protected  void resolveElement(ComplexDataObject node, String name, Element e, List nodes, int index, String idrefName, String derivationName, String derivationUri, String substitutionName, String substitutionUri, boolean init)
           
 void setLog(Logger log)
          Sets the logger to be used for this object.
 void setProperties(HashMap properties)
          Sets the properties to be used for this object.
protected  Object stop(StopFilter filter, Object[] inArr, Object in)
           
protected  Object[] transform(Transform transform, Object[] data, int outIndex)
          Deprecated. please use transform(Transform, Object[], int, biz.c24.io.api.data.Element) instead
protected  Object[] transform(Transform transform, Object[] data, int outIndex, Element definingElementDecl)
           
protected  Object value(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALENDAR

protected static final Calendar CALENDAR
Calendar instance (shared) to be used for date/time calculation with time zones. Access/usage must be synchronized.


TIME_ZONE_GMT

protected static final TimeZone TIME_ZONE_GMT

NOW

public final Map.Function NOW

E

public final Map.Function E

PI

public final Map.Function PI

RANDOM

public final Map.Function RANDOM

EVEN

public final Map.Function EVEN

ODD

public final Map.Function ODD

FIRST

public final Map.Function FIRST

LAST

public final Map.Function LAST

SIZE

public final Map.Function SIZE

MINLIST

public final Map.Function MINLIST

MAXLIST

public final Map.Function MAXLIST

SHUFFLE

public final Map.Function SHUFFLE

SORT

public final Map.Function SORT

REVERSE

public final Map.Function REVERSE

SUM

public final Map.Function SUM

PRODUCT

public final Map.Function PRODUCT

TOSTRING

public final Map.Function TOSTRING

EXISTS

public final Map.Function EXISTS

NOTEXISTS

public final Map.Function NOTEXISTS

NOT

public final Map.Function NOT

BITWISECOMPLEMENT

public final Map.Function BITWISECOMPLEMENT

ABS

public final Map.Function ABS

SQRT

public final Map.Function SQRT

EXP

public final Map.Function EXP

CEIL

public final Map.Function CEIL

FLOOR

public final Map.Function FLOOR

LOG

public final Map.Function LOG

ROUND

public final Map.Function ROUND

SIN

public final Map.Function SIN

COS

public final Map.Function COS

TAN

public final Map.Function TAN

ARCSIN

public final Map.Function ARCSIN

ARCCOS

public final Map.Function ARCCOS

ARCTAN

public final Map.Function ARCTAN

TODEGREES

public final Map.Function TODEGREES

TORADIANS

public final Map.Function TORADIANS

LENGTH

public final Map.Function LENGTH

CHARFOR

public final Map.Function CHARFOR

CHARLIST

public final Map.Function CHARLIST

KEEPALPHA

public final Map.Function KEEPALPHA

KEEPALPHANUMERIC

public final Map.Function KEEPALPHANUMERIC

KEEPNUMERIC

public final Map.Function KEEPNUMERIC

TRIM

public final Map.Function TRIM

REPLACEWHITESPACE

public final Map.Function REPLACEWHITESPACE

COLLAPSEWHITESPACE

public final Map.Function COLLAPSEWHITESPACE

TOLOWERCASE

public final Map.Function TOLOWERCASE

TOUPPERCASE

public final Map.Function TOUPPERCASE

SERIALIZE

public final Map.Function SERIALIZE

DESERIALIZE

public final Map.Function DESERIALIZE

CRC32

public final Map.Function CRC32

ADLER32

public final Map.Function ADLER32

UNZIP

public final Map.Function UNZIP

GZIP

public final Map.Function GZIP

UNGZIP

public final Map.Function UNGZIP

TOCLOB

public final Map.Function TOCLOB

FROMCLOB

public final Map.Function FROMCLOB

TOBLOB

public final Map.Function TOBLOB

FROMBLOB

public final Map.Function FROMBLOB

TOBASE64

public final Map.Function TOBASE64

FROMBASE64

public final Map.Function FROMBASE64

TOHEX

public final Map.Function TOHEX

FROMHEX

public final Map.Function FROMHEX

PARENT

public final Map.Function PARENT

ROOT

public final Map.Function ROOT

GETCLIENTPROPERTYKEYS

public final Map.Function GETCLIENTPROPERTYKEYS

GETPIKEYS

public final Map.Function GETPIKEYS

GETNSPREFIXES

public final Map.Function GETNSPREFIXES

GETNSURIS

public final Map.Function GETNSURIS

GETCOMMENTS

public final Map.Function GETCOMMENTS

DATE2MSECS

public final Map.Function DATE2MSECS

GETMSECS

public final Map.Function GETMSECS

GETSECS

public final Map.Function GETSECS

GETMINS

public final Map.Function GETMINS

GETHOURS

public final Map.Function GETHOURS

GETDAYS

public final Map.Function GETDAYS

GETMONTHS

public final Map.Function GETMONTHS

GETYEARS

public final Map.Function GETYEARS

GETTIMEZONEID

public final Map.Function GETTIMEZONEID

INSTANCE

public final Map.Function INSTANCE

CONTAINS

public final Map.Function CONTAINS

POSITIONOF

public final Map.Function POSITIONOF

LASTPOSITIONOF

public final Map.Function LASTPOSITIONOF

INSERT

public final Map.Function INSERT

REMOVE

public final Map.Function REMOVE

REMOVEINDEX

public final Map.Function REMOVEINDEX

UNION

public final Map.Function UNION

DIFFERENCE

public final Map.Function DIFFERENCE

INTERSECTION

public final Map.Function INTERSECTION

BINARYSEARCH

public final Map.Function BINARYSEARCH

ROTATE

public final Map.Function ROTATE

FROMSTRING

public final Map.Function FROMSTRING

DATEFROMSTRING

public final Map.Function DATEFROMSTRING

DATETOSTRING

public final Map.Function DATETOSTRING

EQUALS

public final Map.Function EQUALS

NOTEQUALS

public final Map.Function NOTEQUALS

COMPARE

public final Map.Function COMPARE

BITWISEAND

public final Map.Function BITWISEAND

BITWISEOR

public final Map.Function BITWISEOR

BITWISEXOR

public final Map.Function BITWISEXOR

AND

public final Map.Function AND

AND3

public final Map.Function AND3

AND4

public final Map.Function AND4

OR

public final Map.Function OR

OR3

public final Map.Function OR3

OR4

public final Map.Function OR4

XOR

public final Map.Function XOR

BEFORE

public final Map.Function BEFORE

AFTER

public final Map.Function AFTER

CONVERTDATE

public final Map.Function CONVERTDATE

CAST

public final Map.Function CAST

GREATERTHAN

public final Map.Function GREATERTHAN

GREATERTHANOREQUAL

public final Map.Function GREATERTHANOREQUAL

LESSTHAN

public final Map.Function LESSTHAN

LESSTHANOREQUAL

public final Map.Function LESSTHANOREQUAL

ADD

public final Map.Function ADD

SUBTRACT

public final Map.Function SUBTRACT

MULTIPLY

public final Map.Function MULTIPLY

DIVIDE

public final Map.Function DIVIDE

MOD

public final Map.Function MOD

POW

public final Map.Function POW

MIN

public final Map.Function MIN

MAX

public final Map.Function MAX

ARCTAN2

public final Map.Function ARCTAN2

CONCAT

public final Map.Function CONCAT

STARTSWITH

public final Map.Function STARTSWITH

ENDSWITH

public final Map.Function ENDSWITH

EQUALSIGNORECASE

public final Map.Function EQUALSIGNORECASE

MATCHES

public final Map.Function MATCHES

INDEXOF

public final Map.Function INDEXOF

LASTINDEXOF

public final Map.Function LASTINDEXOF

CHARAT

public final Map.Function CHARAT

SPLIT

public final Map.Function SPLIT

GETBYTES

public final Map.Function GETBYTES

TOBYTES

public final Map.Function TOBYTES

FROMBYTES

public final Map.Function FROMBYTES

ZIP

public final Map.Function ZIP

ANCESTOR

public final Map.Function ANCESTOR

SETSCHEMALOCATION

public final Map.Function SETSCHEMALOCATION

SETNONAMESPACESCHEMALOCATION

public final Map.Function SETNONAMESPACESCHEMALOCATION

SETDOCTYPENAME

public final Map.Function SETDOCTYPENAME

SETDOCTYPEPUBLICID

public final Map.Function SETDOCTYPEPUBLICID

SETDOCTYPESYSTEMID

public final Map.Function SETDOCTYPESYSTEMID

GETCLIENTPROPERTY

public final Map.Function GETCLIENTPROPERTY

GETJVMPROPERTY

public final Map.Function GETJVMPROPERTY

GETTRANSFORMPROPERTY

public final Map.Function GETTRANSFORMPROPERTY

REMOVECLIENTPROPERTY

public final Map.Function REMOVECLIENTPROPERTY

GETPI

public final Map.Function GETPI

REMOVEPI

public final Map.Function REMOVEPI

REMOVENSPREFIX

public final Map.Function REMOVENSPREFIX

REMOVENSURI

public final Map.Function REMOVENSURI

GETNSPREFIX

public final Map.Function GETNSPREFIX

GETNSURI

public final Map.Function GETNSURI

ADDCOMMENT

public final Map.Function ADDCOMMENT

REMOVECOMMENT

public final Map.Function REMOVECOMMENT

SUBLIST

public final Map.Function SUBLIST

INSERTINDEX

public final Map.Function INSERTINDEX

XPATH

public final Map.Function XPATH

DELSUBSTRING

public final Map.Function DELSUBSTRING

REPLACECHAR

public final Map.Function REPLACECHAR

REPLACEALL

public final Map.Function REPLACEALL

SUBSTRING

public final Map.Function SUBSTRING

REPLACEFIRST

public final Map.Function REPLACEFIRST

PUTCLIENTPROPERTY

public final Map.Function PUTCLIENTPROPERTY

PUTJVMPROPERTY

public final Map.Function PUTJVMPROPERTY

PUTTRANSFORMPROPERTY

public final Map.Function PUTTRANSFORMPROPERTY

PUTPI

public final Map.Function PUTPI

WRAP

public final Map.Function WRAP

ADDNS

public final Map.Function ADDNS

SETTIMEZONE

public final Map.Function SETTIMEZONE

ADJUSTTIMEZONE

public final Map.Function ADJUSTTIMEZONE

CHGMSECS

public final Map.Function CHGMSECS

CHGSECS

public final Map.Function CHGSECS

CHGMINS

public final Map.Function CHGMINS

CHGHOURS

public final Map.Function CHGHOURS

CHGDAYS

public final Map.Function CHGDAYS

CHGMONTHS

public final Map.Function CHGMONTHS

CHGYEARS

public final Map.Function CHGYEARS

DATETOSTRINGTZ

public final Map.Function DATETOSTRINGTZ

IF

public final Map.Function IF

IFEXISTS

public final Map.Function IFEXISTS

PAD

public final Map.Function PAD

UNPAD

public final Map.Function UNPAD

LOGEVENT

public final Map.Function LOGEVENT

ONLY_NULL_LIST

public static final List ONLY_NULL_LIST
Constructor Detail

Map

protected Map()
Method Detail

getLog

public Logger getLog()
Returns the static singleton log4j Logger used to log messages for this object. The log returned will be specific to this class.

Care should be taken not to add log4j appenders to the returned Logger object from within a loop since they will never be garbage collected. Since the returned Logger is a static singleton, well written code should leave the Logger in the exact same state they found it. Better still, all Logger configuration should be done via log4j.properties files or static intializers/

Returns:
The logger.

setLog

public void setLog(Logger log)
Sets the logger to be used for this object.

Parameters:
log - The log to receive messages or null to use the default logger named after this class.

getProperties

public HashMap getProperties()
Sets the properties to be used for this object.

Returns:
The properties object which can be access from within the transform via the 'GETTRANSFORMPROPERTY' function.

setProperties

public void setProperties(HashMap properties)
Sets the properties to be used for this object.

Parameters:
properties - The properties object which can be access from within the transform via the 'GETTRANSFORMPROPERTY' function.

register

protected void register(Map m)

getMaps

protected Set getMaps()

parseDate

protected Date parseDate(String data,
                         String format)

resolve

protected Object resolve(Object obj,
                         String path,
                         boolean init)

resolve

protected Object resolve(Object obj,
                         String path,
                         boolean init,
                         boolean simple)

resolveElement

protected void resolveElement(ComplexDataObject node,
                              String name,
                              Element e,
                              List nodes,
                              int index,
                              String idrefName,
                              String derivationName,
                              String derivationUri,
                              String substitutionName,
                              String substitutionUri,
                              boolean init)

resolveAttribute

protected void resolveAttribute(ComplexDataObject node,
                                String name,
                                Attribute a,
                                List nodes,
                                String idrefName,
                                boolean init)

value

protected Object value(Object obj)

combinations

protected List combinations(Object[] in)

createInArr

protected Object[][] createInArr(Iterator it,
                                 Object[] data)

createOutArr

protected void createOutArr(Object[] tmp,
                            List out,
                            Element definingElementDecl)

createOutArr

protected void createOutArr(Object[][] tmp,
                            List[] out,
                            Element[] definingElementDecl)

transform

protected Object[] transform(Transform transform,
                             Object[] data,
                             int outIndex)
                      throws ValidationException
Deprecated. please use transform(Transform, Object[], int, biz.c24.io.api.data.Element) instead

Parameters:
transform -
data -
outIndex -
Returns:
Throws:
ValidationException

transform

protected Object[] transform(Transform transform,
                             Object[] data,
                             int outIndex,
                             Element definingElementDecl)
                      throws ValidationException
Throws:
ValidationException

multiTransform

protected Object[][] multiTransform(Transform transform,
                                    Object[] data,
                                    Element[] definingElementDecl)
                             throws ValidationException
Throws:
ValidationException

filter

protected Object filter(String filterName,
                        Object[] inArr,
                        Object in)
                 throws ValidationException
Throws:
ValidationException

filter

protected Object filter(Filter filter,
                        Object[] inArr,
                        Object in)
                 throws ValidationException
Throws:
ValidationException

stop

protected Object stop(StopFilter filter,
                      Object[] inArr,
                      Object in)
               throws ValidationException
Throws:
ValidationException

hashtable

protected Object hashtable(Map map,
                           Object in,
                           Object def)

functionEven

public List functionEven(List l)

functionOdd

public List functionOdd(List l)

parametersSubList

public static String[] parametersSubList()

functionSubList

public List functionSubList(List l,
                            Integer index1,
                            Integer index2)

parametersInstance

public static String[] parametersInstance()

functionInstance

public Object functionInstance(List l,
                               Integer index)

functionFirst

public Object functionFirst(List l)

functionLast

public Object functionLast(List l)

functionSize

public Integer functionSize(List l)

parametersContains

public static String[] parametersContains()

functionContains

public Boolean functionContains(List l,
                                Object obj)

parametersPositionOf

public static String[] parametersPositionOf()

functionPositionOf

public Integer functionPositionOf(List l,
                                  Object obj)

parametersLastPositionOf

public static String[] parametersLastPositionOf()

functionLastPositionOf

public Integer functionLastPositionOf(List l,
                                      Object obj)

parametersInsert

public static String[] parametersInsert()

functionInsert

public List functionInsert(List l,
                           Object obj)

parametersInsertIndex

public static String[] parametersInsertIndex()

functionInsertIndex

public List functionInsertIndex(List l,
                                Object obj,
                                Integer i)

parametersRemove

public static String[] parametersRemove()

functionRemove

public List functionRemove(List l,
                           Object obj)

parametersRemoveIndex

public static String[] parametersRemoveIndex()

functionRemoveIndex

public List functionRemoveIndex(List l,
                                Integer i)

functionMinList

public Object functionMinList(List l)

functionMaxList

public Object functionMaxList(List l)

functionUnion

public List functionUnion(List l1,
                          List l2)

functionDifference

public List functionDifference(List l1,
                               List l2)

functionIntersection

public List functionIntersection(List l1,
                                 List l2)

functionSort

public List functionSort(List l)

parametersBinarySearch

public static String[] parametersBinarySearch()

functionBinarySearch

public Integer functionBinarySearch(List l,
                                    Object key)

functionReverse

public List functionReverse(List l)

parametersRotate

public static String[] parametersRotate()

functionRotate

public List functionRotate(List l,
                           Integer distance)

functionShuffle

public List functionShuffle(List l)

parametersIf

public static String[] parametersIf()

functionIf

public Object functionIf(Boolean b,
                         Object obj1,
                         Object obj2,
                         DataType type)

parametersIfExists

public static String[] parametersIfExists()

functionIfExists

public Object functionIfExists(Object obj,
                               Object obj1,
                               Object obj2,
                               DataType type)

parametersXPath

public static String[] parametersXPath()

functionXPath

public Object functionXPath(IOXPath xpath,
                            ComplexDataObject d,
                            DataType type)

functionParent

public ComplexDataObject functionParent(ComplexDataObject obj)

functionRoot

public ComplexDataObject functionRoot(ComplexDataObject obj)

parametersAncestor

public static String[] parametersAncestor()

functionAncestor

public ComplexDataObject functionAncestor(ComplexDataObject obj,
                                          Integer levels)

parametersPutClientProperty

public static String[] parametersPutClientProperty()

functionPutClientProperty

public ComplexDataObject functionPutClientProperty(ComplexDataObject obj,
                                                   Object key,
                                                   Object value)

parametersPutJvmProperty

public static String[] parametersPutJvmProperty()

functionPutJvmProperty

public ComplexDataObject functionPutJvmProperty(ComplexDataObject obj,
                                                String key,
                                                String value)

parametersPutTransformProperty

public static String[] parametersPutTransformProperty()

functionPutTransformProperty

public ComplexDataObject functionPutTransformProperty(ComplexDataObject obj,
                                                      Object key,
                                                      Object value)

parametersSetSchemaLocation

public static String[] parametersSetSchemaLocation()

functionSetSchemaLocation

public ComplexDataObject functionSetSchemaLocation(ComplexDataObject obj,
                                                   String value)

parametersSetNoNamespaceSchemaLocation

public static String[] parametersSetNoNamespaceSchemaLocation()

functionSetNoNamespaceSchemaLocation

public ComplexDataObject functionSetNoNamespaceSchemaLocation(ComplexDataObject obj,
                                                              String value)

parametersSetDocTypeName

public static String[] parametersSetDocTypeName()

functionSetDocTypeName

public ComplexDataObject functionSetDocTypeName(ComplexDataObject obj,
                                                String value)

parametersSetDocTypePublicId

public static String[] parametersSetDocTypePublicId()

functionSetDocTypePublicId

public ComplexDataObject functionSetDocTypePublicId(ComplexDataObject obj,
                                                    String value)

parametersSetDocTypeSystemId

public static String[] parametersSetDocTypeSystemId()

functionSetDocTypeSystemId

public ComplexDataObject functionSetDocTypeSystemId(ComplexDataObject obj,
                                                    String value)

parametersGetClientProperty

public static String[] parametersGetClientProperty()

functionGetClientProperty

public Object functionGetClientProperty(ComplexDataObject obj,
                                        Object key)

parametersGetJvmProperty

public static String[] parametersGetJvmProperty()

functionGetJvmProperty

public String functionGetJvmProperty(String key)

parametersGetTransformProperty

public static String[] parametersGetTransformProperty()

functionGetTransformProperty

public Object functionGetTransformProperty(Object key,
                                           DataType type)

parametersRemoveClientProperty

public static String[] parametersRemoveClientProperty()

functionRemoveClientProperty

public ComplexDataObject functionRemoveClientProperty(ComplexDataObject obj,
                                                      Object key)

functionGetClientPropertyKeys

public Object[] functionGetClientPropertyKeys(ComplexDataObject obj)

parametersPutPi

public static String[] parametersPutPi()

functionPutPi

public ComplexDataObject functionPutPi(ComplexDataObject obj,
                                       String key,
                                       String value)

parametersGetPi

public static String[] parametersGetPi()

functionGetPi

public String functionGetPi(ComplexDataObject obj,
                            String key)

parametersRemovePi

public static String[] parametersRemovePi()

functionRemovePi

public ComplexDataObject functionRemovePi(ComplexDataObject obj,
                                          String key)

functionGetPiKeys

public String[] functionGetPiKeys(ComplexDataObject obj)

parametersAddNs

public static String[] parametersAddNs()

functionAddNs

public ComplexDataObject functionAddNs(ComplexDataObject obj,
                                       String prefix,
                                       String uri)

parametersRemoveNsPrefix

public static String[] parametersRemoveNsPrefix()

functionRemoveNsPrefix

public ComplexDataObject functionRemoveNsPrefix(ComplexDataObject obj,
                                                String prefix)

parametersRemoveNsUri

public static String[] parametersRemoveNsUri()

functionRemoveNsUri

public ComplexDataObject functionRemoveNsUri(ComplexDataObject obj,
                                             String uri)

parametersGetNsUri

public static String[] parametersGetNsUri()

functionGetNsUri

public String functionGetNsUri(ComplexDataObject obj,
                               String prefix)

parametersGetNsPrefix

public static String[] parametersGetNsPrefix()

functionGetNsPrefix

public String functionGetNsPrefix(ComplexDataObject obj,
                                  String uri)

functionGetNsPrefixes

public String[] functionGetNsPrefixes(ComplexDataObject obj)

functionGetNsUris

public String[] functionGetNsUris(ComplexDataObject obj)

parametersAddComment

public static String[] parametersAddComment()

functionAddComment

public ComplexDataObject functionAddComment(ComplexDataObject obj,
                                            String comment)

parametersRemoveComment

public static String[] parametersRemoveComment()

functionRemoveComment

public ComplexDataObject functionRemoveComment(ComplexDataObject obj,
                                               String comment)

functionGetComments

public String[] functionGetComments(ComplexDataObject obj)

functionFromString

public Object functionFromString(String str,
                                 DataType type)

functionToString

public String functionToString(Object obj)

parametersDateFromString

public static String[] parametersDateFromString()

functionDateFromString

public Date functionDateFromString(String str,
                                   String pattern)

parametersDateToString

public static String[] parametersDateToString()

functionDateToString

public String functionDateToString(Date obj,
                                   String pattern)

parametersDateToStringTZ

public static String[] parametersDateToStringTZ()

functionDateToStringTZ

public String functionDateToStringTZ(Date obj,
                                     String pattern,
                                     String timeZoneId)

functionExists

public Boolean functionExists(Object obj)

functionNotExists

public Boolean functionNotExists(Object obj)

functionEquals

public Boolean functionEquals(Object obj1,
                              Object obj2)

functionNotEquals

public Boolean functionNotEquals(Object obj1,
                                 Object obj2)

functionCompare

public Integer functionCompare(Object obj1,
                               Object obj2)

functionNot

public Boolean functionNot(Boolean b)

functionBitwiseAnd

public Number functionBitwiseAnd(Number arg1,
                                 Number arg2)

functionBitwiseOr

public Number functionBitwiseOr(Number arg1,
                                Number arg2)

functionBitwiseXor

public Number functionBitwiseXor(Number arg1,
                                 Number arg2)

functionBitwiseComplement

public Number functionBitwiseComplement(Number arg)

functionAnd

public Boolean functionAnd(Boolean obj1,
                           Boolean obj2)

functionAnd3

public Boolean functionAnd3(Boolean obj1,
                            Boolean obj2,
                            Boolean obj3)

functionAnd4

public Boolean functionAnd4(Boolean obj1,
                            Boolean obj2,
                            Boolean obj3,
                            Boolean obj4)

functionOr

public Boolean functionOr(Boolean obj1,
                          Boolean obj2)

functionOr3

public Boolean functionOr3(Boolean obj1,
                           Boolean obj2,
                           Boolean obj3)

functionOr4

public Boolean functionOr4(Boolean obj1,
                           Boolean obj2,
                           Boolean obj3,
                           Boolean obj4)

functionXor

public Boolean functionXor(Boolean obj1,
                           Boolean obj2)

functionBefore

public Boolean functionBefore(Date obj1,
                              Date obj2)

functionAfter

public Boolean functionAfter(Date obj1,
                             Date obj2)

functionNow

public Date functionNow()

functionConvertDate

public Object functionConvertDate(Object obj,
                                  DateDataType type)

parametersSetTimeZone

public static String[] parametersSetTimeZone()

functionSetTimeZone

public Object functionSetTimeZone(Object dateObj,
                                  String timeZoneId,
                                  DateDataType type)

parametersAdjustTimeZone

public static String[] parametersAdjustTimeZone()

functionAdjustTimeZone

public Object functionAdjustTimeZone(Object dateObj,
                                     String timeZoneId,
                                     DateDataType type)

functionDate2Msecs

public Long functionDate2Msecs(Object dateObj)

parametersChgMsecs

public static String[] parametersChgMsecs()

functionChgMsecs

public Object functionChgMsecs(Object dateObj,
                               Integer msecs,
                               DateDataType type)

functionGetMsecs

public Integer functionGetMsecs(Object dateObj)

parametersChgSecs

public static String[] parametersChgSecs()

functionChgSecs

public Object functionChgSecs(Object dateObj,
                              Integer secs,
                              DateDataType type)

functionGetSecs

public Integer functionGetSecs(Object dateObj)

parametersChgMins

public static String[] parametersChgMins()

functionChgMins

public Object functionChgMins(Object dateObj,
                              Integer mins,
                              DateDataType type)

functionGetMins

public Integer functionGetMins(Object dateObj)

parametersChgHours

public static String[] parametersChgHours()

functionChgHours

public Object functionChgHours(Object dateObj,
                               Integer hours,
                               DateDataType type)

functionGetHours

public Integer functionGetHours(Object dateObj)

parametersChgDays

public static String[] parametersChgDays()

functionChgDays

public Object functionChgDays(Object dateObj,
                              Integer days,
                              DateDataType type)

functionGetDays

public Integer functionGetDays(Object dateObj)

parametersChgMonths

public static String[] parametersChgMonths()

functionChgMonths

public Object functionChgMonths(Object dateObj,
                                Integer months,
                                DateDataType type)

functionGetMonths

public Integer functionGetMonths(Object dateObj)

parametersChgYears

public static String[] parametersChgYears()

functionChgYears

public Object functionChgYears(Object dateObj,
                               Integer years,
                               DateDataType type)

functionGetYears

public Integer functionGetYears(Object dateObj)

functionGetTimeZoneId

public String functionGetTimeZoneId(Object dateObj)

dateTimeAdder

protected Object dateTimeAdder(String funcName,
                               Object dateObj,
                               int field,
                               Integer value,
                               DateDataType type)

dateTimeGetter

protected Integer dateTimeGetter(String funcName,
                                 Object dateObj,
                                 int field)

functionCast

public Object functionCast(Object arg,
                           DataType type)

functionGreaterThan

public Boolean functionGreaterThan(Number arg1,
                                   Number arg2)

functionGreaterThanOrEqual

public Boolean functionGreaterThanOrEqual(Number arg1,
                                          Number arg2)

functionLessThan

public Boolean functionLessThan(Number arg1,
                                Number arg2)

functionLessThanOrEqual

public Boolean functionLessThanOrEqual(Number arg1,
                                       Number arg2)

functionSum

public Number functionSum(List l)

functionProduct

public Number functionProduct(List l)

functionAdd

public Number functionAdd(Number arg1,
                          Number arg2)

functionSubtract

public Number functionSubtract(Number arg1,
                               Number arg2)

functionMultiply

public Number functionMultiply(Number arg1,
                               Number arg2)

functionDivide

public Number functionDivide(Number arg1,
                             Number arg2)

functionMod

public Number functionMod(Number arg1,
                          Number arg2)

functionAbs

public Number functionAbs(Number arg)

functionPow

public Number functionPow(Number arg1,
                          Number arg2)

functionSqrt

public Number functionSqrt(Number arg)

functionMin

public Number functionMin(Number arg1,
                          Number arg2)

functionMax

public Number functionMax(Number arg1,
                          Number arg2)

functionExp

public Double functionExp(Double obj1)

functionCeil

public Long functionCeil(Double obj1)

functionFloor

public Long functionFloor(Double obj1)

functionLog

public Double functionLog(Double obj1)

functionRound

public Long functionRound(Double obj1)

functionSin

public Double functionSin(Double obj1)

functionCos

public Double functionCos(Double obj1)

functionTan

public Double functionTan(Double obj1)

functionArcSin

public Double functionArcSin(Double obj1)

functionArcCos

public Double functionArcCos(Double obj1)

functionArcTan

public Double functionArcTan(Double obj1)

functionArcTan2

public Double functionArcTan2(Double obj1,
                              Double obj2)

functionToDegrees

public Double functionToDegrees(Double obj1)

functionToRadians

public Double functionToRadians(Double obj1)

functionE

public Double functionE()

functionPi

public Double functionPi()

functionRandom

public Double functionRandom()

parametersPad

public static String[] parametersPad()

functionPad

public String functionPad(String original,
                          String pad,
                          Integer size,
                          Boolean left)

parametersUnpad

public static String[] parametersUnpad()

functionUnpad

public String functionUnpad(String original,
                            String pad,
                            Integer size,
                            Boolean left)

parametersLogEvent

public static String[] parametersLogEvent()

functionLogEvent

public ComplexDataObject functionLogEvent(ComplexDataObject obj,
                                          String msg,
                                          String loggerName,
                                          String levelName)

functionConcat

public String functionConcat(String obj1,
                             String obj2)

parametersStartsWith

public static String[] parametersStartsWith()

functionStartsWith

public Boolean functionStartsWith(String obj1,
                                  String obj2)

parametersEndsWith

public static String[] parametersEndsWith()

functionEndsWith

public Boolean functionEndsWith(String obj1,
                                String obj2)

functionEqualsIgnoreCase

public Boolean functionEqualsIgnoreCase(String obj1,
                                        String obj2)

parametersMatches

public static String[] parametersMatches()

functionMatches

public Boolean functionMatches(String obj1,
                               String obj2)

parametersIndexOf

public static String[] parametersIndexOf()

functionIndexOf

public Integer functionIndexOf(String obj1,
                               String obj2)

parametersLastIndexOf

public static String[] parametersLastIndexOf()

functionLastIndexOf

public Integer functionLastIndexOf(String obj1,
                                   String obj2)

functionLength

public Integer functionLength(String str)

functionCharFor

public Character functionCharFor(Integer obj1)

parametersCharAt

public static String[] parametersCharAt()

functionCharAt

public Character functionCharAt(String str,
                                Integer obj1)

functionToCharList

public List functionToCharList(String str)

parametersSplit

public static String[] parametersSplit()

functionSplit

public List functionSplit(String str,
                          String regex)

parametersReplaceChar

public static String[] parametersReplaceChar()

functionReplaceChar

public String functionReplaceChar(String str,
                                  Character ch1,
                                  Character ch2)

parametersReplaceAll

public static String[] parametersReplaceAll()

functionReplaceAll

public String functionReplaceAll(String str,
                                 String regex,
                                 String replacement)

functionKeepAlpha

public String functionKeepAlpha(String str)

functionKeepAlphaNumeric

public String functionKeepAlphaNumeric(String str)

functionKeepNumeric

public String functionKeepNumeric(String str)

parametersReplaceFirst

public static String[] parametersReplaceFirst()

functionReplaceFirst

public String functionReplaceFirst(String str,
                                   String regex,
                                   String replacement)

parametersDelSubstring

public static String[] parametersDelSubstring()

functionDelSubstring

public String functionDelSubstring(String str,
                                   Integer index1,
                                   Integer index2)

parametersSubstring

public static String[] parametersSubstring()

functionSubstring

public String functionSubstring(String str,
                                Integer index1,
                                Integer index2)

functionTrim

public String functionTrim(String str)

functionReplaceWhitespace

public String functionReplaceWhitespace(String str)

functionCollapseWhitespace

public String functionCollapseWhitespace(String str)

functionToLowerCase

public String functionToLowerCase(String str)

functionToUpperCase

public String functionToUpperCase(String str)

parametersWrap

public static String[] parametersWrap()

functionWrap

public String[] functionWrap(String str,
                             Integer columns,
                             Boolean wrapLongWords)

parametersGetBytes

public static String[] parametersGetBytes()
Deprecated. Use TOBYTES function instead.


functionGetBytes

public byte[] functionGetBytes(String str,
                               String charSetName)
Deprecated. Use TOBYTES function instead.


parametersToBytes

public static String[] parametersToBytes()

functionToBytes

public byte[] functionToBytes(String str,
                              String charSetName)

parametersFromBytes

public static String[] parametersFromBytes()

functionFromBytes

public String functionFromBytes(byte[] arr,
                                String charSetName)

functionSerialize

public byte[] functionSerialize(Object obj)

functionDeserialize

public Object functionDeserialize(byte[] arr)

functionCRC32

public Long functionCRC32(byte[] arr)

functionAdler32

public Long functionAdler32(byte[] arr)

parametersZip

public static String[] parametersZip()

functionZip

public byte[] functionZip(byte[] arr,
                          Integer level)

functionUnzip

public byte[] functionUnzip(byte[] arr)

functionGzip

public byte[] functionGzip(byte[] arr)

functionUngzip

public byte[] functionUngzip(byte[] arr)

functionToBase64

public String functionToBase64(byte[] arr)

functionFromBase64

public byte[] functionFromBase64(String str)

functionToHex

public String functionToHex(byte[] arr)

functionFromHex

public byte[] functionFromHex(String str)

functionToClob

public Clob functionToClob(String str)

functionFromClob

public String functionFromClob(Clob clob)

functionToBlob

public Blob functionToBlob(byte[] arr)

functionFromBlob

public byte[] functionFromBlob(Blob blob)

newNumber

protected Number newNumber(Class a,
                           Class b,
                           double value)

newNumber

protected Number newNumber(Class a,
                           Number value)

nullList

protected List nullList(List l)

booleanOrValue

protected boolean booleanOrValue(Object obj)

createLogEntry

protected LogEntry createLogEntry(String function,
                                  Object returnValue)

createLogEntry

protected LogEntry createLogEntry(String function,
                                  Object returnValue,
                                  Object param1)

createLogEntry

protected LogEntry createLogEntry(String function,
                                  Object returnValue,
                                  Object param1,
                                  Object param2)

createLogEntry

protected LogEntry createLogEntry(String function,
                                  Object returnValue,
                                  Object param1,
                                  Object param2,
                                  Object param3)

createLogEntry

protected LogEntry createLogEntry(String function,
                                  Object returnValue,
                                  Object param1,
                                  Object param2,
                                  Object param3,
                                  Object param4)

appendReturnObject

protected void appendReturnObject(StringBuffer sb,
                                  Object obj)

appendObject

protected void appendObject(StringBuffer sb,
                            Object obj)


C24 Technologies © 2002-2012: All Rights Reserved.