Class SpecBuilder<T extends BaseSpec>

  • Type Parameters:
    T -
    Direct Known Subclasses:
    ShiftrSpecBuilder, TemplatrSpecBuilder

    public abstract class SpecBuilder<T extends BaseSpec>
    extends java.lang.Object
    Factory class that provides a factory method create(...) that takes itself as argument to specify how to handle child specs
    • Constructor Summary

      Constructors 
      Constructor Description
      SpecBuilder()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract T createSpec​(java.lang.String lhsKey, java.lang.Object rhsSpec)
      Given a lhs key and rhs spec object, determine, create and return appropriate spec
      java.util.List<T> createSpec​(java.util.Map<java.lang.String,​java.lang.Object> rawSpec)
      Recursively walk the spec input tree.
      • Methods inherited from class java.lang.Object

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

      • SpecBuilder

        public SpecBuilder()
    • Method Detail

      • createSpec

        public java.util.List<T> createSpec​(java.util.Map<java.lang.String,​java.lang.Object> rawSpec)
        Recursively walk the spec input tree.
      • createSpec

        public abstract T createSpec​(java.lang.String lhsKey,
                                     java.lang.Object rhsSpec)
        Given a lhs key and rhs spec object, determine, create and return appropriate spec
        Parameters:
        lhsKey - lhs key
        rhsSpec - rhs Spec
        Returns:
        Spec object