Class MCRXEditorTransformer

java.lang.Object
org.mycore.frontend.xeditor.MCRXEditorTransformer

public class MCRXEditorTransformer extends Object
Author:
Frank Lützenkirchen
  • Field Details

    • anchorID

      public int anchorID
  • Constructor Details

  • Method Details

    • transform

      public MCRContent transform(MCRContent editorSource) throws IOException, JDOMException, SAXException
      Throws:
      IOException
      JDOMException
      SAXException
    • addNamespace

      public void addNamespace(String prefix, String uri)
    • readSourceXML

      public void readSourceXML(String uri) throws JDOMException, IOException, SAXException, TransformerException
      Throws:
      JDOMException
      IOException
      SAXException
      TransformerException
    • setCancelURL

      public void setCancelURL(String cancelURL)
    • initializePostprocessor

      public void initializePostprocessor(Node postProcessorNode)
    • setPostProcessor

      public void setPostProcessor(String clazz)
    • replaceParameters

      public String replaceParameters(String uri)
    • bind

      public void bind(String xPath, String initialValue, String name) throws JDOMException, org.jaxen.JaxenException
      Throws:
      JDOMException
      org.jaxen.JaxenException
    • setValues

      public void setValues(String value)
    • setDefault

      public void setDefault(String value) throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • unbind

      public void unbind()
    • getAbsoluteXPath

      public String getAbsoluteXPath()
    • getValue

      public String getValue()
    • hasValue

      public boolean hasValue(String value)
    • toggleWithinSelectElement

      public void toggleWithinSelectElement(String attrMultiple)
    • isWithinSelectElement

      public boolean isWithinSelectElement()
    • isWithinSelectMultiple

      public boolean isWithinSelectMultiple()
    • replaceXPaths

      public String replaceXPaths(String text)
    • replaceXPathOrI18n

      public String replaceXPathOrI18n(String expression)
    • evaluateXPath

      public String evaluateXPath(String xPathExpression)
    • test

      public boolean test(String xPathExpression)
    • getXPathEvaluator

      public MCRXPathEvaluator 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

      public void bindRepeatPosition() throws JDOMException, org.jaxen.JaxenException
      Throws:
      JDOMException
      org.jaxen.JaxenException
    • getSwapParameter

      public String getSwapParameter(String action) throws org.jaxen.JaxenException
      Throws:
      org.jaxen.JaxenException
    • getInsertParameter

      public String getInsertParameter() throws org.jaxen.JaxenException
      Throws:
      org.jaxen.JaxenException
    • nextAnchorID

      public int nextAnchorID()
    • getAnchorID

      public int getAnchorID()
    • previousAnchorID

      public int previousAnchorID()
    • loadResource

      public void loadResource(String uri, String name)
    • addValidationRule

      public void addValidationRule(Node ruleElement)
    • hasValidationError

      public boolean hasValidationError()
    • getFailedValidationRule

      public Node getFailedValidationRule()
    • getFailedValidationRules

      public org.apache.xpath.NodeSet getFailedValidationRules()
    • getSubselectParam

      public String getSubselectParam(String href)
    • getAdditionalParameters

      public org.apache.xpath.NodeSet getAdditionalParameters() throws ParserConfigurationException, TransformerException
      Throws:
      ParserConfigurationException
      TransformerException
    • addCleanupRule

      public void addCleanupRule(String xPath, String relevantIf)
    • declareParameter

      public void declareParameter(String name, String defaultValue)