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
Modifier and TypeInterfaceDescriptionstatic class
static enum
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
static ConfigurationReader.Builder
from
(InputStream is) static ConfigurationReader.Builder
static ConfigurationReader.Builder
int
getAttributeName
(int index) getAttributeName
(int index, NamingStrategy strategy) getAttributeNamespace
(int index) getAttributeValue
(int index) default String
getAttributeValue
(Enum<?> localName) default String
getAttributeValue
(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> T
getProperty
(String name) void
handleAny
(ConfigurationReaderContext context) void
handleAttribute
(ConfigurationReaderContext context, int i) boolean
hasFeature
(ConfigurationFormatFeature feature) boolean
hasNext()
default boolean
inTag()
default boolean
default boolean
String[]
String[]
default void
default void
require
(ConfigurationReader.ElementType type, String namespace, Enum<?> name) void
require
(ConfigurationReader.ElementType type, String namespace, String name) default void
setAttributeValue
(String namespace, Enum<?> localName, String value) void
setAttributeValue
(String namespace, String name, String value) void
setSchema
(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:
close
in interfaceAutoCloseable
-
setAttributeValue
-
setAttributeValue
-