Class AggregateVocab

java.lang.Object
com.adobe.epubcheck.vocab.AggregateVocab
All Implemented Interfaces:
Vocab

public class AggregateVocab extends Object implements Vocab
  • Field Details

  • Constructor Details

    • AggregateVocab

      private AggregateVocab(List<Vocab> vocabs)
  • Method Details

    • of

      public static Vocab of(Vocab... vocabs)
      Returns a vocabulary composed of the union of the vocabularies given as parameter. The given vocabularies must have the same base URI.
      Parameters:
      vocabs - the vocabularies to aggregate.
      Returns:
      the aggregated vocabulary.
    • lookup

      public com.google.common.base.Optional<Property> lookup(String name)
      Description copied from interface: Vocab
      Returns whether a property in allowed in this vocabulary.
      Specified by:
      lookup in interface Vocab
      Parameters:
      name - the property name (unprefixed).
      Returns:
      an Property reference which contains a Property if the lookup was successful or nothing if the property was not found in this vocabulary.
    • getURI

      public String getURI()
      Description copied from interface: Vocab
      Returns the base URI of this vocabulary.
      Specified by:
      getURI in interface Vocab
      Returns:
      the base URI of this vocabulary.