Class ReferencesTrait.Reference

    • Method Detail

      • getResource

        public ShapeId getResource()
        Get the referenced shape.
        Returns:
        Returns the referenced shape.
      • getService

        public java.util.Optional<ShapeId> getService()
        Get the service binding.
        Returns:
        Returns the optionally referenced service.
      • getIds

        public java.util.Map<java.lang.String,​java.lang.String> getIds()
        Returns:
        Returns the immutable mapping of member names to resource identifier name.
      • getRel

        public java.util.Optional<java.lang.String> getRel()
        Returns:
        Gets the optional rel property.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.