Ballerina API Documentation

Functions of ballerina.builtin package

public function <blob b> toString(string encoding) (string)

Converts blob to a string

Receiver:

Receiver NameData TypeDescription
bblobThe blob value to be converted

Parameters:

Parameter NameData TypeDescription
encodingstringEncoding to used in blob conversion to string

Return Parameters:

Return VariableData TypeDescription
stringstring: String representation of the given blob

public function createTime(int year, int month, int date, int hour, int minute, int second, int milliSecond, string zoneId) (Time)

Returns the Time struct correspoding to the given time components and timezone.

Parameters:

Parameter NameData TypeDescription
yearintThe year representation
monthintThe month-of-year to represent, from 1 (January) to 12 (December)
dateintThe day-of-month to represent, from 1 to 31
hourintThe hour-of-day to represent, from 0 to 23
minuteintThe minute-of-hour to represent, from 0 to 59
secondintThe second-of-minute to represent, from 0 to 59
milliSecondintThe milli-of-second to represent, from 0 to 999
zoneIdstringThe zone id of the required timezone

Return Parameters:

Return VariableData TypeDescription
TimeTime: Time struct containing time and zone information.

public function currentTime() (Time)

Returns the current time value with the system default timezone.

Return Parameters:

Return VariableData TypeDescription
TimeTime: Time struct containing the time and zone information.

public function <datatable dt> close()

Releases the database connection.

Receiver:

Receiver NameData TypeDescription
dtdatatableThe datatable object

public function <datatable dt> getNext() (any)

Retrives the current row and return a struct with the data in the columns

Receiver:

Receiver NameData TypeDescription
dtdatatableThe datatable object

Return Parameters:

Return VariableData TypeDescription
anyany: The resulting row as a struct

public function <datatable dt> hasNext() (boolean)

Checks for a new row in the given datatable. If a new row is found, moves the cursor to it.

Receiver:

Receiver NameData TypeDescription
dtdatatableThe datatable object

Return Parameters:

Return VariableData TypeDescription
booleanboolean: True if there is a new row; false otherwise

public function <json j> getKeys() (string[])

Returns an array of keys contained in the specified JSON.

Receiver:

Receiver NameData TypeDescription
jjsonA JSON object

Return Parameters:

Return VariableData TypeDescription
string[]string[]: A string array of keys contained in the specified JSON

public function <json j> remove(string key)

Removes each element that matches the given key.

Receiver:

Receiver NameData TypeDescription
jjsonA JSON object

Parameters:

Parameter NameData TypeDescription
keystringKey of the field to remove

public function <json j> toString() (string)

Converts a JSON object to a string representation

Receiver:

Receiver NameData TypeDescription
jjsonA JSON object

Return Parameters:

Return VariableData TypeDescription
stringstring: String value of the converted JSON

public function <json j> toXML(jsonOptions options) (xml)

Converts a JSON object to a XML representation

Receiver:

Receiver NameData TypeDescription
jjsonA JSON object

Parameters:

Parameter NameData TypeDescription
optionsjsonOptionsjsonOptions struct for JSON to XML conversion properties

Return Parameters:

Return VariableData TypeDescription
xmlxml: The XML representation of the JSON

public function <string mainString> contains(string subString) (boolean)

Returns a Boolean value indicating whether a string contains the specified substring

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
subStringstringThe substring to be compared

Return Parameters:

Return VariableData TypeDescription
booleanboolean: True if the string contains the substring; false otherwise

public function <string mainString> equalsIgnoreCase(string anotherString) (boolean)

Compares two strings, ignoring the case of the strings

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
anotherStringstringThe string to be compared

Return Parameters:

Return VariableData TypeDescription
booleanboolean: True if the strings are equal; false otherwise

public function <string mainString> hasPrefix(string prefix) (boolean)

Returns a Boolean value indicating whether a string starts with the specified prefix

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
prefixstringThe prefix to be compared

