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)
PrismParserlanguage in interface PrismParserlanguage - The language@NotNull PrismParserNoIO xml()
PrismParserxml in interface PrismParser@NotNull PrismParserNoIO json()
PrismParserjson in interface PrismParser@NotNull PrismParserNoIO yaml()
PrismParseryaml in interface PrismParser@NotNull PrismParserNoIO context(@NotNull ParsingContext context)
PrismParsercontext in interface PrismParsercontext - The parsing context.@NotNull PrismParserNoIO strict()
PrismParserstrict in interface PrismParser@NotNull PrismParserNoIO compat()
PrismParsercompat in interface PrismParser@NotNull PrismParserNoIO definition(ItemDefinition<?> itemDefinition)
PrismParserdefinition in interface PrismParseritemDefinition - The definition@NotNull PrismParserNoIO name(QName itemName)
PrismParsername in interface PrismParseritemName - Item name to use.@NotNull PrismParserNoIO type(QName typeName)
PrismParsertype in interface PrismParsertypeName - Data type to expect.@NotNull PrismParserNoIO type(Class<?> typeClass)
PrismParsertype in interface PrismParsertypeClass - Data type to expect.@NotNull <O extends Objectable> PrismObject<O> parse() throws SchemaException
PrismParserparse in interface PrismParserSchemaException<IV extends PrismValue,ID extends ItemDefinition> Item<IV,ID> parseItem() throws SchemaException
PrismParserparseItem in interface PrismParserSchemaException<IV extends PrismValue> IV parseItemValue() throws SchemaException
PrismParserparseItemValue in interface PrismParserSchemaException<T> T parseRealValue(Class<T> clazz) throws SchemaException
PrismParserparseRealValue in interface PrismParserclazz - Expected class of the data. May be null if unknown.SchemaException<T> T parseRealValue()
throws SchemaException
PrismParserparseRealValue in interface PrismParserSchemaException<T> JAXBElement<T> parseRealValueToJaxbElement() throws SchemaException
PrismParserparseRealValueToJaxbElement in interface PrismParserSchemaExceptionRootXNode parseToXNode() throws SchemaException
PrismParserparseToXNode in interface PrismParserSchemaExceptionObject parseItemOrRealValue() throws SchemaException
PrismParserparseItemOrRealValue in interface PrismParserSchemaException@NotNull List<PrismObject<? extends Objectable>> parseObjects() throws SchemaException
PrismParserparseObjects in interface PrismParserSchemaExceptionvoid parseObjectsIteratively(@NotNull
PrismParser.ObjectHandler handler)
throws SchemaException
PrismParserparseObjectsIteratively in interface PrismParserSchemaExceptionCopyright © 2019 Evolveum. All rights reserved.