public interface PrismParserNoIO extends PrismParser
PrismParser.ObjectHandler
Modifier and Type | Method and Description |
---|---|
PrismParserNoIO |
compat()
Switches the parser into "compatibility" (or relaxed) parsing mode.
|
PrismParserNoIO |
context(ParsingContext context)
Provides a parsing context for the parser.
|
PrismParserNoIO |
definition(ItemDefinition<?> itemDefinition)
Tells parser which definition to use when parsing item (or an item value).
|
PrismParserNoIO |
json()
Sets the language of the parser to be JSON.
|
PrismParserNoIO |
language(String language)
For string inputs: sets the data language that the parser will try to parse; null means auto-detect.
|
PrismParserNoIO |
name(QName itemName)
Tells parser what name to use for parsed item.
|
<O extends Objectable> |
parse()
Parses the input as a prism object.
|
<IV extends PrismValue,ID extends ItemDefinition> |
parseItem()
Parses the input as a prism item.
|
Object |
parseItemOrRealValue()
Parses either an item, or a real value.
|
<IV extends PrismValue> |
parseItemValue()
Parses the input as a prism value.
|
List<PrismObject<? extends Objectable>> |
parseObjects()
Parses the input as a collection of prism objects.
|
void |
parseObjectsIteratively(PrismParser.ObjectHandler handler)
Currently implemented for JSON/YAML only.
|
<T> T |
parseRealValue()
Parses a real value.
|
<T> T |
parseRealValue(Class<T> clazz)
Parses a real value - either property or container value.
|
<T> JAXBElement<T> |
parseRealValueToJaxbElement()
Parses a real value and stores it into JAXBElement, using item name derived in the usual way.
|
RootXNode |
parseToXNode()
Parses the input into RootXNode.
|
PrismParserNoIO |
strict()
Switches the parser into "strict" parsing mode.
|
PrismParserNoIO |
type(Class<?> typeClass)
Tells parser what data type to expect.
|
PrismParserNoIO |
type(QName typeName)
Tells parser what data type to expect.
|
PrismParserNoIO |
xml()
Sets the language of the parser to be XML.
|
PrismParserNoIO |
yaml()
Sets the language of the parser to be YAML.
|
@NotNull PrismParserNoIO language(@Nullable String language)
PrismParser
language
in interface PrismParser
language
- The language@NotNull PrismParserNoIO xml()
PrismParser
xml
in interface PrismParser
@NotNull PrismParserNoIO json()
PrismParser
json
in interface PrismParser
@NotNull PrismParserNoIO yaml()
PrismParser
yaml
in interface PrismParser
@NotNull PrismParserNoIO context(@NotNull ParsingContext context)
PrismParser
context
in interface PrismParser
context
- The parsing context.@NotNull PrismParserNoIO strict()
PrismParser
strict
in interface PrismParser
@NotNull PrismParserNoIO compat()
PrismParser
compat
in interface PrismParser
@NotNull PrismParserNoIO definition(ItemDefinition<?> itemDefinition)
PrismParser
definition
in interface PrismParser
itemDefinition
- The definition@NotNull PrismParserNoIO name(QName itemName)
PrismParser
name
in interface PrismParser
itemName
- Item name to use.@NotNull PrismParserNoIO type(QName typeName)
PrismParser
type
in interface PrismParser
typeName
- Data type to expect.@NotNull PrismParserNoIO type(Class<?> typeClass)
PrismParser
type
in interface PrismParser
typeClass
- Data type to expect.@NotNull <O extends Objectable> PrismObject<O> parse() throws SchemaException
PrismParser
parse
in interface PrismParser
SchemaException
<IV extends PrismValue,ID extends ItemDefinition> Item<IV,ID> parseItem() throws SchemaException
PrismParser
parseItem
in interface PrismParser
SchemaException
<IV extends PrismValue> IV parseItemValue() throws SchemaException
PrismParser
parseItemValue
in interface PrismParser
SchemaException
<T> T parseRealValue(Class<T> clazz) throws SchemaException
PrismParser
parseRealValue
in interface PrismParser
clazz
- Expected class of the data. May be null if unknown.SchemaException
<T> T parseRealValue() throws SchemaException
PrismParser
parseRealValue
in interface PrismParser
SchemaException
<T> JAXBElement<T> parseRealValueToJaxbElement() throws SchemaException
PrismParser
parseRealValueToJaxbElement
in interface PrismParser
SchemaException
RootXNode parseToXNode() throws SchemaException
PrismParser
parseToXNode
in interface PrismParser
SchemaException
Object parseItemOrRealValue() throws SchemaException
PrismParser
parseItemOrRealValue
in interface PrismParser
SchemaException
@NotNull List<PrismObject<? extends Objectable>> parseObjects() throws SchemaException
PrismParser
parseObjects
in interface PrismParser
SchemaException
void parseObjectsIteratively(@NotNull PrismParser.ObjectHandler handler) throws SchemaException
PrismParser
parseObjectsIteratively
in interface PrismParser
SchemaException
Copyright © 2019 Evolveum. All rights reserved.