Package com.adobe.epubcheck.opf
Class MetadataSet.Metadata
- java.lang.Object
-
- com.adobe.epubcheck.opf.MetadataSet.Metadata
-
- Enclosing class:
- MetadataSet
public static final class MetadataSet.Metadata extends java.lang.ObjectRepresents a metadata expression.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateMetadata(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 booleanequals(java.lang.Object obj)com.google.common.base.Optional<java.lang.String>getId()The ID of the element holding the expression.PropertygetProperty()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.StringgetValue()The value of the assertion of the expression.inthashCode()booleanisPrimary()Whether this is a primary metadata expression (as opposed to a refining expression)java.lang.StringtoString()
-
-
-
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
-
refiners
private final java.util.Set<MetadataSet.Metadata> refiners
-
-
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:
trueif and only if this is a primary metadata expression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-