Class YamlConfigurationReader
- java.lang.Object
-
- org.infinispan.commons.configuration.io.AbstractConfigurationReader
-
- org.infinispan.commons.configuration.io.yaml.YamlConfigurationReader
-
- All Implemented Interfaces:
AutoCloseable,ConfigurationReader
public class YamlConfigurationReader extends AbstractConfigurationReader
- Since:
- 12.1
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYamlConfigurationReader.Parsed-
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
Constructors Constructor Description YamlConfigurationReader(Reader reader, ConfigurationResourceResolver resolver, Properties properties, PropertyReplacer replacer, NamingStrategy namingStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidendMapItem()intgetAttributeCount()StringgetAttributeName(int index, NamingStrategy strategy)StringgetAttributeNamespace(int index)StringgetAttributeValue(int index)StringgetAttributeValue(String localName, NamingStrategy strategy)StringgetElementText()StringgetLocalName(NamingStrategy strategy)LocationgetLocation()Map.Entry<String,String>getMapItem(String nameAttribute)StringgetNamespace()booleanhasFeature(ConfigurationFormatFeature feature)booleanhasNext()ConfigurationReader.ElementTypenextElement()String[]readArray(String outer, String inner)voidrequire(ConfigurationReader.ElementType type, String namespace, String name)-
Methods inherited from class org.infinispan.commons.configuration.io.AbstractConfigurationReader
getAttributeName, getAttributeValue, getLocalName, getMapItem, getNamingStrategy, getProperties, getProperty, getResourceResolver, 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
-
-
-
-
Constructor Detail
-
YamlConfigurationReader
public YamlConfigurationReader(Reader reader, ConfigurationResourceResolver resolver, Properties properties, PropertyReplacer replacer, NamingStrategy namingStrategy)
-
-
Method Detail
-
nextElement
public ConfigurationReader.ElementType nextElement()
- Returns:
- the next element
-
getLocation
public Location getLocation()
-
getAttributeName
public String getAttributeName(int index, NamingStrategy strategy)
-
getAttributeNamespace
public String getAttributeNamespace(int index)
-
getAttributeValue
public String getAttributeValue(String localName, NamingStrategy strategy)
-
getAttributeValue
public String getAttributeValue(int index)
-
getElementText
public String getElementText()
-
getLocalName
public String getLocalName(NamingStrategy strategy)
-
getNamespace
public String getNamespace()
-
hasNext
public boolean hasNext()
-
getAttributeCount
public int getAttributeCount()
-
endMapItem
public void endMapItem()
-
require
public void require(ConfigurationReader.ElementType type, String namespace, String name)
-
hasFeature
public boolean hasFeature(ConfigurationFormatFeature feature)
-
close
public void close()
-
-