Package org.rumbledb.items
Class ItemFactory
java.lang.Object
org.rumbledb.items.ItemFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAnnotatedItem
(Item itemToAnnotate, ItemType type) createArrayItem
(List<Item> items, boolean mutable) createBooleanItem
(boolean b) createDateItem
(OffsetDateTime dt, boolean hasTimeZone) createDateTimeItem
(OffsetDateTime dt, boolean hasTimeZone) createDateTimeStampItem
(OffsetDateTime dt, boolean checkTimezone) createDoubleItem
(double d) createFloatItem
(float d) createGDayItem
(OffsetDateTime s, boolean timezone) createGMonthDayItem
(OffsetDateTime s, boolean hasTimeZone) createGMonthItem
(OffsetDateTime s, boolean timezone) createGYearItem
(OffsetDateTime s, boolean hasTimeZone) createGYearMonthItem
(OffsetDateTime s, boolean hasTimeZone) createIntegerItem
(String lexicalValue) createIntItem
(int i) createLongItem
(long l) createObjectItem
(List<String> keys, List<Item> values, ExceptionMetadata itemMetadata, boolean mutable) createObjectItem
(Map<String, List<Item>> keyValuePairs, boolean mutable) createTimeItem
(OffsetTime dt, boolean hasTimeZone) createXmlAttributeNode
(String nodeName, String stringValue) Create an attribute item.createXmlAttributeNode
(Node attribute) createXmlDocumentNode
(List<Item> children) Create a document item.createXmlDocumentNode
(Node documentNode, List<Item> children) Create an element item.createXmlTextNode
(String content) Create a text item.createXmlTextNode
(Node currentNode) static ItemFactory
-
Constructor Details
-
ItemFactory
public ItemFactory()
-
-
Method Details
-
getInstance
-
createStringItem
-
createBooleanItem
-
createNullItem
-
createDecimalItem
-
createIntegerItem
-
createIntItem
-
createLongItem
-
createIntegerItem
-
createDoubleItem
-
createFloatItem
-
createAnnotatedItem
-
createDurationItem
-
createDurationItem
-
createYearMonthDurationItem
-
createYearMonthDurationItem
-
createDayTimeDurationItem
-
createDayTimeDurationItem
-
createDateTimeItem
-
createDateTimeItem
-
createDateTimeStampItem
-
createDateTimeStampItem
-
createDateItem
-
createDateItem
-
createTimeItem
-
createTimeItem
-
createGDayItem
-
createGDayItem
-
createGMonthItem
-
createGMonthItem
-
createGYearItem
-
createGYearItem
-
createGMonthDayItem
-
createGMonthDayItem
-
createGYearMonthItem
-
createGYearMonthItem
-
createAnyURIItem
-
createHexBinaryItem
-
createBase64BinaryItem
-
createObjectItem
-
createLazyObjectItem
-
createArrayItem
-
createArrayItem
-
createObjectItem
-
createObjectItem
-
createXmlTextNode
-
createXmlTextNode
Create a text item.- Parameters:
content
- The string content of the text item- Returns:
- The text item
-
createXmlAttributeNode
-
createXmlAttributeNode
Create an attribute item.- Parameters:
nodeName
- The name of the attributestringValue
- The string value of the attribute- Returns:
- The attribute item
-
createXmlDocumentNode
-
createXmlDocumentNode
Create a document item.- Parameters:
children
- The children items of the document- Returns:
- The document item
-
createXmlElementNode
-
createXmlElementNode
Create an element item.- Parameters:
nodeName
- The name of the elementchildren
- The children items of the elementattributes
- The attributes items of the element- Returns:
- The element item
-