com.jaxfront.core.xui
Class XMLResourceCodeSetCreator
java.lang.Object
com.jaxfront.core.xui.XMLResourceCodeSetCreator
- All Implemented Interfaces:
- CodeSet
public class XMLResourceCodeSetCreator
- extends java.lang.Object
- implements CodeSet
Demonstrates how to implement your own codeSet resolver. For demo purposes,
this will open the content of a local codeset file (po.codes).
The Reader returning has to be an xml content reader following the codes.xsd
(see jaxfront-core.jar).
Constructor Summary |
XMLResourceCodeSetCreator(java.net.URL locationURL,
java.lang.String labelXPath,
java.lang.String keyXPath,
java.lang.String descXPath)
|
XMLResourceCodeSetCreator(java.net.URL targetURL,
java.lang.String locationURL,
java.lang.String labelXPath,
java.lang.String keyXPath,
java.lang.String descXPath)
|
Method Summary |
java.io.Reader |
getCodeSet(Type type,
java.lang.String codeSetName,
java.lang.String versionNo)
Returns a codeSet as an XML reader. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLResourceCodeSetCreator
public XMLResourceCodeSetCreator(java.net.URL locationURL,
java.lang.String labelXPath,
java.lang.String keyXPath,
java.lang.String descXPath)
XMLResourceCodeSetCreator
public XMLResourceCodeSetCreator(java.net.URL targetURL,
java.lang.String locationURL,
java.lang.String labelXPath,
java.lang.String keyXPath,
java.lang.String descXPath)
getCodeSet
public java.io.Reader getCodeSet(Type type,
java.lang.String codeSetName,
java.lang.String versionNo)
- Description copied from interface:
CodeSet
- Returns a codeSet as an XML reader.
- Specified by:
getCodeSet
in interface CodeSet
- Parameters:
type
- holder type of this codeset definitioncodeSetName
- name of the codesetversionNo
- specifies the version number (from the appVersion in the xui definition, if none version number is null)
- Returns:
- InputStream a codeSet as an XML input stream