Package org.openrefine.importers.tree
Interface TreeReader
-
- All Known Implementing Classes:
JsonImporter.JSONTreeReader,XmlImporter.XmlParser
public interface TreeReaderInterface for all tree-shaped parsers. This is effectively part of the contract forTreeImportingParserBase.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTreeReader.Token
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description TreeReader.Tokencurrent()intgetAttributeCount()StringgetAttributeLocalName(int index)StringgetAttributePrefix(int index)StringgetAttributeValue(int index)StringgetFieldName()StringgetFieldValue()Deprecated.StringgetPrefix()SerializablegetValue()booleanhasNext()TreeReader.Tokennext()
-
-
-
Method Detail
-
current
TreeReader.Token current() throws TreeReaderException
- Throws:
TreeReaderException
-
hasNext
boolean hasNext() throws TreeReaderException- Throws:
TreeReaderException
-
next
TreeReader.Token next() throws TreeReaderException
- Throws:
TreeReaderException
-
getFieldName
String getFieldName() throws TreeReaderException
- Throws:
TreeReaderException
-
getPrefix
String getPrefix()
-
getFieldValue
@Deprecated String getFieldValue() throws TreeReaderException
Deprecated.- Throws:
TreeReaderException
-
getValue
Serializable getValue() throws TreeReaderException
- Throws:
TreeReaderException
-
getAttributeCount
int getAttributeCount()
-
getAttributeValue
String getAttributeValue(int index)
-
getAttributePrefix
String getAttributePrefix(int index)
-
getAttributeLocalName
String getAttributeLocalName(int index)
-
-