Class XmlConfigurationReader
java.lang.Object
org.infinispan.commons.configuration.io.AbstractConfigurationReader
org.infinispan.commons.configuration.io.xml.XmlConfigurationReader
- All Implemented Interfaces:
AutoCloseable
,ConfigurationReader
- Since:
- 12.1
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.commons.configuration.io.ConfigurationReader
ConfigurationReader.Builder, ConfigurationReader.ElementType
-
Field Summary
Fields inherited from class org.infinispan.commons.configuration.io.AbstractConfigurationReader
namingStrategy
-
Constructor Summary
ConstructorDescriptionXmlConfigurationReader
(Reader reader, ConfigurationResourceResolver resolver, Properties properties, PropertyReplacer replacer, NamingStrategy namingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
int
getAttributeName
(int index, NamingStrategy strategy) getAttributeNamespace
(int index) getAttributeValue
(int index) getAttributeValue
(String localName, NamingStrategy strategy) getLocalName
(NamingStrategy strategy) getMapItem
(String nameAttribute) boolean
hasFeature
(ConfigurationFormatFeature feature) boolean
hasNext()
String[]
void
require
(ConfigurationReader.ElementType elementType, String namespace, String name) void
setAttributeValue
(String namespace, String name, String value) Methods inherited from class org.infinispan.commons.configuration.io.AbstractConfigurationReader
getAttributeName, getAttributeValue, getLocalName, getMapItem, getName, getNamingStrategy, getProperties, getProperty, getSchema, handleAny, handleAttribute, readArray, replaceProperties, setSchema
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.commons.configuration.io.ConfigurationReader
getAttributeValue, getAttributeValue, getListAttributeValue, inTag, inTag, inTag, require, require, setAttributeValue
-
Field Details
-
XINCLUDE
- See Also:
-
XINCLUDE_NS
- See Also:
-
-
Constructor Details
-
XmlConfigurationReader
public XmlConfigurationReader(Reader reader, ConfigurationResourceResolver resolver, Properties properties, PropertyReplacer replacer, NamingStrategy namingStrategy)
-
-
Method Details
-
getResourceResolver
- Specified by:
getResourceResolver
in interfaceConfigurationReader
- Overrides:
getResourceResolver
in classAbstractConfigurationReader
- Returns:
- the resource resolver used by this ConfigurationReader to find external references (e.g. includes)
-
require
-
hasNext
public boolean hasNext() -
nextElement
- Returns:
- the next element
-
getLocalName
-
getNamespace
-
getAttributeCount
public int getAttributeCount() -
getAttributeName
-
getAttributeValue
-
getAttributeValue
-
getElementText
-
getLocation
-
getAttributeNamespace
-
getMapItem
-
endMapItem
public void endMapItem() -
readArray
-
hasFeature
-
close
public void close() -
setAttributeValue
-