|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.io.codelist.xml.reader.XmlCodeList
public class XmlCodeList
Reads an XML based code list
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface eu.esdihumboldt.hale.common.codelist.CodeList |
---|
CodeList.CodeEntry |
Constructor Summary | |
---|---|
XmlCodeList(InputStream in,
URI location)
Create a code list from an XML document |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getDescription()
Get the description |
Collection<CodeList.CodeEntry> |
getEntries()
Get the code list entries |
CodeList.CodeEntry |
getEntryByIdentifier(String identifier)
Get the entry with the given identifier |
CodeList.CodeEntry |
getEntryByName(String name)
Get the entry with the given name |
String |
getIdentifier()
Get the identifier |
URI |
getLocation()
Get the code list location |
String |
getNamespace()
Get the namespace |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlCodeList(InputStream in, URI location) throws Exception
in
- the input stream of the XML documentlocation
- the code list location
Exception
- if creating the code list failsMethod Detail |
---|
public Collection<CodeList.CodeEntry> getEntries()
CodeList
getEntries
in interface CodeList
CodeList.getEntries()
public String getDescription()
CodeList
getDescription
in interface CodeList
CodeList.getDescription()
public String getIdentifier()
CodeList
getIdentifier
in interface CodeList
CodeList.getIdentifier()
public String getNamespace()
CodeList
getNamespace
in interface CodeList
CodeList.getNamespace()
public CodeList.CodeEntry getEntryByName(String name)
CodeList
getEntryByName
in interface CodeList
name
- the entry name
null
CodeList.getEntryByName(String)
public CodeList.CodeEntry getEntryByIdentifier(String identifier)
CodeList
getEntryByIdentifier
in interface CodeList
identifier
- the entry identifier
null
CodeList.getEntryByIdentifier(String)
public URI getLocation()
CodeList
getLocation
in interface CodeList
CodeList.getLocation()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |