Class ConfigurationElement<T extends ConfigurationElement>
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<T>
- Direct Known Subclasses:
AuthenticationConfiguration,AuthorizationConfiguration,BackupConfiguration,BackupForConfiguration,ClusteringConfiguration,Configuration,ContentTypeConfiguration,CorsConfiguration,CorsRuleConfiguration,CounterManagerConfiguration,EncodingConfiguration,EncryptionConfiguration,ExpirationConfiguration,GroupsConfiguration,HashConfiguration,IndexingConfiguration,IndexMergeConfiguration,IndexReaderConfiguration,IndexWriterConfiguration,L1Configuration,LockingConfiguration,MemoryConfiguration,PartitionHandlingConfiguration,ProtocolServerConfiguration,QueryConfiguration,RecoveryConfiguration,SaslConfiguration,SitesConfiguration,SniConfiguration,SslConfiguration,SslConfiguration,StackFileConfiguration,StateTransferConfiguration,StatisticsConfiguration,TakeOfflineConfiguration,TopologyCacheConfiguration,TransactionConfiguration,UnsafeConfiguration,XSiteStateTransferConfiguration
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
FieldsModifier and TypeFieldDescriptionprotected final AttributeSetstatic final ConfigurationElement<?>[]protected final ConfigurationElement<?>[]protected final Stringprotected final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConfigurationElement(Enum<?> element, AttributeSet attributes, ConfigurationElement<?>... children) protectedConfigurationElement(String element, boolean repeated, AttributeSet attributes, ConfigurationElement<?>... children) protectedConfigurationElement(String element, AttributeSet attributes, ConfigurationElement<?>... children) -
Method Summary
Modifier and TypeMethodDescriptionfinal AttributeSetprotected static ConfigurationElement<?>ConfigurationElement<?>[]children()protected static <T> ConfigurationElement<?>[]children(Collection<T> children) final StringbooleanAttribute<?>findAttribute(String name) inthashCode()booleanprotected static <T extends ConfigurationElement>
ConfigurationElement<T>booleantoString()voidUpdates the mutable part of this instance with the values of the other instancevoidvalidateUpdate(String parentName, T other) Verifies that updating the mutable part of this instance with the values of the other instance is possiblevoidwrite(ConfigurationWriter writer) Writes thisConfigurationElementto 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:
matchesin interfaceMatchable<T extends ConfigurationElement>
-
update
Description copied from interface:UpdatableUpdates the mutable part of this instance with the values of the other instance- Specified by:
updatein interfaceUpdatable<T extends ConfigurationElement>
-
validateUpdate
Description copied from interface:UpdatableVerifies that updating the mutable part of this instance with the values of the other instance is possible- Specified by:
validateUpdatein interfaceUpdatable<T extends ConfigurationElement>
-
equals
-
hashCode
public int hashCode() -
toString
-
isModified
public boolean isModified() -
write
Writes thisConfigurationElementto the writer- Parameters:
writer-
-
children
-
child
-