Return Parameters:

Return VariableData TypeDescription
booleanboolean: True if the string starts with the prefix; false otherwise

public function <string mainString> hasSuffix(string suffix) (boolean)

Returns a Boolean value indicating whether the string ends with specified suffix

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
suffixstringThe suffix to be compared

Return Parameters:

Return VariableData TypeDescription
booleanboolean: True if the string ends with the suffix; false otherwise

public function <string mainString> indexOf(string subString) (int)

Returns the first index of the first occurence of the substring within the specified string

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
subStringstringThe substring to search for

Return Parameters:

Return VariableData TypeDescription
intint: The index of the first occurence of the substring

public function <string mainString> lastIndexOf(string subString) (int)

Returns the first index of the last occurence of the substring within the specified string

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
subStringstringThe substring to search for

Return Parameters:

Return VariableData TypeDescription
intint: The index of the last occurence of the substring

public function <string mainString> length() (int)

Returns the length of the specified string

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Return Parameters:

Return VariableData TypeDescription
intint: The length of the specified string

public function <string mainString> replace(string replacePattern, string replaceWith) (string)

Replaces all instances of the replacePattern string with the replaceWith string and returns the result

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
replacePatternstringThe pattern to search for
replaceWithstringThe replacement string

Return Parameters:

Return VariableData TypeDescription
stringstring: The derived string

public function <string mainString> replaceAll(string replacePattern, string replaceWith) (string)

Replaces each substring of the mainString that matches the given regular expression with the given replacement

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
replacePatternstringThe regular expression to search for
replaceWithstringThe replacement string

Return Parameters:

Return VariableData TypeDescription
stringstring: The derived string

public function <string mainString> replaceFirst(string replacePattern, string replaceWith) (string)

Replaces the first instance of the replacePattern with the replaceWith string and returns the result

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
replacePatternstringThe pattern to search for
replaceWithstringThe replacement string

Return Parameters:

Return VariableData TypeDescription
stringstring: The derived string

public function <string mainString> split(string regex) (string[])

Splits the string with the given regular expression to produce a string array.

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
regexstringThe regex to split the string

Return Parameters:

Return VariableData TypeDescription
string[]string[]: The split string array

public function <string mainString> subString(int from, int to) (string)

Returns a new string that is the substring of the specified string

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Parameters:

Parameter NameData TypeDescription
fromintThe starting index
tointThe ending index

Return Parameters:

Return VariableData TypeDescription
stringstring: The derived sub string

public function <string mainString> toBlob(string encoding) (blob)

Converts string to a blob

Receiver:

Receiver NameData TypeDescription
mainStringstringstring value to be converted

Parameters:

Parameter NameData TypeDescription
encodingstringEncoding to used in the conversion

Return Parameters:

Return VariableData TypeDescription
blobblob: The blob representation of the given String

public function <string mainString> toLowerCase() (string)

Returns a string with all the characters converted to lowercase

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Return Parameters:

Return VariableData TypeDescription
stringstring: The string converted to lowercase

public function <string mainString> toUpperCase() (string)

Returns a string with all the characters converted to uppercase

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Return Parameters:

Return VariableData TypeDescription
stringstring: The string converted to uppercase

public function <string mainString> trim() (string)

Returns a trimmed string by omitting the leading and trailing whitespaces of the original string

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Return Parameters:

Return VariableData TypeDescription
stringstring: The derived string

public function <string mainString> unescape() (string)

Returns an unescaped string by omitting the escape characters of the original string

Receiver:

Receiver NameData TypeDescription
mainStringstringThe original string argument

Return Parameters:

Return VariableData TypeDescription
stringstring: The derived string

public function <map m> keys() (string[])

Returns an array of keys contained in the specified map

Receiver:

Receiver NameData TypeDescription
mmapThe map object

Return Parameters:

Return VariableData TypeDescription
string[]string[]: A string array of keys contained in the specified map

