Class MetadataSet.Metadata

java.lang.Object
com.adobe.epubcheck.opf.MetadataSet.Metadata
Enclosing class:
MetadataSet

public static final class MetadataSet.Metadata extends Object
Represents a metadata expression.
  • Field Details

    • id

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

      private final Property property
    • value

      private final String value
    • refines

      private final com.google.common.base.Optional<String> refines
    • refiners

      private final Set<MetadataSet.Metadata> refiners
  • Constructor Details

  • Method Details

    • getId

      public com.google.common.base.Optional<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 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<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 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 String toString()
      Overrides:
      toString in class Object
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object