Class ContentNormalizer.ContentNormalizerState

  • All Implemented Interfaces:
    java.io.Serializable, State
    Enclosing class:
    ContentNormalizer

    protected static class ContentNormalizer.ContentNormalizerState
    extends java.lang.Object
    implements State
    See Also:
    Serialized Form
    • Constructor Detail

      • ContentNormalizerState

        protected ContentNormalizerState()
    • Method Detail

      • getRecordingContentNormalizerState

        public State getRecordingContentNormalizerState()
      • setRecordingContentNormalizerState

        public void setRecordingContentNormalizerState​(State recordingContentNormalizerState)
      • getModelBuilderState

        public State getModelBuilderState()
      • setModelBuilderState

        public void setModelBuilderState​(State modelBuilderState)
      • setCurrentElement

        public void setCurrentElement​(LayoutElement currentElement)
      • setCurrentSilbling

        public void setCurrentSilbling​(LayoutElement currentSilbling)
      • getNextId

        public long getNextId()
      • setNextId

        public void setNextId​(long nextId)
      • restore

        public StatefullComponent restore​(LayoutProcess layoutProcess)
                                   throws StateException
        Creates a restored instance of the saved component.

        By using this factory-like approach, we gain independence from having to know the actual implementation. This makes things a lot easier.

        Specified by:
        restore in interface State
        Parameters:
        layoutProcess - the layout process that controls it all
        Returns:
        the saved state
        Throws:
        StateException