public class PrismDomProcessor extends Object
Constructor and Description |
---|
PrismDomProcessor(SchemaRegistry schemaRegistry) |
Modifier and Type | Method and Description |
---|---|
<T extends Containerable> |
addItemValue(Item item,
Object element,
PrismContainer<T> container)
Parse the provided JAXB/DOM element and add it as a new value of the
specified item.
|
<T extends Containerable> |
deleteItemValue(Item item,
Object element,
PrismContainer<T> container)
Parse the provided JAXB/DOM element and delete it from the specified
item.
|
String |
determineElementNamespace(Itemable parent,
String elementDescriptionLocalName)
Determines proper name for the element with specified local name.
|
PrismContext |
getPrismContext() |
<T extends Containerable> |
parseContainerItems(PrismContainerDefinition<T> containingPcd,
List<? extends Object> valueElements,
QName propertyName,
boolean reference)
Used e.g.
|
<T extends Containerable,V extends PrismValue> |
parseContainerItems(PrismContainerDefinition<T> containingPcd,
List<Object> valueElements)
Used e.g.
|
<V extends PrismValue> |
parseItem(List<? extends Object> valueElements,
QName itemName,
ItemDefinition def)
This gets definition of an unspecified type.
|
Item<?> |
parseItem(List<? extends Object> valueElements,
QName itemName,
ItemDefinition def,
boolean reference) |
<T extends Objectable> |
parseObject(Element objectElement) |
<T extends Objectable> |
parseObject(File file) |
<T extends Objectable> |
parseObject(File file,
Class<T> type) |
<T extends Objectable> |
parseObject(Node domNode) |
<T extends Objectable> |
parseObject(String objectString) |
<T extends Objectable> |
parseObject(String objectString,
Class<T> type) |
List<PrismObject<? extends Objectable>> |
parseObjects(File file)
This is really stupid implementation.
|
<T extends Containerable> |
parsePrismContainer(Element domElement) |
<T extends Containerable> |
parsePrismContainer(Element domElement,
PrismContainerDefinition<T> propertyContainerDefinition) |
<T extends Containerable> |
parsePrismContainer(String xml,
PrismContainerDefinition<T> propertyContainerDefinition) |
<T extends Containerable> |
parsePrismContainerItems(List<Element> childElements,
PrismContainerDefinition<T> containerDefinition) |
protected <T extends Containerable> |
parsePrismContainerItems(List<Element> elements,
PrismContainerDefinition<T> containerDefinition,
Collection<? extends ItemDefinition> selection)
Parses items of PRISM CONTAINER from a list of elements.
|
<T> PrismProperty<T> |
parsePrismProperty(List<? extends Object> valueElements,
QName propName,
PrismPropertyDefinition<T> propertyDefinition) |
<T> T |
parsePrismPropertyRealValue(Object valueElement,
PrismPropertyDefinition<T> propertyDefinition) |
PrismReference |
parsePrismReference(List<? extends Object> valueElements,
QName propName,
PrismReferenceDefinition referenceDefinition) |
PrismReferenceValue |
parseReferenceValue(Element element) |
<V extends PrismValue> |
parseValueElement(Element valueElement,
ItemDefinition outputDefinition)
Returns a property value from a "value" like elements.
|
List<Element> |
serializeItemToDom(Item<?> item) |
List<Element> |
serializeItemToDom(Item<?> item,
boolean serializeCompositeObjects) |
List<Element> |
serializeItemToDom(Item<?> item,
Document document) |
List<Element> |
serializeItemToDom(Item<?> item,
Document document,
boolean serializeCompositeObjects) |
void |
serializeItemToDom(Item<?> item,
Element parentElement) |
void |
serializeItemToDom(Item<?> item,
Element parentElement,
boolean serializeCompositeObjects) |
<T extends Containerable> |
serializeObjectToString(PrismContainerValue<T> object,
Element parentElement) |
<T extends Objectable> |
serializeObjectToString(PrismObject<T> object) |
<T extends Objectable> |
serializeObjectToString(PrismObject<T> object,
boolean serializeCompositeObjects) |
<T extends Containerable> |
serializeToDom(PrismContainerValue<T> object,
Element parentElement) |
Element |
serializeToDom(PrismObject<?> object)
Returns "dead" DOM representation of the PrismObject.
|
Element |
serializeToDom(PrismObject<?> object,
boolean serializeCompositeObjects) |
void |
serializeValueToDom(PrismValue pval,
Element parentElement) |
Element |
serializeValueToDom(PrismValue pval,
QName elementName) |
Element |
serializeValueToDom(PrismValue pval,
QName elementName,
Document document) |
void |
setPrismContext(PrismContext prismContext) |
public PrismDomProcessor(SchemaRegistry schemaRegistry)
public PrismContext getPrismContext()
public void setPrismContext(PrismContext prismContext)
public <T extends Objectable> PrismObject<T> parseObject(File file, Class<T> type) throws SchemaException
SchemaException
public <T extends Objectable> PrismObject<T> parseObject(File file) throws SchemaException
SchemaException
public List<PrismObject<? extends Objectable>> parseObjects(File file) throws SchemaException
SchemaException
public <T extends Objectable> PrismObject<T> parseObject(String objectString, Class<T> type) throws SchemaException
SchemaException
public <T extends Objectable> PrismObject<T> parseObject(String objectString) throws SchemaException
SchemaException
public <T extends Objectable> PrismObject<T> parseObject(Node domNode) throws SchemaException
SchemaException
public <T extends Objectable> PrismObject<T> parseObject(Element objectElement) throws SchemaException
SchemaException
public <T extends Containerable> PrismContainer<T> parsePrismContainer(Element domElement) throws SchemaException
SchemaException
public <T extends Containerable> PrismContainer<T> parsePrismContainer(Element domElement, PrismContainerDefinition<T> propertyContainerDefinition) throws SchemaException
SchemaException
public <T extends Containerable> PrismContainer<T> parsePrismContainer(String xml, PrismContainerDefinition<T> propertyContainerDefinition) throws SchemaException
SchemaException
public <T extends Containerable> Collection<? extends Item> parsePrismContainerItems(List<Element> childElements, PrismContainerDefinition<T> containerDefinition) throws SchemaException
SchemaException
protected <T extends Containerable> Collection<? extends Item<?>> parsePrismContainerItems(List<Element> elements, PrismContainerDefinition<T> containerDefinition, Collection<? extends ItemDefinition> selection) throws SchemaException
SchemaException
public <T> PrismProperty<T> parsePrismProperty(List<? extends Object> valueElements, QName propName, PrismPropertyDefinition<T> propertyDefinition) throws SchemaException
SchemaException
public <T> T parsePrismPropertyRealValue(Object valueElement, PrismPropertyDefinition<T> propertyDefinition) throws SchemaException
SchemaException
public <V extends PrismValue> Item<V> parseValueElement(Element valueElement, ItemDefinition outputDefinition) throws SchemaException
SchemaException
public <T extends Containerable,V extends PrismValue> Collection<? extends Item<V>> parseContainerItems(PrismContainerDefinition<T> containingPcd, List<Object> valueElements) throws SchemaException
SchemaException
public <T extends Containerable> Collection<? extends Item<?>> parseContainerItems(PrismContainerDefinition<T> containingPcd, List<? extends Object> valueElements, QName propertyName, boolean reference) throws SchemaException
SchemaException
public PrismReference parsePrismReference(List<? extends Object> valueElements, QName propName, PrismReferenceDefinition referenceDefinition) throws SchemaException
SchemaException
public PrismReferenceValue parseReferenceValue(Element element)
public <V extends PrismValue> Item<V> parseItem(List<? extends Object> valueElements, QName itemName, ItemDefinition def) throws SchemaException
SchemaException
public Item<?> parseItem(List<? extends Object> valueElements, QName itemName, ItemDefinition def, boolean reference) throws SchemaException
SchemaException
public <T extends Containerable> boolean addItemValue(Item item, Object element, PrismContainer<T> container) throws SchemaException
SchemaException
public <T extends Containerable> boolean deleteItemValue(Item item, Object element, PrismContainer<T> container) throws SchemaException
SchemaException
public Element serializeToDom(PrismObject<?> object) throws SchemaException
SchemaException
public Element serializeToDom(PrismObject<?> object, boolean serializeCompositeObjects) throws SchemaException
SchemaException
public <T extends Containerable> Element serializeToDom(PrismContainerValue<T> object, Element parentElement) throws SchemaException
SchemaException
public <T extends Objectable> String serializeObjectToString(PrismObject<T> object) throws SchemaException
SchemaException
public <T extends Objectable> String serializeObjectToString(PrismObject<T> object, boolean serializeCompositeObjects) throws SchemaException
SchemaException
public <T extends Containerable> String serializeObjectToString(PrismContainerValue<T> object, Element parentElement) throws SchemaException
SchemaException
public Element serializeValueToDom(PrismValue pval, QName elementName) throws SchemaException
SchemaException
public Element serializeValueToDom(PrismValue pval, QName elementName, Document document) throws SchemaException
SchemaException
public void serializeValueToDom(PrismValue pval, Element parentElement) throws SchemaException
SchemaException
public List<Element> serializeItemToDom(Item<?> item) throws SchemaException
SchemaException
public List<Element> serializeItemToDom(Item<?> item, boolean serializeCompositeObjects) throws SchemaException
SchemaException
public List<Element> serializeItemToDom(Item<?> item, Document document) throws SchemaException
SchemaException
public List<Element> serializeItemToDom(Item<?> item, Document document, boolean serializeCompositeObjects) throws SchemaException
SchemaException
public void serializeItemToDom(Item<?> item, Element parentElement) throws SchemaException
SchemaException
public void serializeItemToDom(Item<?> item, Element parentElement, boolean serializeCompositeObjects) throws SchemaException
SchemaException
Copyright © 2013 evolveum. All rights reserved.