Person.AtomHandler
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
AbstractExtension.AttributesHandler
xmlBlob
localName, namespace
Constructor and Description |
---|
SidewikiAuthor()
Default mutable constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
|
SidewikiUserDescription |
getDescription()
Returns the Sidewiki author description.
|
EntriesNumber |
getNumEntries()
Returns the entries number.
|
Rating |
getRating()
Returns the user rating given by the user issued the request.
|
ResourceId |
getResourceId()
Returns the Sidewiki author id.
|
SidewikiThumbnail |
getThumbnail()
Returns the user portrait thumbnail url.
|
boolean |
hasDescription()
Returns whether it has the Sidewiki author description.
|
boolean |
hasNumEntries()
Returns whether it has the entries number.
|
boolean |
hasRating()
Returns whether it has the user rating given by the user issued the
request.
|
boolean |
hasResourceId()
Returns whether it has the Sidewiki author id.
|
boolean |
hasThumbnail()
Returns whether it has the user portrait thumbnail url.
|
void |
setDescription(SidewikiUserDescription description)
Sets the Sidewiki author description.
|
void |
setNumEntries(EntriesNumber numEntries)
Sets the entries number.
|
void |
setRating(Rating rating)
Sets the user rating given by the user issued the request.
|
void |
setResourceId(ResourceId resourceId)
Sets the Sidewiki author id.
|
void |
setThumbnail(SidewikiThumbnail thumbnail)
Sets the user portrait thumbnail url.
|
java.lang.String |
toString() |
protected void |
validate()
Checks the attributes to see if there are any problems.
|
generate, generate, generateAtom, generateRss, getEmail, getHandler, getName, getNameLang, getUri, setEmail, setName, setNameLang, setUri
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildren
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.public SidewikiUserDescription getDescription()
public void setDescription(SidewikiUserDescription description)
description
- Sidewiki author description or null
to
resetpublic boolean hasDescription()
public EntriesNumber getNumEntries()
public void setNumEntries(EntriesNumber numEntries)
numEntries
- entries number or null
to resetpublic boolean hasNumEntries()
public Rating getRating()
public void setRating(Rating rating)
rating
- user rating given by the user issued the request or
null
to resetpublic boolean hasRating()
public ResourceId getResourceId()
public void setResourceId(ResourceId resourceId)
resourceId
- Sidewiki author id or null
to resetpublic boolean hasResourceId()
public SidewikiThumbnail getThumbnail()
public void setThumbnail(SidewikiThumbnail thumbnail)
thumbnail
- user portrait thumbnail url or null
to resetpublic boolean hasThumbnail()
protected void validate()
AbstractExtension
validate
in class AbstractExtension
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatablepublic java.lang.String toString()
toString
in class java.lang.Object