Package com.adobe.epubcheck.vocab
Class UncheckedVocab
- java.lang.Object
-
- com.adobe.epubcheck.vocab.UncheckedVocab
-
- All Implemented Interfaces:
Vocab
public final class UncheckedVocab extends java.lang.Object implements Vocab
AVocabimplementation which always return a successful lookup result. In other words, this represents an "unchecked" vocabulary which assumes that all property names are allowed. It is used to represent user-declared custom vocabularies that are not known to EpubCheck.
-
-
Constructor Summary
Constructors Constructor Description UncheckedVocab(java.lang.String base, java.lang.String prefix)Creates a new unchecked vocabulary representing properties whose URIs start withbaseand short names have the prefixprefix.
-
Method Summary
All 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 a reference to a newPropertywith the short namename, the same prefix and stem URI as was given when creating this vocabulary.
-
-
-
Constructor Detail
-
UncheckedVocab
public UncheckedVocab(java.lang.String base, java.lang.String prefix)Creates a new unchecked vocabulary representing properties whose URIs start withbaseand short names have the prefixprefix.- Parameters:
base- the URI stem used to generate URIs of properties in this vocabulary.prefix- the prefix used for property names.
-
-