Class DefaultInputFeed

  • All Implemented Interfaces:
    InputFeed, StatefullComponent

    public class DefaultInputFeed
    extends java.lang.Object
    implements InputFeed
    Creation-Date: 05.12.2005, 18:19:03
    Author:
    Thomas Morgner
    • Constructor Detail

      • DefaultInputFeed

        public DefaultInputFeed​(LayoutProcess process)
      • DefaultInputFeed

        protected DefaultInputFeed​(LayoutProcess process,
                                   boolean init)
    • Method Detail

      • startDocument

        public final void startDocument()
        Description copied from interface: InputFeed
        Starts the document processing. This is the first method to call. After calling this method, the meta-data should be fed into the inputfeed.
        Specified by:
        startDocument in interface InputFeed
      • performStartDocument

        protected void performStartDocument()
      • startMetaInfo

        public final void startMetaInfo()
        Description copied from interface: InputFeed
        Signals, that meta-data follows. Calling this method is only valid directly after startDocument has been called.
        Specified by:
        startMetaInfo in interface InputFeed
      • performStartMetaInfo

        protected void performStartMetaInfo()
      • addDocumentAttribute

        public final void addDocumentAttribute​(java.lang.String name,
                                               java.lang.Object attr)
        Description copied from interface: InputFeed
        Adds document attributes. Document attributes hold object factories and document wide resources which appear only once.
        Specified by:
        addDocumentAttribute in interface InputFeed
      • performAddDocumentAttribute

        protected void performAddDocumentAttribute​(java.lang.String name,
                                                   java.lang.Object attr)
      • startMetaNode

        public void startMetaNode()
        Description copied from interface: InputFeed
        Starts a new meta-node structure. Meta-Nodes are used to hold content that can appear more than once (like stylesheet declarations).

        For now, only stylesheet declarations are defined as meta-node content; more content types will surely arise in the future.

        Calling this method is only valid after 'startMetaInfo' has been called.

        Specified by:
        startMetaNode in interface InputFeed
      • performStartMetaNode

        protected void performStartMetaNode()
      • setMetaNodeAttribute

        public final void setMetaNodeAttribute​(java.lang.String name,
                                               java.lang.Object attr)
        Description copied from interface: InputFeed
        Defines an attribute for the meta-nodes. For each meta node, at least the 'type' attribute (namespace: LibLayout) should be defined.
        Specified by:
        setMetaNodeAttribute in interface InputFeed
      • performSetMetaNodeAttribute

        protected void performSetMetaNodeAttribute​(java.lang.String name,
                                                   java.lang.Object attr)
      • performEndMetaNode

        protected void performEndMetaNode()
      • performStartElement

        protected void performStartElement​(java.lang.String namespace,
                                           java.lang.String name)
      • setAttribute

        public final void setAttribute​(java.lang.String namespace,
                                       java.lang.String name,
                                       java.lang.Object attr)
        Specified by:
        setAttribute in interface InputFeed
      • performSetAttribute

        protected void performSetAttribute​(java.lang.String namespace,
                                           java.lang.String name,
                                           java.lang.Object attr)
      • getState

        protected int getState()
      • getNormalizer

        public Normalizer getNormalizer()
      • getCurrentNormalizer

        public Normalizer getCurrentNormalizer()
        Warning; This method is needed internally, mess with it from the outside and you will run into trouble. The normalizer is a statefull component and any call to it may mess up the state. From there on, 'Abandon every hope, ye who enter here'.
        Specified by:
        getCurrentNormalizer in interface InputFeed
        Returns: