public class Keyword extends AbstractExtension
| Modifier and Type | Class and Description |
|---|---|
static class |
Keyword.Source
Source.
|
| Constructor and Description |
|---|
Keyword()
Default mutable constructor.
|
Keyword(java.lang.String source,
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.
|
java.lang.String |
getSource()
Returns the source.
|
java.lang.String |
getValue()
Returns the value.
|
int |
hashCode() |
boolean |
hasSource()
Returns whether it has the source.
|
boolean |
hasValue()
Returns whether it has the value.
|
void |
setSource(java.lang.String source)
Sets the source.
|
void |
setValue(java.lang.String value)
Sets the value.
|
java.lang.String |
toString() |
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, setImmutablepublic Keyword()
public Keyword(java.lang.String source,
java.lang.String value)
source - source.value - value.public java.lang.String getSource()
public void setSource(java.lang.String source)
source - source or null to resetpublic boolean hasSource()
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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object