| Modifier and Type | Field and Description |
|---|---|
| private static XmlParser | |
| private static Class | |
| private static Class | |
| private XmlParser. | |
| private Map | |
| private Map | |
| private static final Integer |
| Access | Constructor and Description | ||
|---|---|---|---|
| public | |||
| public | XmlConfiguration(String String of XML configuration commands excluding the normal XML preamble.
The String should start with a "
Constructor. public | XmlConfiguration(InputStream
An input stream containing a complete e.g. configuration file configuration)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private Object | |
| public void | |
| public Object | |
| private void | |
| private Object | |
| public Map | |
| public Map | |
| private static synchronized void | |
| private Object | |
| public static void | |
| private Object | |
| private Object | |
| private Object | |
| private Class | |
| private Object | |
| private void | |
| private Object | |
| private void | |
| public void | |
| public void | |
| private Object |
| __parser | back to summary |
|---|---|
| private static XmlParser __parser | |
| __primitiveHolders | back to summary |
|---|---|
| private static Class<T>[] __primitiveHolders | |
| __primitives | back to summary |
|---|---|
| private static Class<T>[] __primitives | |
| _config | back to summary |
|---|---|
| private XmlParser. | |
| _idMap | back to summary |
|---|---|
| private Map<K, V> _idMap | |
| _propertyMap | back to summary |
|---|---|
| private Map<K, V> _propertyMap | |
| ZERO | back to summary |
|---|---|
| private static final Integer ZERO | |
| XmlConfiguration | back to summary |
|---|---|
| public XmlConfiguration(URL configuration) throws SAXException, IOException Constructor. Reads the XML configuration file. | |
| XmlConfiguration | back to summary |
|---|---|
| public XmlConfiguration(String configuration) throws SAXException, IOException Constructor.
| |
| XmlConfiguration | back to summary |
|---|---|
| public XmlConfiguration(InputStream configuration) throws SAXException, IOException Constructor.
| |
| call | back to summary |
|---|---|
| private Object call(Object obj, XmlParser. | |
| configure | back to summary |
|---|---|
| public void configure(Object obj) throws Exception Configure an object. If the object is of the approprate class, the XML configuration script is applied to the object.
| |
| configure | back to summary |
|---|---|
| public Object configure() throws Exception Configure an object. If the configuration has an ID, an object is looked up by ID and it's type check. Otherwise a new object is created.
| |
| configure | back to summary |
|---|---|
| private void configure(Object obj, XmlParser. | |
| get | back to summary |
|---|---|
| private Object get(Object obj, XmlParser. | |
| getIdMap | back to summary |
|---|---|
| public Map | |
| getProperties | back to summary |
|---|---|
| public Map | |
| initParser | back to summary |
|---|---|
| private static synchronized void initParser() throws IOException | |
| itemValue | back to summary |
|---|---|
| private Object itemValue(Object obj, Object item) throws Exception | |
| main | back to summary |
|---|---|
| public static void main(String[] args) Run the XML configurations as a main application. The command line is used to obtain properties files (must be named '*.properties') and XmlConfiguration files.
Any property file on the command line is added to a combined Property instance that is passed to
each configuration file via
Each configuration file on the command line is used to create a new XmlConfiguration instance and the
Any IDs created in a configuration are passed to the next configuration file on the command line using
| |
| newArray | back to summary |
|---|---|
| private Object newArray(Object obj, XmlParser. | |
| newMap | back to summary |
|---|---|
| private Object newMap(Object obj, XmlParser. | |
| newObj | back to summary |
|---|---|
| private Object newObj(Object obj, XmlParser. | |
| nodeClass | back to summary |
|---|---|
| private Class | |
| propertyObj | back to summary |
|---|---|
| private Object propertyObj(Object obj, XmlParser. | |
| put | back to summary |
|---|---|
| private void put(Object obj, XmlParser. | |
| refObj | back to summary |
|---|---|
| private Object refObj(Object obj, XmlParser. | |
| set | back to summary |
|---|---|
| private void set(Object obj, XmlParser. | |
| setIdMap | back to summary |
|---|---|
| public void setIdMap(Map<K, V> map) | |
| setProperties | back to summary |
|---|---|
| public void setProperties(Map<K, V> map) | |
| value | back to summary |
|---|---|
| private Object value(Object obj, XmlParser. | |