Class DomConfigPayloadBuilder


  • public class DomConfigPayloadBuilder
    extends java.lang.Object
    Builder that transforms xml config to a slime tree representation of the config. The root element of the xml config must be named 'config' and have a 'name' attribute that matches the name of the ConfigDefinition. The values are not validated against their types. That task is moved to the builders.
    Author:
    Ulf Lilleengen
    • Constructor Summary

      Constructors 
      Constructor Description
      DomConfigPayloadBuilder​(com.yahoo.vespa.config.ConfigDefinition configDefinition)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.yahoo.vespa.config.ConfigPayloadBuilder build​(org.w3c.dom.Element configE)
      Builds a ConfigPayloadBuilder representing the input 'config' xml element.
      static com.yahoo.vespa.config.ConfigDefinitionKey parseConfigName​(org.w3c.dom.Element configE)  
      • Methods inherited from class java.lang.Object

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

      • DomConfigPayloadBuilder

        public DomConfigPayloadBuilder​(com.yahoo.vespa.config.ConfigDefinition configDefinition)
    • Method Detail

      • build

        public com.yahoo.vespa.config.ConfigPayloadBuilder build​(org.w3c.dom.Element configE)
        Builds a ConfigPayloadBuilder representing the input 'config' xml element.
        Parameters:
        configE - The 'config' xml element
        Returns:
        a new payload builder built from xml.
      • parseConfigName

        public static com.yahoo.vespa.config.ConfigDefinitionKey parseConfigName​(org.w3c.dom.Element configE)