Class StructuralNodeModifier

  • All Implemented Interfaces:
    java.lang.Cloneable, EnableableInterface

    public class StructuralNodeModifier
    extends Enableable
    implements java.lang.Cloneable
    Represents a rule for modifying the structure of an app as it is represented in the Sites tree

    Data driven nodes are nodes that represent URL path elements that come from a database For example with http://www.example.com/a/b/c we normally assume that 'a', 'b' and 'c' are part of the structure of the application. However if 'b' is actually a value retrieved from a db then we should treat all such nodes as the same, so: http://www.example.com/a/b/c http://www.example.com/a/ddd/c http://www.example.com/a/eee/c are the same as far as the application structure is concerned - theres no point attacking all 3 as the same code will be behind them.

    Structural parameters are parameters (as opposed to URL path elements) that actually define part of the structure of an app. These are most commonly found in 'single page apps' where: http://www.example.com/a/b?page=c http://www.example.com/a/b?page=d http://www.example.com/a/b?page=e all represent different pages with different functionality. In this case the 'page' parameter should be treated as being 'structural' rather than data

    Since:
    2.4.3
    • Constructor Detail

      • StructuralNodeModifier

        public StructuralNodeModifier​(StructuralNodeModifier.Type type,
                                      java.util.regex.Pattern pattern,
                                      java.lang.String name)
      • StructuralNodeModifier

        public StructuralNodeModifier​(java.lang.String config)
    • Method Detail

      • getPattern

        public java.util.regex.Pattern getPattern()
      • setPattern

        public void setPattern​(java.util.regex.Pattern pattern)
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getConfig

        public java.lang.String getConfig()