Class JRComponentRule


  • public class JRComponentRule
    extends org.apache.commons.digester.Rule
    A digester rule that links a Component object with its parent JRDesignComponentElement.

    This rules also sets the component type key on the component element via JRDesignComponentElement.setComponentKey(ComponentKey). The component type key is created based on information from the XML component node; the node namespace is used as component type namespace and the node name is used as component name.

    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EXCEPTION_MESSAGE_KEY_INVALID_INSTANCE  
      • Fields inherited from class org.apache.commons.digester.Rule

        digester, namespaceURI
    • Constructor Summary

      Constructors 
      Constructor Description
      JRComponentRule()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void end​(java.lang.String namespace, java.lang.String name)  
      static JRComponentRule newInstance()  
      • Methods inherited from class org.apache.commons.digester.Rule

        begin, begin, body, body, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
      • Methods inherited from class java.lang.Object

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

      • EXCEPTION_MESSAGE_KEY_INVALID_INSTANCE

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_INVALID_INSTANCE
        See Also:
        Constant Field Values
    • Constructor Detail

      • JRComponentRule

        public JRComponentRule()
    • Method Detail

      • end

        public void end​(java.lang.String namespace,
                        java.lang.String name)
                 throws JRException
        Overrides:
        end in class org.apache.commons.digester.Rule
        Throws:
        JRException