Package com.adobe.epubcheck.vocab
Class AggregateVocab
- java.lang.Object
-
- com.adobe.epubcheck.vocab.AggregateVocab
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAggregateVocab(java.util.List<Vocab> vocabs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetURI()Returns the base URI of this vocabulary.com.google.common.base.Optional<Property>lookup(java.lang.String name)Returns whether a property in allowed in this vocabulary.static Vocabof(Vocab... vocabs)Returns a vocabulary composed of the union of the vocabularies given as parameter.
-
-
-
Field Detail
-
vocabs
private final java.util.List<Vocab> vocabs
-
uri
private final java.lang.String uri
-
-
Constructor Detail
-
AggregateVocab
private AggregateVocab(java.util.List<Vocab> vocabs)
-
-
Method Detail
-
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(java.lang.String name)
Description copied from interface:VocabReturns whether a property in allowed in this vocabulary.
-
-