public class DocumentSource extends ExtensionPoint
Modifier and Type | Class and Description |
---|---|
static class |
DocumentSource.Type
Type.
|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Constructor and Description |
---|
DocumentSource()
Default mutable constructor.
|
DocumentSource(DocumentSource.Type type,
java.lang.String url)
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.
|
DocumentSource.Type |
getType()
Returns the type.
|
java.lang.String |
getUrl()
Returns the url.
|
int |
hashCode() |
boolean |
hasType()
Returns whether it has the type.
|
boolean |
hasUrl()
Returns whether it has the url.
|
void |
setType(DocumentSource.Type type)
Sets the type.
|
void |
setUrl(java.lang.String url)
Sets the url.
|
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 DocumentSource()
public DocumentSource(DocumentSource.Type type, java.lang.String url)
type
- type.url
- url.public DocumentSource.Type getType()
public void setType(DocumentSource.Type type)
type
- type or null
to resetpublic boolean hasType()
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- url or null
to resetpublic boolean hasUrl()
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