Package org.mycore.frontend.xeditor
Class MCRXEditorTransformer
java.lang.Object
org.mycore.frontend.xeditor.MCRXEditorTransformer
- Author:
- Frank Lützenkirchen
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMCRXEditorTransformer
(MCREditorSession editorSession, MCRParameterCollector transformationParameters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCleanupRule
(String xPath, String relevantIf) void
addNamespace
(String prefix, String uri) void
addValidationRule
(Node ruleElement) void
void
void
declareParameter
(String name, String defaultValue) evaluateXPath
(String xPathExpression) org.apache.xpath.NodeSet
int
org.apache.xpath.NodeSet
int
int
int
getSubselectParam
(String href) getSwapParameter
(String action) getValue()
boolean
boolean
void
initializePostprocessor
(Node postProcessorNode) boolean
boolean
void
loadResource
(String uri, String name) int
int
void
readSourceXML
(String uri) replaceParameters
(String uri) replaceXPathOrI18n
(String expression) replaceXPaths
(String text) void
setCancelURL
(String cancelURL) void
setDefault
(String value) void
setPostProcessor
(String clazz) void
boolean
void
toggleWithinSelectElement
(String attrMultiple) transform
(MCRContent editorSource) void
unbind()
-
Field Details
-
anchorID
public int anchorID
-
-
Constructor Details
-
MCRXEditorTransformer
public MCRXEditorTransformer(MCREditorSession editorSession, MCRParameterCollector transformationParameters)
-
-
Method Details
-
transform
public MCRContent transform(MCRContent editorSource) throws IOException, JDOMException, SAXException - Throws:
IOException
JDOMException
SAXException
-
addNamespace
-
readSourceXML
public void readSourceXML(String uri) throws JDOMException, IOException, SAXException, TransformerException -
setCancelURL
-
initializePostprocessor
-
setPostProcessor
-
replaceParameters
-
bind
public void bind(String xPath, String initialValue, String name) throws JDOMException, org.jaxen.JaxenException - Throws:
JDOMException
org.jaxen.JaxenException
-
setValues
-
setDefault
- Throws:
org.jaxen.JaxenException
JDOMException
-
unbind
public void unbind() -
getAbsoluteXPath
-
getValue
-
hasValue
-
toggleWithinSelectElement
-
isWithinSelectElement
public boolean isWithinSelectElement() -
isWithinSelectMultiple
public boolean isWithinSelectMultiple() -
replaceXPaths
-
replaceXPathOrI18n
-
evaluateXPath
-
test
-
getXPathEvaluator
-
repeat
public String repeat(String xPath, int minRepeats, int maxRepeats, String method) throws JDOMException, org.jaxen.JaxenException - Throws:
JDOMException
org.jaxen.JaxenException
-
getNumRepeats
public int getNumRepeats() -
getMaxRepeats
public int getMaxRepeats() -
getRepeatPosition
public int getRepeatPosition() -
bindRepeatPosition
- Throws:
JDOMException
org.jaxen.JaxenException
-
getSwapParameter
- Throws:
org.jaxen.JaxenException
-
getInsertParameter
- Throws:
org.jaxen.JaxenException
-
nextAnchorID
public int nextAnchorID() -
getAnchorID
public int getAnchorID() -
previousAnchorID
public int previousAnchorID() -
loadResource
-
addValidationRule
-
hasValidationError
public boolean hasValidationError() -
getFailedValidationRule
-
getFailedValidationRules
public org.apache.xpath.NodeSet getFailedValidationRules() -
getSubselectParam
-
getAdditionalParameters
public org.apache.xpath.NodeSet getAdditionalParameters() throws ParserConfigurationException, TransformerException -
addCleanupRule
-
declareParameter
-