Class XmlLinkConsumer
- java.lang.Object
-
- org.apache.olingo.odata2.core.ep.consumer.XmlLinkConsumer
-
public class XmlLinkConsumer extends Object
-
-
Constructor Summary
Constructors Constructor Description XmlLinkConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringreadLink(XMLStreamReader reader, EdmEntitySet entitySet)Reads single link with format<uri>http://somelink</uri>.List<String>readLinks(XMLStreamReader reader, EdmEntitySet entitySet)Reads multiple links with format
-
-
-
Method Detail
-
readLink
public String readLink(XMLStreamReader reader, EdmEntitySet entitySet) throws EntityProviderException
Reads single link with format<uri>http://somelink</uri>.- Parameters:
reader- ReaderentitySet- Entidades- Returns:
- link as string object
- Throws:
EntityProviderException- Caso ocorra exceção
-
readLinks
public List<String> readLinks(XMLStreamReader reader, EdmEntitySet entitySet) throws EntityProviderException
Reads multiple links with format<links> <uri>http://somelink</uri> <uri>http://anotherLink</uri> <uri>http://somelink/yetAnotherLink</uri> </links>- Parameters:
reader- ReaderentitySet- Entidades- Returns:
- list of string based links
- Throws:
EntityProviderException- Caso ocorra exceção
-
-