public abstract class AtomValue
extends java.lang.Object
Utility functions for parsing and formatting DataValue in OData ATOM representation.
| Constructor and Description |
|---|
AtomValue() |
| Modifier and Type | Method and Description |
|---|---|
static XmlDocument |
entryDocument(EntityValue entity,
DataContext context)
Return an entity value converted into an ATOM entry, wrapped as an XML document.
|
static ErrorResponse |
errorResponse(XmlElement element,
DataContext context)
Return a parsed error response.
|
static XmlDocument |
feedDocument(EntityValueList list,
DataContext context)
Return an entity list converted into an ATOM feed, wrapped as an XML document.
|
static XmlDocument |
formatCall(DataMethodCall call,
DataContext context)
Return an action invocation request body in XML format.
|
static XmlDocument |
formatDocument(DataValue value,
DataContext context)
Return a data value formatted in OData ATOM representation.
|
static XmlDocument |
formatLink(EntityValue entity,
DataContext context)
Return an entity reference formatted in OData ATOM representation.
|
static void |
fromBasicList(XmlElement element,
DataValueList list,
DataContext context)
Convert a basic list to ATOM format.
|
static void |
fromComplexList(XmlElement element,
ComplexValueList list,
DataContext context)
Convert a complex list to ATOM format.
|
static void |
fromComplexValue(XmlElement element,
ComplexValue complex,
DataContext context)
Convert a complex value to ATOM format.
|
static void |
fromDataValue(XmlElement element,
DataValue value,
DataContext context)
Convert a data value to ATOM format.
|
static void |
fromEntityList(XmlElement feed,
EntityValueList list,
DataContext context)
Convert an entity list to ATOM format.
|
static void |
fromEntityValue(XmlElement entry,
EntityValue entity,
DataContext context)
Convert an entity value to ATOM format.
|
static DataValue |
parseDocument(XmlElement element,
DataType type,
DataContext context)
Return (nullable) A data value (basic, basic list, complex list, entity, entity list) parsed from OData ATOM representation.
|
static EntityValue |
parseLink(XmlElement element,
EntityType type,
DataContext context)
Return an entity reference parsed from OData ATOM representation.
|
static EntityValueList |
parseLinks(XmlElement element,
EntityType type,
DataContext context)
Return a list of entity references parsed from OData ATOM representation.
|
static EntityValue |
parseReference(java.lang.String uri,
EntityType entityType,
EntitySet entitySet,
DataContext context)
|
static EntityValue |
parseReference(java.lang.String uri,
EntityType entityType,
EntitySet entitySet,
DataContext context,
boolean binding)
Return an entity reference parsed from OData ATOM reference representation.
|
static DataValueList |
toBasicList(XmlElement element,
DataType type,
DataContext context)
Return a basic list parsed from ATOM format.
|
static ComplexValueList |
toComplexList(XmlElement element,
DataType type,
DataContext context)
Return a complex list parsed from ATOM format.
|
static ComplexValue |
toComplexValue(XmlElement element,
ComplexType type,
DataContext context)
Return (nullable) A complex value parsed from ATOM format.
|
static DataValue |
toDataValue(XmlElement element,
DataType type,
DataContext context)
Return (nullable) A data value parsed from ATOM format.
|
static EntityValueList |
toEntityList(XmlElement feed,
DataType type,
DataContext context)
Return an entity list parsed from ATOM format.
|
static EntityValue |
toEntityValue(XmlElement entry,
EntityType type,
DataContext context)
Return (nullable) An entity value parsed from ATOM format.
|
public static XmlDocument entryDocument(EntityValue entity, DataContext context)
Return an entity value converted into an ATOM entry, wrapped as an XML document.
entity - Entity value to be converted into ATOM format.context - Data context.public static ErrorResponse errorResponse(XmlElement element, DataContext context)
Return a parsed error response.
element - Error response in ATOM representation.context - Data context.public static XmlDocument feedDocument(EntityValueList list, DataContext context)
Return an entity list converted into an ATOM feed, wrapped as an XML document.
list - Entity list to be converted into ATOM format.context - Data context.public static XmlDocument formatCall(DataMethodCall call, DataContext context)
Return an action invocation request body in XML format.
call - Action invocation.context - Data context.public static XmlDocument formatDocument(DataValue value, DataContext context)
Return a data value formatted in OData ATOM representation.
value - Data value.context - Data context.public static XmlDocument formatLink(EntityValue entity, DataContext context)
Return an entity reference formatted in OData ATOM representation.
entity - Entity value.context - Data context.public static void fromBasicList(XmlElement element, DataValueList list, DataContext context)
Convert a basic list to ATOM format.
element - XML element to receive the ATOM format.list - Value to be converted into ATOM format.context - Data context.public static void fromComplexList(XmlElement element, ComplexValueList list, DataContext context)
Convert a complex list to ATOM format.
element - XML element to receive the ATOM format.list - Value to be converted into ATOM format.context - Data context.public static void fromComplexValue(XmlElement element, ComplexValue complex, DataContext context)
Convert a complex value to ATOM format.
element - XML element to receive the ATOM format.complex - (nullable) Value to be converted into ATOM format.context - Data context.public static void fromDataValue(XmlElement element, DataValue value, DataContext context)
Convert a data value to ATOM format.
element - XML element to receive the ATOM format.value - (nullable) Value to be converted into ATOM format.context - Data context.public static void fromEntityList(XmlElement feed, EntityValueList list, DataContext context)
Convert an entity list to ATOM format.
feed - XML element to receive the ATOM format.list - Value to be converted into ATOM format.context - Data context.public static void fromEntityValue(XmlElement entry, EntityValue entity, DataContext context)
Convert an entity value to ATOM format.
entry - XML element to receive the ATOM format.entity - (nullable) Value to be converted into ATOM format.context - Data context.public static DataValue parseDocument(XmlElement element, DataType type, DataContext context)
Return (nullable) A data value (basic, basic list, complex list, entity, entity list) parsed from OData ATOM representation.
element - (nullable) Value in ATOM representation.type - Data type for the expected parsed result.context - Data context.public static EntityValue parseLink(XmlElement element, EntityType type, DataContext context)
Return an entity reference parsed from OData ATOM representation.
The reference will have EntityValue.isReference == true and EntityValue.readLink != null.
element - Value in ATOM representation.type - Entity type for the expected parsed result.context - Data context.public static EntityValueList parseLinks(XmlElement element, EntityType type, DataContext context)
Return a list of entity references parsed from OData ATOM representation.
Each reference will have EntityValue.isReference == true and EntityValue.readLink != null.
element - Value in ATOM representation.type - Entity type for the expected parsed result.context - Data context.public static EntityValue parseReference(java.lang.String uri, EntityType entityType, EntitySet entitySet, DataContext context)
uri - Uri parameter.entityType - EntityType parameter.entitySet - EntitySet parameter.context - Context parameter.public static EntityValue parseReference(java.lang.String uri, EntityType entityType, EntitySet entitySet, DataContext context, boolean binding)
Return an entity reference parsed from OData ATOM reference representation.
The reference will have EntityValue.isReference == true, EntityValue.readLink != null,
and EntityValue.hasKey will be true if the URI was in canonical URL format.
uri - Entity reference URI.entityType - Entity type for the expected parsed result.entitySet - Entity set for the expected parsed result.context - Data context.binding - Is the reference for a "bind operation"?public static DataValueList toBasicList(XmlElement element, DataType type, DataContext context)
Return a basic list parsed from ATOM format.
element - (nullable) Value in ATOM format.type - Data type for the expected parsed result.context - Data context.public static ComplexValueList toComplexList(XmlElement element, DataType type, DataContext context)
Return a complex list parsed from ATOM format.
element - (nullable) Value in ATOM format.type - Data type for the expected parsed result.context - Data context.public static ComplexValue toComplexValue(XmlElement element, ComplexType type, DataContext context)
Return (nullable) A complex value parsed from ATOM format.
element - (nullable) Value in ATOM format.type - Data type for the expected parsed result.context - Data context.public static DataValue toDataValue(XmlElement element, DataType type, DataContext context)
Return (nullable) A data value parsed from ATOM format.
element - (nullable) Value in ATOM format.type - Data type for the expected parsed result.context - Data context.public static EntityValueList toEntityList(XmlElement feed, DataType type, DataContext context)
Return an entity list parsed from ATOM format.
feed - (nullable) Value in ATOM format.type - Data type for the expected parsed result.context - Data context.public static EntityValue toEntityValue(XmlElement entry, EntityType type, DataContext context)
Return (nullable) An entity value parsed from ATOM format.
entry - (nullable) Value in ATOM format.type - Data type for the expected parsed result.context - Data context.