Class UrlNode

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class UrlNode
    extends LeafNode<java.io.File>
    Represents a 'url' in a ConfigInstance, which will be downloaded and made available as a File. Stored in the config builder as a UrlReference to identify fields of this type for special handling in the ConfigPayloadApplier.
    Author:
    lesters
    • Constructor Detail

      • UrlNode

        public UrlNode()
    • Method Detail

      • value

        public java.io.File value()
        Overrides:
        value in class LeafNode<java.io.File>
      • toString

        public java.lang.String toString()
        Description copied from class: LeafNode
        Subclasses must implement this, in compliance with the rules given in the return tag.
        Specified by:
        toString in class LeafNode<java.io.File>
        Returns:
        the String representation of the node value, or the string "(null)" if the value is null.
      • getValue

        public java.lang.String getValue()
        Description copied from class: LeafNode
        Subclasses must implement this, in compliance with the rules given in the return tag.
        Specified by:
        getValue in class LeafNode<java.io.File>
        Returns:
        the String representation of the node value, or the 'null' object if the node value is null.
      • doSetValue

        protected boolean doSetValue​(java.lang.String value)
        Specified by:
        doSetValue in class LeafNode<java.io.File>
      • toUrlReferences

        public static java.util.List<UrlReference> toUrlReferences​(java.util.List<UrlNode> urlNodes)
      • toUrlReferenceMap

        public static java.util.Map<java.lang.String,​UrlReference> toUrlReferenceMap​(java.util.Map<java.lang.String,​UrlNode> urlNodeMap)