Class ConfigurationElement<T extends ConfigurationElement>
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<T>
public abstract class ConfigurationElement<T extends ConfigurationElement>
extends Object
implements Matchable<T>, Updatable<T>
An abstract class which represents a configuration element, with attributes and child elements.
- Since:
- 13.0
- Author:
- Gustavo Fernandes, Tristan Tarrant
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AttributeSet
static final ConfigurationElement<?>[]
protected final ConfigurationElement<?>[]
protected final String
protected final boolean
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConfigurationElement
(Enum<?> element, AttributeSet attributes, ConfigurationElement<?>... children) protected
ConfigurationElement
(String element, boolean repeated, AttributeSet attributes, ConfigurationElement<?>... children) protected
ConfigurationElement
(String element, AttributeSet attributes, ConfigurationElement<?>... children) -
Method Summary
Modifier and TypeMethodDescriptionfinal AttributeSet
protected static ConfigurationElement<?>
ConfigurationElement<?>[]
children()
protected static <T> ConfigurationElement<?>[]
children
(Collection<T> children) final String
boolean
Attribute<?>
findAttribute
(String name) int
hashCode()
boolean
protected static <T extends ConfigurationElement>
ConfigurationElement<T>boolean
toString()
void
Updates the mutable part of this instance with the values of the other instancevoid
validateUpdate
(String parentName, T other) Verifies that updating the mutable part of this instance with the values of the other instance is possiblevoid
write
(ConfigurationWriter writer) Writes thisConfigurationElement
to the writer
-
Field Details
-
CHILDLESS
-
element
-
attributes
-
children
-
repeated
protected final boolean repeated
-
-
Constructor Details
-
ConfigurationElement
protected ConfigurationElement(Enum<?> element, AttributeSet attributes, ConfigurationElement<?>... children) -
ConfigurationElement
protected ConfigurationElement(String element, AttributeSet attributes, ConfigurationElement<?>... children) -
ConfigurationElement
protected ConfigurationElement(String element, boolean repeated, AttributeSet attributes, ConfigurationElement<?>... children)
-
-
Method Details
-
elementName
-
attributes
-
children
-
findAttribute
-
list
protected static <T extends ConfigurationElement> ConfigurationElement<T> list(Enum<?> element, List<T> list) -
matches
- Specified by:
matches
in interfaceMatchable<T extends ConfigurationElement>
-
update
Description copied from interface:Updatable
Updates the mutable part of this instance with the values of the other instance- Specified by:
update
in interfaceUpdatable<T extends ConfigurationElement>
-
validateUpdate
Description copied from interface:Updatable
Verifies that updating the mutable part of this instance with the values of the other instance is possible- Specified by:
validateUpdate
in interfaceUpdatable<T extends ConfigurationElement>
-
equals
-
hashCode
public int hashCode() -
toString
-
isModified
public boolean isModified() -
write
Writes thisConfigurationElement
to the writer- Parameters:
writer
-
-
children
-
child
-