Class Property
java.lang.Object
com.adobe.epubcheck.vocab.Property
Represents a value of the
property datatype, as listed in
vocabulary of properties.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the full URI value of this property.getName()Returns the short name (afa "reference") of this property.Returns the prefixed name (aka CURIE) of this property.Returns the vocab URI of this property.inthashCode()booleanisAllowed(ValidationContext context) Returns whether this property is allowed in the given validation context.booleanReturns whether this property is deprecated.static PropertyCreates a new instance from a short name, a prefix, and a stem URI.static PropertyCreates a new instance from a short name, a prefix, and a stem URI, and an optionalEnumitem used to represent this property in known vocabularies.Enum<?> toEnum()Returns theEnumitem that is used to represent this property in enum-based vocabularies.toString()
-
Field Details
-
base
-
name
-
prefixedName
-
fullName
-
enumee
-
status
-
-
Constructor Details
-
Property
-
-
Method Details
-
newFrom
Creates a new instance from a short name, a prefix, and a stem URI.- Parameters:
name- the short name of the property (aka "reference").base- the stem URI used to compute the full URI value.prefix- the prefix used in the CURIE form.- Returns:
-
newFrom
Creates a new instance from a short name, a prefix, and a stem URI, and an optionalEnumitem used to represent this property in known vocabularies.- Parameters:
name- the short name of the property (aka "reference").base- the stem URI used to compute the full URI value.prefix- the prefix used in the CURIE form.- Returns:
-
filter
-
getName
Returns the short name (afa "reference") of this property.- Returns:
- the short name (afa "reference") of this property.
-
getFullName
Returns the full URI value of this property.- Returns:
- the full URI value of this property.
-
getPrefixedName
Returns the prefixed name (aka CURIE) of this property.- Returns:
- the prefixed name (aka CURIE) of this property.
-
getVocabURI
Returns the vocab URI of this property.- Returns:
- the URI of the vocab where this property is defined
-
isAllowed
Returns whether this property is allowed in the given validation context. Disallowed properties are reported as ERRORs.- Parameters:
context- the validation context (locale, path, etc).- Returns:
trueiff the property is allowed in the given context
-
isDeprecated
public boolean isDeprecated()Returns whether this property is deprecated. Deprecated properties are reported as WARNINGs.- Returns:
trueiff the property is deprecated
-
toEnum
Returns theEnumitem that is used to represent this property in enum-based vocabularies.- Returns:
- the
Enumitem that is used to represent this property. - Throws:
UnsupportedOperationException- if this property doesn't represent a property from an enum-based vocabulary.
-
toString
-
hashCode
-
equals
-