Package | Description |
---|---|
org.ballerinalang.model.util | |
org.ballerinalang.model.values |
Modifier and Type | Method and Description |
---|---|
static BXML<?> |
XMLUtils.concatenate(BXML<?> firstSeq,
BXML<?> secondSeq)
Concatenate two XML sequences and produce a single sequence.
|
static BXML |
JSONUtils.convertToXML(BValue json,
String attributePrefix,
String arrayEntryTag)
Converts given JSON object to the corresponding XML.
|
static BXML<?> |
XMLUtils.createXMLComment(String content)
Create a comment type BXML.
|
static BXML<?> |
XMLUtils.createXMLElement(BXMLQName startTagName,
BXMLQName endTagName,
String defaultNsUri)
Create an element type BXML.
|
static BXML<?> |
XMLUtils.createXMLProcessingInstruction(String tartget,
String data)
Create a processing instruction type BXML.
|
static BXML<?> |
XMLUtils.createXMLText(String content)
Create a comment type BXML.
|
static BXML<?> |
XMLUtils.parse(InputStream xmlStream)
Create a XML sequence from string inputstream.
|
static BXML<?> |
XMLUtils.parse(InputStream xmlStream,
String charset)
Create a XML sequence from string inputstream with a given charset.
|
static BXML<?> |
XMLUtils.parse(Reader reader)
Create a XML sequence from string reader.
|
static BXML<?> |
XMLUtils.parse(String xmlStr)
Create a XML item from string literal.
|
static BXML |
XMLUtils.tableToXML(BTable table,
boolean isInTransaction)
|
Modifier and Type | Method and Description |
---|---|
static BXML<?> |
XMLUtils.concatenate(BXML<?> firstSeq,
BXML<?> secondSeq)
Concatenate two XML sequences and produce a single sequence.
|
static BXML<?> |
XMLUtils.concatenate(BXML<?> firstSeq,
BXML<?> secondSeq)
Concatenate two XML sequences and produce a single sequence.
|
static BValue |
XMLUtils.convertToJSON(BXML xml,
String attributePrefix,
boolean preserveNamespaces)
Converts given xml object to the corresponding json.
|
Modifier and Type | Class and Description |
---|---|
class |
BXMLItem
BXML represents a single XML item in Ballerina. |
class |
BXMLSequence
BXMLSequence represents a sequence of BXMLItem s in Ballerina. |
Modifier and Type | Method and Description |
---|---|
BXML<?> |
BXMLSequence.children()
Selects and concatenate all the children sequences of the elements in this sequence.
|
abstract BXML<?> |
BXML.children()
Selects and concatenate all the children sequences of the elements in this sequence.
|
BXML<?> |
BXMLItem.children()
Selects and concatenate all the children sequences of the elements in this sequence.
|
BXML<?> |
BXMLSequence.children(String qname)
Selects and concatenate all the children sequences that matches the given qualified name,
in all the element-type items in this sequence.
|
abstract BXML<?> |
BXML.children(String qname)
Selects and concatenate all the children sequences that matches the given qualified name,
in all the element-type items in this sequence.
|
BXML<?> |
BXMLItem.children(String qname)
Selects and concatenate all the children sequences that matches the given qualified name,
in all the element-type items in this sequence.
|
abstract BXML<?> |
BXML.copy()
Returns a deep copy of the XML.
|
BXML<?> |
BXMLSequence.descendants(String qname)
Searches in children recursively for elements matching the name and returns a sequence containing them all.
|
abstract BXML<?> |
BXML.descendants(String qname)
Searches in children recursively for elements matching the name and returns a sequence containing them all.
|
BXML<?> |
BXMLItem.descendants(String qname)
Searches in children recursively for elements matching the name and returns a sequence containing them all.
|
BXML<?> |
BXMLSequence.elements()
Get all the elements-type items, in the given sequence.
|
abstract BXML<?> |
BXML.elements()
Get all the elements-type items, in the given sequence.
|
BXML<?> |
BXMLItem.elements()
Get all the elements-type items, in the given sequence.
|
BXML<?> |
BXMLSequence.elements(String qname)
Get all the elements-type items in the given sequence, that matches a given qualified name.
|
abstract BXML<?> |
BXML.elements(String qname)
Get all the elements-type items in the given sequence, that matches a given qualified name.
|
BXML<?> |
BXMLItem.elements(String qname)
Get all the elements-type items in the given sequence, that matches a given qualified name.
|
BXML<?> |
BXMLSequence.getItem(long index)
Get an item from the XML sequence, at the given index.
|
abstract BXML<?> |
BXML.getItem(long index)
Get an item from the XML sequence, at the given index.
|
BXML<?> |
BXMLItem.getItem(long index)
Get an item from the XML sequence, at the given index.
|
BXML<?> |
BXMLSequence.slice(long startIndex,
long endIndex)
Slice and return a subsequence of the given XML sequence.
|
BXML<?> |
BXMLItem.slice(long startIndex,
long endIndex)
Slice and return a subsequence of the given XML sequence.
|
BXML<?> |
BXMLSequence.strip()
Strips any text items from the XML that are all whitespace.
|
abstract BXML<?> |
BXML.strip()
Strips any text items from the XML that are all whitespace.
|
BXML<?> |
BXMLItem.strip()
Strips any text items from the XML that are all whitespace.
|
Modifier and Type | Method and Description |
---|---|
void |
BXMLSequence.addChildren(BXML<?> seq)
Add a XMl sequence to this XML as children.
|
abstract void |
BXML.addChildren(BXML<?> seq)
Add a XMl sequence to this XML as children.
|
void |
BXMLItem.addChildren(BXML<?> seq)
Add a XMl sequence to this XML as children.
|
void |
BXMLSequence.setChildren(BXML<?> seq)
Set the children of this XML.
|
abstract void |
BXML.setChildren(BXML<?> seq)
Set the children of this XML.
|
void |
BXMLItem.setChildren(BXML<?> seq)
Set the children of this XML.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BXML.addDescendants(List<BXML<?>> descendants,
org.apache.axiom.om.OMElement currentElement,
String qname)
Recursively traverse and add the descendant with the given name to the descendants list.
|
Constructor and Description |
---|
BXMLAttributes(BXML value)
Create attribute map with an XML.
|
Copyright © 2018 WSO2. All rights reserved.