Class RdfResourceImpl

java.lang.Object
no.hasmac.rdf.impl.RdfResourceImpl
All Implemented Interfaces:
RdfResource, RdfValue

final class RdfResourceImpl extends Object implements RdfResource
  • Field Details

    • value

      private final String value
    • blankNode

      private final boolean blankNode
  • Constructor Details

    • RdfResourceImpl

      protected RdfResourceImpl(String value, boolean isBlankNode)
  • Method Details

    • isBlankNode

      public boolean isBlankNode()
      Description copied from interface: RdfValue
      Indicates if the value type is blank node identifier.
      Specified by:
      isBlankNode in interface RdfValue
      Returns:
      true if the value type is blank node, false otherwise.
    • isIRI

      public boolean isIRI()
      Description copied from interface: RdfValue
      Indicates if the value type is an absolute IRI.
      Specified by:
      isIRI in interface RdfValue
      Returns:
      true if the value type is IRI, false otherwise.
    • getValue

      public String getValue()
      Description copied from interface: RdfValue
      Returns raw String representation of the value.
      Specified by:
      getValue in interface RdfValue
      Returns:
      text representing the value.
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface RdfValue
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface RdfValue
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface RdfValue
      Overrides:
      toString in class Object