public function <map m> length() (int)

Returns the length of the specified map

Receiver:

Receiver NameData TypeDescription
mmapThe map object

Return Parameters:

Return VariableData TypeDescription
intint: The number of elements in the map object

public function <map m> remove(string key)

Removes the specified element from the map

Receiver:

Receiver NameData TypeDescription
mmapThe map object

Parameters:

Parameter NameData TypeDescription
keystringThe key to be removed

public function parse(string data, string format) (Time)

Returns the time for the given string representation based on the given format string.

Parameters:

Parameter NameData TypeDescription
datastringThe time text to parse
formatstringThe format which is used to parse the given text

Return Parameters:

Return VariableData TypeDescription
TimeTime: Time struct containing time and zone information.

public function print(any a)

Prints a 'any' value to the STDOUT

Parameters:

Parameter NameData TypeDescription
aanyany value to be printed

public function println(any a)

Prints an any value to the STDOUT in a new line

Parameters:

Parameter NameData TypeDescription
aanyany value to be printed

public function sleep(int t)

Halt the current thread for the specified time period

Parameters:

Parameter NameData TypeDescription
tintint: Sleep time in milliseconds

public function <Time time> addDuration(int years, int months, int days, int hours, int minutes, int seconds, int milliSeconds) (Time)

Add specified durations to the given time value.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to add the given duration

Parameters:

Parameter NameData TypeDescription
yearsintThe year representation
monthsintThe month-of-year to represent, from 1 (January) to 12 (December)
daysintThe day-of-month to represent, from 1 to 31
hoursintThe hour-of-day to represent, from 0 to 23
minutesintThe minute-of-hour to represent, from 0 to 59
secondsintThe second-of-minute to represent, from 0 to 59
milliSecondsintThe milli-of-second to represent, from 0 to 999

Return Parameters:

Return VariableData TypeDescription
TimeTime: Time struct containing time and zone information after the addition.

public function <Time time> day() (int)

Returns the date representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to get the date representation

Return Parameters:

Return VariableData TypeDescription
intint: The day-of-month, from 1 to 31.

public function <Time time> format(string format) (string)

Returns formatted string representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct for which needs to get the string representation

Parameters:

Parameter NameData TypeDescription
formatstringThe format which is used to format the given text

Return Parameters:

Return VariableData TypeDescription
stringstring: The formatted string of the given time.

public function <Time time> getDate() (int, int, int)

Returns the date representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to get the date representation

Return Parameters:

Return VariableData TypeDescription
intint: The year representation.
intint: The year representation.
intint: The year representation.

public function <Time time> getTime() (int, int, int, int)

Returns the time representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to get the time representation

Return Parameters:

Return VariableData TypeDescription
intThe hour-of-day, from 0 to 23.
intThe hour-of-day, from 0 to 23.
intThe hour-of-day, from 0 to 23.
intThe hour-of-day, from 0 to 23.

public function <Time time> hour() (int)

Returns the hour representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to get the hour representation

Return Parameters:

Return VariableData TypeDescription
intint: The hour-of-day, from 0 to 23.

public function <Time time> milliSecond() (int)

Returns the millisecond representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to get the millisecond representation

Return Parameters:

Return VariableData TypeDescription
intint: The milli-of-second, from 0 to 999.

public function <Time time> minute() (int)

Returns the minute representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to get the minute representation

Return Parameters:

Return VariableData TypeDescription
intint: The minute-of-hour to represent, from 0 to 59.

public function <Time time> month() (int)

Returns the month representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to get the month representation

Return Parameters:

Return VariableData TypeDescription
intint: The month-of-year, from 1 (January) to 12 (December).

public function <Time time> second() (int)

Returns the second representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to get the second representation

Return Parameters:

Return VariableData TypeDescription
intint: The second-of-minute, from 0 to 59.

