Class XmlConfigurationReader
- java.lang.Object
-
- org.infinispan.commons.configuration.io.AbstractConfigurationReader
-
- org.infinispan.commons.configuration.io.xml.XmlConfigurationReader
-
- All Implemented Interfaces:
AutoCloseable
,ConfigurationReader
public class XmlConfigurationReader extends AbstractConfigurationReader
- Since:
- 12.1
- Author:
- Tristan Tarrant <[email protected]>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.commons.configuration.io.ConfigurationReader
ConfigurationReader.Builder, ConfigurationReader.ElementType
-
-
Field Summary
Fields Modifier and Type Field Description static String
XINCLUDE
static String
XINCLUDE_NS
-
Fields inherited from class org.infinispan.commons.configuration.io.AbstractConfigurationReader
namingStrategy
-
-
Constructor Summary
Constructors Constructor Description XmlConfigurationReader(Reader reader, ConfigurationResourceResolver resolver, Properties properties, PropertyReplacer replacer, NamingStrategy namingStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
endMapItem()
int
getAttributeCount()
String
getAttributeName(int index, NamingStrategy strategy)
String
getAttributeNamespace(int index)
String
getAttributeValue(int index)
String
getAttributeValue(String localName, NamingStrategy strategy)
String
getElementText()
String
getLocalName(NamingStrategy strategy)
Location
getLocation()
Map.Entry<String,String>
getMapItem(String nameAttribute)
String
getNamespace()
ConfigurationResourceResolver
getResourceResolver()
boolean
hasFeature(ConfigurationFormatFeature feature)
boolean
hasNext()
ConfigurationReader.ElementType
nextElement()
String[]
readArray(String outer, String inner)
void
require(ConfigurationReader.ElementType elementType, String namespace, String name)
-
Methods inherited from class org.infinispan.commons.configuration.io.AbstractConfigurationReader
getAttributeName, getAttributeValue, getLocalName, getMapItem, 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
-
-
-
-
Field Detail
-
XINCLUDE
public static final String XINCLUDE
- See Also:
- Constant Field Values
-
XINCLUDE_NS
public static final String XINCLUDE_NS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XmlConfigurationReader
public XmlConfigurationReader(Reader reader, ConfigurationResourceResolver resolver, Properties properties, PropertyReplacer replacer, NamingStrategy namingStrategy)
-
-
Method Detail
-
getResourceResolver
public ConfigurationResourceResolver 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
public void require(ConfigurationReader.ElementType elementType, String namespace, String name)
-
hasNext
public boolean hasNext()
-
nextElement
public ConfigurationReader.ElementType nextElement()
- Returns:
- the next element
-
getLocalName
public String getLocalName(NamingStrategy strategy)
-
getNamespace
public String getNamespace()
-
getAttributeCount
public int getAttributeCount()
-
getAttributeName
public String getAttributeName(int index, NamingStrategy strategy)
-
getAttributeValue
public String getAttributeValue(int index)
-
getAttributeValue
public String getAttributeValue(String localName, NamingStrategy strategy)
-
getElementText
public String getElementText()
-
getLocation
public Location getLocation()
-
getAttributeNamespace
public String getAttributeNamespace(int index)
-
endMapItem
public void endMapItem()
-
hasFeature
public boolean hasFeature(ConfigurationFormatFeature feature)
-
close
public void close()
-
-