Configuration interface.
| Modifier and Type | Field and Description |
|---|---|
| protected static final Configuration[] | EMPTY_ARRAY
An empty (length zero) array of configuration objects. |
| private final HashMap | |
| private final ArrayList | |
| private final String | |
| private final String | |
| private final String | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | DefaultImmutableConfiguration(Configuration
the config)Configuration to do a deep copy of.Deep copy constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if they are the same.The other configuration other)Overrides java. |
| public String | Returns: aString valuea name)String valueImplements org. String.
|
| public String[] | Returns: aString[] valueImplements org. |
| public Configuration | Returns: aConfiguration valuea name, final boolean String valuea createNew)boolean valueOverrides org. Implements org. Configuration object child of this
associated with the given name.
|
| public int | |
| public Configuration[] | Returns: The child nodes with nameImplements org. Configuration
elements containing all node children.
|
| public Configuration[] | Returns: aConfiguration[] valueThe name of the required children name)Configuration.Implements org. Configuration objects
children of this associated with the given name.
|
| public String | Returns: aString valueImplements org. |
| public String | Returns: aString valueImplements org. |
| public String | Returns: aString valueImplements org. |
| protected String | Returns: aString valueImplements abstract org. |
| public String | Returns: aString valuethe default value to return if value malformed or empty defaultValue)Overrides org. Implements org. String.
|
| public String | Returns: aString valueImplements org. String.
|
| public int | Returns: the hashcode.Overrides java. |
| EMPTY_ARRAY | back to summary |
|---|---|
| protected static final Configuration[] EMPTY_ARRAY An empty (length zero) array of configuration objects. | |
| m_attributes | back to summary |
|---|---|
| private final HashMap<K, V> m_attributes | |
| m_children | back to summary |
|---|---|
| private final ArrayList<E> m_children | |
| m_location | back to summary |
|---|---|
| private final String m_location | |
| m_name | back to summary |
|---|---|
| private final String m_name | |
| m_namespace | back to summary |
|---|---|
| private final String m_namespace | |
| m_prefix | back to summary |
|---|---|
| private final String m_prefix | |
| m_value | back to summary |
|---|---|
| private final String m_value | |
| DefaultImmutableConfiguration | back to summary |
|---|---|
| public DefaultImmutableConfiguration(Configuration config) throws ConfigurationException Deep copy constructor.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Compare if this configuration is equal to another.
| |
| getAttribute | back to summary |
|---|---|
| public String getAttribute(final String name) throws ConfigurationException Implements org. Returns the value of the attribute specified by its name as a
| |
| getAttributeNames | back to summary |
|---|---|
| public String[] getAttributeNames() Implements org. Return an array of all attribute names.
| |
| getChild | back to summary |
|---|---|
| public Configuration getChild(final String name, final boolean createNew) Overrides org. Implements org. Return the first
| |
| getChildCount | back to summary |
|---|---|
| public int getChildCount() Return count of children.
| |
| getChildren | back to summary |
|---|---|
| public Configuration[] getChildren() Implements org. Return an array of
| |
| getChildren | back to summary |
|---|---|
| public Configuration[] getChildren(final String name) Implements org. Return an array of
| |
| getLocation | back to summary |
|---|---|
| public String getLocation() Implements org. Returns a description of location of element.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Returns the name of this configuration element.
| |
| getNamespace | back to summary |
|---|---|
| public String getNamespace() throws ConfigurationException Implements org. Returns the namespace of this configuration element
| |
| getPrefix | back to summary |
|---|---|
| protected String getPrefix() throws ConfigurationException Implements abstract org. Returns the prefix of the namespace
| |
| getValue | back to summary |
|---|---|
| public String getValue(final String defaultValue) Overrides org. Implements org. Returns the value of the configuration element as a | |
| getValue | back to summary |
|---|---|
| public String getValue() throws ConfigurationException Implements org. Returns the value of the configuration element as a
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Obtaine the hashcode for this configuration.
| |