public function <Time time> subtractDuration(int years, int months, int days, int hours, int minutes, int seconds, int milliSeconds) (Time)

Subtract specified durations from the given time value.

Receiver:

Receiver NameData TypeDescription
timeTimeyears: The year representation

Parameters:

Parameter NameData TypeDescription
yearsintThe year representation
monthsintThe month-of-year to represent, from 1 (January) to 12 (December)
daysintThe day-of-month to represent, from 1 to 31
hoursintThe hour-of-day to represent, from 0 to 23
minutesintThe minute-of-hour to represent, from 0 to 59
secondsintThe second-of-minute to represent, from 0 to 59
milliSecondsintThe milli-of-second to represent, from 0 to 999

Return Parameters:

Return VariableData TypeDescription
TimeTime: Time struct containing time and zone information after the subtraction.

public function <Time time> toString() (string)

Returns ISO 8601 string representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct for which needs to get the string representation

Return Parameters:

Return VariableData TypeDescription
stringstring: The ISO 8601 formatted string of the given time.

public function <Time time> toTimezone(string zoneId) (Time)

Change the timezone of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to change the timezone information

Parameters:

Parameter NameData TypeDescription
zoneIdstringThe new timezone id

Return Parameters:

Return VariableData TypeDescription
TimeTime: Time struct containing time and zone information after the conversion.

public function <Time time> weekday() (string)

Returns the weekday representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to get the weekday representation

Return Parameters:

Return VariableData TypeDescription
stringstring: The weekday representation from SUNDAY to SATURDAY.

public function <Time time> year() (int)

Returns the year representation of the given time.

Receiver:

Receiver NameData TypeDescription
timeTimeThe time struct which needs to get the year representation

Return Parameters:

Return VariableData TypeDescription
intint: The year representation.

public function <xml x> children() (xml)

Selects all the children of the elements in an XML, and return as a sequence.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Return Parameters:

Return VariableData TypeDescription
xmlxml: All the children of the elements in the xml

public function <xml x> copy() (xml)

Make a deep copy of an XML.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Return Parameters:

Return VariableData TypeDescription
xmlxml: A Copy of the XML

public function <xml x> elements() (xml)

Get all the items that are of element type in an XML sequence.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Return Parameters:

Return VariableData TypeDescription
xmlxml: All the elements-type items in the given XML sequence

public function <xml x> getElementName() (string)

Get the fully qualified name of the element as a string. Returns an empty string if the XML is not a singleton.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Return Parameters:

Return VariableData TypeDescription
stringxml: Qualified name of the XML as a string

public function <xml x> getItemType() (string)

Get the type of a XML as a string. If the XML is singleton, type can be one of 'element', 'text', 'comment' or 'pi'. Returns an empty string if the XML is not a singleton.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Return Parameters:

Return VariableData TypeDescription
stringxml: Type of the XML as a string

public function <xml x> getTextValue() (string)

Get the text value of a XML. If the XML is a sequence, concatenation of the text values of the members of the sequence is returned. If the XML is an element, then the text value of the sequence of children is returned. If the XML is a text item, then the text is returned. Otherwise, an empty string is returned.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Return Parameters:

Return VariableData TypeDescription
stringxml: Text value of the xml

public function <xml x> isEmpty() (boolean)

Check whether the XML sequence is empty.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Return Parameters:

Return VariableData TypeDescription
booleanxml: Boolean flag indicating whether the XML sequence is empty

public function <xml x> isSingleton() (boolean)

Check whether the XML sequence contains only a single element.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Return Parameters:

Return VariableData TypeDescription
booleanxml: Boolean flag indicating whether the XML sequence contains only a single element

public function <xml x> removeAttribute(string qname)

Remove an attribute from an XML.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Parameters:

Parameter NameData TypeDescription
qnamestringQualified name of the attribute

public function <xml x> select(string qname) (xml)

Get all the items that are of element type, and matches the given qualified name, in an XML sequence.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Parameters:

