CodeList.CodeEntry
Constructor and Description |
---|
XmlCodeList(InputStream in,
URI location)
Create a code list from an XML document
|
Modifier and Type | Method and Description |
---|---|
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() |
public XmlCodeList(InputStream in, URI location) throws Exception
in
- the input stream of the XML documentlocation
- the code list locationException
- if creating the code list failspublic 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 namenull
CodeList.getEntryByName(String)
public CodeList.CodeEntry getEntryByIdentifier(String identifier)
CodeList
getEntryByIdentifier
in interface CodeList
identifier
- the entry identifiernull
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)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a