Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.config.xml.preprocessor
Class AbstractElementMergingPreprocessor

java.lang.Object
  extended by com.tangosol.coherence.config.xml.preprocessor.AbstractElementMergingPreprocessor

Direct Known Subclasses:
SchemeRefPreprocessor

public abstract class AbstractElementMergingPreprocessor
extends java.lang.Object

An AbstractElementMergingPreprocessor provides the ability to merge and track the origin of merged XmlElements into other XmlElements. This is useful when we'd like to both perform an track how XmlElements are merged from other XmlElements or documents.

Since:
Coherence 12.1.2
Author:
bo 2012.10.31

Field Summary
static java.lang.String ORIGINATED_FROM_ATTR
          The attribute that holds all of the origination URIs.

 

Constructor Summary
AbstractElementMergingPreprocessor()
          Constructs an AbstractElementMergingPreprocessor.

 

Method Summary
 void addOriginatedFromAttribute(XmlElement xmlElement, java.lang.String sType, java.lang.String sLocation)
          Adds the specified "type://location" to the "originated-from" attribute of the provided XmlElement.
 void setMaintainOriginatedFromAttribute(boolean fMaintainOriginatedFromAttribute)
          Sets whether or not the "originated-from" attribute should be added to merged elements.

 

Field Detail

ORIGINATED_FROM_ATTR

public static final java.lang.String ORIGINATED_FROM_ATTR
The attribute that holds all of the origination URIs.
See Also:
Constant Field Values

Constructor Detail

AbstractElementMergingPreprocessor

public AbstractElementMergingPreprocessor()
Constructs an AbstractElementMergingPreprocessor.

Method Detail

setMaintainOriginatedFromAttribute

public void setMaintainOriginatedFromAttribute(boolean fMaintainOriginatedFromAttribute)
Sets whether or not the "originated-from" attribute should be added to merged elements. The default is true.
Parameters:
fMaintainOriginatedFromAttribute - true if the attribute should be added and updated, false otherwise

addOriginatedFromAttribute

public void addOriginatedFromAttribute(XmlElement xmlElement,
                                       java.lang.String sType,
                                       java.lang.String sLocation)
Adds the specified "type://location" to the "originated-from" attribute of the provided XmlElement. Should the attribute already be defined, the type://location is added to the end of the attribute (making it a comma separated list).
Parameters:
xmlElement - the XmlElement to which to add the attribute
sType - the type of location origin. eg: operational, defaults, file
sLocation - the location

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.