public class Jot extends AbstractExtension
Modifier and Type | Class and Description |
---|---|
static class |
Jot.Rel
Jot type.
|
Constructor and Description |
---|
Jot()
Default mutable constructor.
|
Jot(Jot.Rel rel,
java.lang.String value)
Immutable constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
|
Jot.Rel |
getRel()
Returns the jot type.
|
java.lang.String |
getValue()
Returns the value.
|
int |
hashCode() |
boolean |
hasRel()
Returns whether it has the jot type.
|
boolean |
hasValue()
Returns whether it has the value.
|
void |
setRel(Jot.Rel rel)
Sets the jot type.
|
void |
setValue(java.lang.String value)
Sets the value.
|
java.lang.String |
toString() |
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, setImmutable
public Jot()
public Jot(Jot.Rel rel, java.lang.String value)
rel
- jot type.value
- value.public Jot.Rel getRel()
public void setRel(Jot.Rel rel)
rel
- jot type or null
to resetpublic boolean hasRel()
public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- value or null
to resetpublic boolean hasValue()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatablepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object