|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.taxon.MapFudgeTaxonomy
org.fudgemsg.taxon.PropertyFileTaxonomy
public class PropertyFileTaxonomy
An immutable taxonomy implementation based a properties file.
Field Summary |
---|
Fields inherited from class org.fudgemsg.taxon.MapFudgeTaxonomy |
---|
EMPTY |
Constructor Summary | |
---|---|
PropertyFileTaxonomy(Properties properties)
Creates a taxonomy from a Properties instance. |
|
PropertyFileTaxonomy(ResourceBundle resourceBundle)
Creates a taxonomy from a ResourceBundle . |
|
PropertyFileTaxonomy(URL url)
Creates a taxonomy from an XML document at a URL . |
Method Summary |
---|
Methods inherited from class org.fudgemsg.taxon.MapFudgeTaxonomy |
---|
fromFudgeMsg, getFieldName, getFieldOrdinal, toFudgeMsg |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyFileTaxonomy(ResourceBundle resourceBundle)
ResourceBundle
.
For example:
MyTaxonomy.properties 1 = id 2 = name 3 = email 4 = telephoneCould be loaded using:
new PropertyFileTaxonomy(ResourceBundle.getBundle("MyTaxonomy"))
resourceBundle
- the taxonomy representation to load, not nullpublic PropertyFileTaxonomy(Properties properties)
Properties
instance.
The keys are the ordinals and the values are the field names.
properties
- the taxonomy representationpublic PropertyFileTaxonomy(URL url)
URL
.
The URL must point to an XML document that can be loaded with
Properties.loadFromXML(java.io.InputStream)
.
url
- URL pointing toward an XML document that describes the taxonomy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |