Class UrlNode

All Implemented Interfaces:
Cloneable

public class UrlNode extends LeafNode<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 Details

    • UrlNode

      public UrlNode()
    • UrlNode

      public UrlNode(UrlReference url)
    • UrlNode

      public UrlNode(String url)
  • Method Details

    • value

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

      public 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<File>
      Returns:
      the String representation of the node value, or the string "(null)" if the value is null.
    • getValue

      public 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<File>
      Returns:
      the String representation of the node value, or the 'null' object if the node value is null.
    • doSetValue

      protected boolean doSetValue(String value)
      Specified by:
      doSetValue in class LeafNode<File>
    • getUrlReference

      public UrlReference getUrlReference()
    • toUrlReferences

      public static List<UrlReference> toUrlReferences(List<UrlNode> urlNodes)
    • toUrlReferenceMap

      public static Map<String,UrlReference> toUrlReferenceMap(Map<String,UrlNode> urlNodeMap)