public class Eml200Parser extends java.lang.Object implements ParserInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EML |
static java.lang.String |
OTHERENTITY |
static java.lang.String |
PACKAGEID |
static java.lang.String |
SPATIALRASTERENTITY |
static java.lang.String |
SPATIALVECTORENTITY |
static java.lang.String |
STOREDPROCEDUREENTITY |
static java.lang.String |
TABLEENTITY |
static java.lang.String |
VIEWENTITY |
Constructor and Description |
---|
Eml200Parser() |
Modifier and Type | Method and Description |
---|---|
int |
getAttributeCount(java.lang.String entityId)
returns the number of attributes in the given entity
|
java.util.List<Entity> |
getEntities()
Get a collection of entities.
|
int |
getEntityCount()
returns the total number of entities in the data item collection that was
passed to this class when the object was created.
|
java.util.Hashtable<java.lang.String,Entity> |
getEntityHash()
returns a hashtable of entity names hashed to the entity description
metadata that goes with each entity.
|
java.lang.String |
getNameSpace()
Get the name space of the document
|
int |
getRecordCount(java.lang.String entityId)
returns the number of records in this dataItem
|
boolean |
hasMissingValue()
if the entity has missing value declaretion
|
void |
parse(org.xml.sax.InputSource source)
parses the EML package using an InputSource
|
void |
parse(java.io.InputStream is)
parses the EML package using an InputStream
|
public static final java.lang.String TABLEENTITY
public static final java.lang.String SPATIALRASTERENTITY
public static final java.lang.String SPATIALVECTORENTITY
public static final java.lang.String STOREDPROCEDUREENTITY
public static final java.lang.String VIEWENTITY
public static final java.lang.String OTHERENTITY
public static final java.lang.String EML
public static final java.lang.String PACKAGEID
public Eml200Parser()
public void parse(org.xml.sax.InputSource source) throws java.lang.Exception
parse
in interface ParserInterface
java.lang.Exception
public void parse(java.io.InputStream is) throws java.lang.Exception
java.lang.Exception
public java.util.Hashtable<java.lang.String,Entity> getEntityHash()
public java.util.List<Entity> getEntities()
getEntities
in interface ParserInterface
public java.lang.String getNameSpace()
public int getRecordCount(java.lang.String entityId)
entityId
- the id of the entity object to get the record count forpublic int getEntityCount()
getEntityCount
in interface ParserInterface
public int getAttributeCount(java.lang.String entityId)
entityId
- the id of the entity object that you want the attribute count
forpublic boolean hasMissingValue()