Class Reference


  • @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public class Reference
    extends java.lang.Object
    Simple bean class used to contain references. References have a type and an URL
    Since:
    21.1
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Reference.Type
      Constants enumerating the resource types.
    • Constructor Summary

      Constructors 
      Constructor Description
      Reference​(Reference.Type type, java.lang.String uri)
      Constructs a new Reference with a type and an URI.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      Reference.Type getType()
      Getter for the type of the reference (static content, link, CSS, etc.)
      java.lang.String getURL()
      Getter for the string representing the URL of the external resource
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Reference

        public Reference​(Reference.Type type,
                         java.lang.String uri)
        Constructs a new Reference with a type and an URI.
        Parameters:
        type - the type of the reference
        uri - the URI
    • Method Detail

      • getURL

        public java.lang.String getURL()
        Getter for the string representing the URL of the external resource
        Returns:
        the URL of the reference as string
      • getType

        public Reference.Type getType()
        Getter for the type of the reference (static content, link, CSS, etc.)
        Returns:
        the type of the reference
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)