|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.AtomObject
public class AtomObject
The AtomObject
class represents a generic Atom object. This class is
a common base class shared by AtomFeed
and AtomEntry
.
Field Summary | |
---|---|
java.lang.String |
id
The value of the Atom <id> element. |
java.util.Map<java.lang.String,java.lang.String> |
links
The value of the <link> elements in this AtomObject . |
java.lang.String |
title
The value of the Atom <title> element. |
java.lang.String |
updated
The value of the Atom <updated> element. |
Constructor Summary | |
---|---|
AtomObject()
|
Method Summary | |
---|---|
protected static javax.xml.stream.XMLStreamReader |
createReader(java.io.InputStream input)
Instantiates the XMLStreamReader, advances to the root element and validates the root document structure. |
protected static java.lang.String |
getElementText(javax.xml.stream.XMLStreamReader reader)
|
protected static boolean |
isEndElement(javax.xml.stream.XMLStreamReader reader,
java.lang.String localName)
|
protected static boolean |
isStartElement(javax.xml.stream.XMLStreamReader reader,
java.lang.String localName)
|
protected void |
parseEnd(javax.xml.stream.XMLStreamReader reader)
Parses the element at the current cursor position and reads the corresponding end element. |
protected java.lang.String |
parseText(javax.xml.stream.XMLStreamReader reader)
Parses and returns the text value of the element at the current cursor position and reads the corresponding end element. |
protected static void |
scan(javax.xml.stream.XMLStreamReader reader)
|
protected static void |
scanEnd(javax.xml.stream.XMLStreamReader reader)
|
protected static void |
scanTag(javax.xml.stream.XMLStreamReader reader)
|
protected static void |
syntaxError(javax.xml.stream.XMLStreamReader reader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String id
<id>
element.
public java.util.Map<java.lang.String,java.lang.String> links
<link>
elements in this AtomObject
.
public java.lang.String title
<title>
element.
public java.lang.String updated
<updated>
element.
Constructor Detail |
---|
public AtomObject()
Method Detail |
---|
protected static javax.xml.stream.XMLStreamReader createReader(java.io.InputStream input)
AtomFeed
and AtomEntry
parsers.
input
- The input stream.
XMLStreamReader
initialized reader, advanced to the
first element of the document.protected void parseEnd(javax.xml.stream.XMLStreamReader reader)
reader
- The XML reader.protected java.lang.String parseText(javax.xml.stream.XMLStreamReader reader)
reader
- The XML reader.
protected static java.lang.String getElementText(javax.xml.stream.XMLStreamReader reader)
protected static boolean isEndElement(javax.xml.stream.XMLStreamReader reader, java.lang.String localName)
protected static boolean isStartElement(javax.xml.stream.XMLStreamReader reader, java.lang.String localName)
protected static void scan(javax.xml.stream.XMLStreamReader reader)
protected static void scanEnd(javax.xml.stream.XMLStreamReader reader)
protected static void scanTag(javax.xml.stream.XMLStreamReader reader)
protected static void syntaxError(javax.xml.stream.XMLStreamReader reader)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |