Interface ConfigurationReader
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractConfigurationReader,JsonConfigurationReader,XmlConfigurationReader,YamlConfigurationReader
- Since:
- 12.1
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic enum -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidstatic ConfigurationReader.Builderfrom(InputStream is) static ConfigurationReader.Builderstatic ConfigurationReader.BuilderintgetAttributeName(int index) getAttributeName(int index, NamingStrategy strategy) getAttributeNamespace(int index) getAttributeValue(int index) default StringgetAttributeValue(Enum<?> localName) default StringgetAttributeValue(Enum<?> localName, NamingStrategy strategy) getAttributeValue(String localName) getAttributeValue(String localName, NamingStrategy strategy) default String[]getListAttributeValue(int index) Get the value of an attribute as a space-delimited string list.getLocalName(NamingStrategy strategy) getMapItem(Enum<?> nameAttribute) getMapItem(String nameAttribute) getName()<T> TgetProperty(String name) voidhandleAny(ConfigurationReaderContext context) voidhandleAttribute(ConfigurationReaderContext context, int i) booleanhasFeature(ConfigurationFormatFeature feature) booleanhasNext()default booleaninTag()default booleandefault booleanString[]String[]default voiddefault voidrequire(ConfigurationReader.ElementType type, String namespace, Enum<?> name) voidrequire(ConfigurationReader.ElementType type, String namespace, String name) default voidsetAttributeValue(String namespace, Enum<?> localName, String value) voidsetAttributeValue(String namespace, String name, String value) voidsetSchema(ConfigurationSchemaVersion schema)
-
Method Details
-
from
-
from
-
from
-
getName
String getName() -
getResourceResolver
ConfigurationResourceResolver getResourceResolver()- Returns:
- the resource resolver used by this ConfigurationReader to find external references (e.g. includes)
-
getNamingStrategy
NamingStrategy getNamingStrategy()- Returns:
- the naming strategy used by this ConfigurationReader
-
setSchema
- Parameters:
schema- the ConfigurationSchema in use
-
getSchema
ConfigurationSchemaVersion getSchema()- Returns:
- the schema
-
nextElement
ConfigurationReader.ElementType nextElement()- Returns:
- the next element
-
inTag
default boolean inTag() -
inTag
-
inTag
-
getLocation
Location getLocation() -
getProperty
-
getProperties
Properties getProperties() -
getAttributeName
-
getAttributeName
-
getAttributeNamespace
-
getAttributeValue
-
getAttributeValue
-
getAttributeValue
-
getAttributeValue
-
getAttributeValue
-
getListAttributeValue
Get the value of an attribute as a space-delimited string list.- Parameters:
index- the index of the attribute
-
getElementText
String getElementText() -
getLocalName
String getLocalName() -
getLocalName
-
getNamespace
String getNamespace() -
hasNext
boolean hasNext() -
getAttributeCount
int getAttributeCount() -
handleAny
-
handleAttribute
-
require
-
require
-
require
-
getMapItem
-
getMapItem
-
endMapItem
void endMapItem() -
readArray
-
readArray
-
hasFeature
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-
setAttributeValue
-
setAttributeValue
-