Parameter NameData TypeDescription
qnamestringQualified name of the element

Return Parameters:

Return VariableData TypeDescription
xmlxml: All the elements-type items in the given XML sequence, that matches the qualified name

public function <xml x> selectChildren(string qname) (xml)

Selects all the children of the elements in this sequence that matches the given qualified name.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Parameters:

Parameter NameData TypeDescription
qnamestringQualified name of the element

Return Parameters:

Return VariableData TypeDescription
xmlxml: All the children of the elements in this sequence that matches the given qualified name

public function <xml x> selectDescendants(string qname) (xml)

Searches in children recursively for elements matching the qualified name and returns a sequence containing them all. Does not search within a matched result.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Parameters:

Parameter NameData TypeDescription
qnamestringQualified name of the element

Return Parameters:

Return VariableData TypeDescription
xmlxml: All the descendants that matches the given qualified name, as a sequence

public function <xml x> setAttributes(map attributes)

Sets the attributes to the provided attributes map.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Parameters:

Parameter NameData TypeDescription
attributesmapAttributes map

public function <xml x> setChildren(xml children)

Set the children of an XML if its a singleton. An Error otherwise. Any existing children will be removed.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Parameters:

Parameter NameData TypeDescription
childrenxmlx: An XML object

public function <xml x> slice(int startIndex, int endIndex) (xml)

Slice and return a subsequence of the an XML sequence.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Parameters:

Parameter NameData TypeDescription
startIndexintStart index, inclusive
endIndexintEnd index, exclusive

Return Parameters:

Return VariableData TypeDescription
xmlxml: Sliced sequence

public function <xml x> strip() (xml)

Strips any text items from an XML sequence that are all whitespace.

Receiver:

Receiver NameData TypeDescription
xxmlAn XML object

Return Parameters:

Return VariableData TypeDescription
xmlxml: Striped sequence

public function <xml x> toJSON(xmlOptions options) (json)

Converts a XML object to a JSON representation

Receiver:

Receiver NameData TypeDescription
xxmlA XML object

Parameters:

Parameter NameData TypeDescription
optionsxmlOptionsxmlOptions struct for XML to JSON conversion properties

Return Parameters:

Return VariableData TypeDescription
jsonjson: JSON representation of the given XML


Structs of ballerina.builtin package

public struct IllegalStateException

Fields:

Field NameData TypeDescription
msgstring
causeerror
stackTraceStackFrame[]

public struct NullReferenceException

Fields:

Field NameData TypeDescription
msgstring
causeerror
stackTraceStackFrame[]

public struct StackFrame

Fields:

Field NameData TypeDescription
callerstring
packageNamestring
fileNamestring
lineNumberint

public struct Time

Ballerina Time struct represents a particular time with its associated timezone.

Fields:

Field NameData TypeDescription
timeintTime value as milliseconds since epoch.
zoneTimezoneThe time zone of the time.

public struct Timezone

Ballerina Timezone struct represents the timezone information associated with a particular time.

Fields:

Field NameData TypeDescription
zoneIdstringZone short ID or offset string.
zoneOffsetintThe offset in seconds.

public struct TypeCastError

Fields:

Field NameData TypeDescription
msgstring
causeerror
stackTraceStackFrame[]
sourceTypestring
targetTypestring

public struct TypeConversionError

Fields:

Field NameData TypeDescription
msgstring
causeerror
stackTraceStackFrame[]
sourceTypestring
targetTypestring

public struct error

Fields:

Field NameData TypeDescription
msgstring
causeerror
stackTraceStackFrame[]

public struct jsonOptions

Options struct for JSON to XML conversion

Fields:

Field NameData TypeDescription
attributePrefixstringPrefix to identify XML attribute,default value is '@'.
arrayEntryTagstringThe name of the tag to be added to each entry of JSON array.

public struct xmlOptions

Options struct for XML to JSON conversion

Fields:

