Class ConfigurationElement<T extends ConfigurationElement>
- java.lang.Object
-
- org.infinispan.commons.configuration.attributes.ConfigurationElement<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeSet
attributes
static ConfigurationElement<?>[]
CHILDLESS
protected ConfigurationElement<?>[]
children
protected String
element
protected boolean
repeated
-
Constructor Summary
Constructors Modifier Constructor Description protected
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeSet
attributes()
protected static ConfigurationElement<?>
child(Attribute<?> attribute)
ConfigurationElement<?>[]
children()
protected static <T> ConfigurationElement<?>[]
children(Collection<T> children)
String
elementName()
boolean
equals(Object o)
Attribute<?>
findAttribute(String name)
int
hashCode()
boolean
isModified()
protected static <T extends ConfigurationElement>
ConfigurationElement<T>list(Enum<?> element, List<T> list)
boolean
matches(T other)
String
toString()
void
update(T other)
Updates the mutable part of this instance with the values of the other instancevoid
validateUpdate(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 Detail
-
CHILDLESS
public static final ConfigurationElement<?>[] CHILDLESS
-
element
protected final String element
-
attributes
protected final AttributeSet attributes
-
children
protected final ConfigurationElement<?>[] children
-
repeated
protected final boolean repeated
-
-
Constructor Detail
-
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 Detail
-
elementName
public final String elementName()
-
attributes
public final AttributeSet attributes()
-
children
public ConfigurationElement<?>[] children()
-
list
protected static <T extends ConfigurationElement> ConfigurationElement<T> list(Enum<?> element, List<T> list)
-
matches
public boolean matches(T other)
- Specified by:
matches
in interfaceMatchable<T extends ConfigurationElement>
-
update
public void update(T other)
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
public void validateUpdate(T other)
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>
-
isModified
public boolean isModified()
-
write
public void write(ConfigurationWriter writer)
Writes thisConfigurationElement
to the writer- Parameters:
writer
-
-
children
protected static <T> ConfigurationElement<?>[] children(Collection<T> children)
-
child
protected static ConfigurationElement<?> child(Attribute<?> attribute)
-
-