Class MetadataSet.Metadata

  • Enclosing class:
    MetadataSet

    public static final class MetadataSet.Metadata
    extends java.lang.Object
    Represents a metadata expression.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.google.common.base.Optional<java.lang.String> id  
      private Property property  
      private java.util.Set<MetadataSet.Metadata> refiners  
      private com.google.common.base.Optional<java.lang.String> refines  
      private java.lang.String value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Metadata​(java.lang.String id, Property property, java.lang.String value, java.lang.String refines, java.util.Set<MetadataSet.Metadata> refiners)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      com.google.common.base.Optional<java.lang.String> getId()
      The ID of the element holding the expression.
      Property getProperty()
      The property representing the statement of the expression.
      java.util.Set<MetadataSet.Metadata> getRefiners()
      The set of metadata expressions refining this metadata expression.
      com.google.common.base.Optional<java.lang.String> getRefines()
      The ID of the resource or expression refined by this expression.
      java.lang.String getValue()
      The value of the assertion of the expression.
      int hashCode()  
      boolean isPrimary()
      Whether this is a primary metadata expression (as opposed to a refining expression)
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • id

        private final com.google.common.base.Optional<java.lang.String> id
      • property

        private final Property property
      • value

        private final java.lang.String value
      • refines

        private final com.google.common.base.Optional<java.lang.String> refines
    • Constructor Detail

      • Metadata

        private Metadata​(java.lang.String id,
                         Property property,
                         java.lang.String value,
                         java.lang.String refines,
                         java.util.Set<MetadataSet.Metadata> refiners)
    • Method Detail

      • getId

        public com.google.common.base.Optional<java.lang.String> getId()
        The ID of the element holding the expression.
        Returns:
        the ID of the element holding the expression (possibly absent).
      • getProperty

        public Property getProperty()
        The property representing the statement of the expression.
        Returns:
        the property representing the statement of the expression.
      • getValue

        public java.lang.String getValue()
        The value of the assertion of the expression.
        Returns:
        the value of the assertion of the expression.
      • getRefines

        public com.google.common.base.Optional<java.lang.String> getRefines()
        The ID of the resource or expression refined by this expression.
        Returns:
        the ID of the resource or expression refined by this expression (possibly absent).
      • getRefiners

        public java.util.Set<MetadataSet.Metadata> getRefiners()
        The set of metadata expressions refining this metadata expression.
        Returns:
        the set (possibly empty) of metadata expressions refining this metadata expression.
      • isPrimary

        public boolean isPrimary()
        Whether this is a primary metadata expression (as opposed to a refining expression)
        Returns:
        true if and only if this is a primary metadata expression
      • toString

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

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

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