Field NameData TypeDescription
attributePrefixstringprefix to add to the key to identify a XML attribute and namespaces, default value is '@'.
preserveNamespacesbooleanIndicate whether to preserve namespace prefixes when converting or not.


Annotations of ballerina.builtin package

annotation Description

Attributes:

Attribute NameData TypeDescription
valuestring

annotation Field

Attributes:

Attribute NameData TypeDescription
valuestring

annotation Param

Attributes:

Attribute NameData TypeDescription
valuestring

annotation Return

Attributes:

Attribute NameData TypeDescription
valuestring


Menu

  • Functions
    • <blob> toString(string encoding) (string )
    • createTime(int year, int month, int date, int hour, int minute, int second, int milliSecond, string zoneId) (Time )
    • currentTime() (Time )
    • <datatable> close()
    • <datatable> getNext() (any )
    • <datatable> hasNext() (boolean )
    • <json> getKeys() (string[] )
    • <json> remove(string key)
    • <json> toString() (string )
    • <json> toXML(jsonOptions options) (xml )
    • <string> contains(string subString) (boolean )
    • <string> equalsIgnoreCase(string anotherString) (boolean )
    • <string> hasPrefix(string prefix) (boolean )
    • <string> hasSuffix(string suffix) (boolean )
    • <string> indexOf(string subString) (int )
    • <string> lastIndexOf(string subString) (int )
    • <string> length() (int )
    • <string> replace(string replacePattern, string replaceWith) (string )
    • <string> replaceAll(string replacePattern, string replaceWith) (string )
    • <string> replaceFirst(string replacePattern, string replaceWith) (string )
    • <string> split(string regex) (string[] )
    • <string> subString(int from, int to) (string )
    • <string> toBlob(string encoding) (blob )
    • <string> toLowerCase() (string )
    • <string> toUpperCase() (string )
    • <string> trim() (string )
    • <string> unescape() (string )
    • <map> keys() (string[] )
    • <map> length() (int )
    • <map> remove(string key)
    • parse(string data, string format) (Time )
    • print(any a)
    • println(any a)
    • sleep(int t)
    • <Time> addDuration(int years, int months, int days, int hours, int minutes, int seconds, int milliSeconds) (Time )
    • <Time> day() (int )
    • <Time> format(string format) (string )
    • <Time> getDate() (int , int , int )
    • <Time> getTime() (int , int , int , int )
    • <Time> hour() (int )
    • <Time> milliSecond() (int )
    • <Time> minute() (int )
    • <Time> month() (int )
    • <Time> second() (int )
    • <Time> subtractDuration(int years, int months, int days, int hours, int minutes, int seconds, int milliSeconds) (Time )
    • <Time> toString() (string )
    • <Time> toTimezone(string zoneId) (Time )
    • <Time> weekday() (string )
    • <Time> year() (int )
    • <xml> children() (xml )
    • <xml> copy() (xml )
    • <xml> elements() (xml )
    • <xml> getElementName() (string )
    • <xml> getItemType() (string )
    • <xml> getTextValue() (string )
    • <xml> isEmpty() (boolean )
    • <xml> isSingleton() (boolean )
    • <xml> removeAttribute(string qname)
    • <xml> select(string qname) (xml )
    • <xml> selectChildren(string qname) (xml )
    • <xml> selectDescendants(string qname) (xml )
    • <xml> setAttributes(map attributes)
    • <xml> setChildren(xml children)
    • <xml> slice(int startIndex, int endIndex) (xml )
    • <xml> strip() (xml )
    • <xml> toJSON(xmlOptions options) (json )
  • Structs
    • IllegalStateException
    • NullReferenceException
    • StackFrame
    • Time
    • Timezone
    • TypeCastError
    • TypeConversionError
    • error
    • jsonOptions
    • xmlOptions
  • Annotations
    • Description
    • Field
    • Param
    • Return

Copyright 2017 Ballerina API Documentation