public class YtPublicationState extends AbstractExtension
app:control/yt:state, which
describes the publication state of an entry.| Modifier and Type | Class and Description |
|---|---|
static class |
YtPublicationState.State
Current state.
|
AbstractExtension.AttributesHandlerlocalName, namespace| Constructor and Description |
|---|
YtPublicationState() |
YtPublicationState(YtPublicationState.State state) |
YtPublicationState(YtPublicationState.State state,
String reasonCode,
String helpUrl,
String description) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
|
String |
getDescription()
Returns, in a human-readable form, the reason why
the entry was rejected or why processing the entry failed.
|
String |
getHelpUrl()
Returns a HTTP url which describes the failure in more
details and/or provides a way of solving the problem.
|
String |
getReasonCode()
Gets a code describing the reason why the entry was
rejected or why processing the entry failed.
|
YtPublicationState.State |
getState()
Gets the publication state enum value.
|
protected void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
void |
setDescription(String description)
Sets a human-readable error message.
|
void |
setHelpUrl(String url)
Sets a url to which users can learn more about the current
issue.
|
void |
setReasonCode(String code)
Sets the code describing the reason why the
entry was rejected or why processing the entry failed.
|
void |
setState(YtPublicationState.State state)
Sets the publication state enum value.
|
disableStrictValidation, enableStrictValidation, eq, generate, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic YtPublicationState()
public YtPublicationState(YtPublicationState.State state, String reasonCode, String helpUrl, String description)
public YtPublicationState(YtPublicationState.State state)
public YtPublicationState.State getState()
public void setState(YtPublicationState.State state)
state - publication statepublic String getReasonCode()
nullpublic void setReasonCode(String code)
code - a code or nullpublic String getDescription()
getReasonCode()
for that.nullpublic void setDescription(String description)
description - or nullpublic String getHelpUrl()
nullpublic void setHelpUrl(String url)
url - an HTTP url or nullprotected void putAttributes(AttributeGenerator generator)
AbstractExtensionAbstractExtension.generate(XmlWriter,ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.putAttributes in class AbstractExtensiongenerator - attribute generatorprotected void consumeAttributes(AttributeHelper helper) throws ParseException
AbstractExtensionAttributeHelper.consumeContent(boolean) to consume the element's text
content. Called from AbstractExtension.getHandler(com.google.gdata.data.ExtensionProfile, java.lang.String, java.lang.String, org.xml.sax.Attributes). Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.consumeAttributes in class AbstractExtensionhelper - attribute helperParseException - any parsing exceptionCopyright © 2012. All Rights Reserved.