Class MCRWorkflowRuleAdapter


  • public class MCRWorkflowRuleAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​org.mycore.parsers.bool.MCRCondition<?>>
    A JAXB XML Adapter that parses String to MCRCondition an back.
    Author:
    Thomas Scheffler (yagee)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.mycore.parsers.bool.MCRBooleanClauseParser getClauseParser()
      Returns a parser instance that is used in unmarshal(String).
      java.lang.String marshal​(org.mycore.parsers.bool.MCRCondition<?> v)  
      org.mycore.parsers.bool.MCRCondition<?> unmarshal​(java.lang.String v)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MCRWorkflowRuleAdapter

        public MCRWorkflowRuleAdapter()
    • Method Detail

      • getClauseParser

        protected org.mycore.parsers.bool.MCRBooleanClauseParser getClauseParser()
        Returns a parser instance that is used in unmarshal(String).
        Returns:
        instance of MCRWorkflowRuleParser
      • unmarshal

        public org.mycore.parsers.bool.MCRCondition<?> unmarshal​(java.lang.String v)
                                                          throws java.lang.Exception
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​org.mycore.parsers.bool.MCRCondition<?>>
        Throws:
        java.lang.Exception
      • marshal

        public java.lang.String marshal​(org.mycore.parsers.bool.MCRCondition<?> v)
                                 throws java.lang.Exception
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​org.mycore.parsers.bool.MCRCondition<?>>
        Throws:
        java.lang.Exception