public class QueryParameter extends ExtensionPoint
Modifier and Type | Class and Description |
---|---|
static class |
QueryParameter.Type
Type.
|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Constructor and Description |
---|
QueryParameter()
Default mutable constructor.
|
QueryParameter(QueryParameter.Type type,
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.
|
QueryParameter.Type |
getType()
Returns the type.
|
java.lang.String |
getValue()
Returns the value.
|
int |
hashCode() |
boolean |
hasType()
Returns whether it has the type.
|
boolean |
hasValue()
Returns whether it has the value.
|
void |
setType(QueryParameter.Type type)
Sets the type.
|
void |
setValue(java.lang.String value)
Sets the value.
|
java.lang.String |
toString() |
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getHandler, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public QueryParameter()
public QueryParameter(QueryParameter.Type type, java.lang.String value)
type
- type.value
- value.public QueryParameter.Type getType()
public void setType(QueryParameter.Type type)
type
- type or null
to resetpublic boolean hasType()
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