Google Data APIs Client Library (1.41.1)
Class PubControl

  extended by
      extended by
          extended by
All Implemented Interfaces:

public class PubControl
extends ExtensionPoint

Publication control tag app:control, which usually contains app:draft. The main reason for having this as a separate object is mostly so that it can be used as an extension point. The draft flag is usually set using BaseEntry.setDraft(Boolean), which will create a PubControl object when necessary.

Nested Class Summary
 class PubControl.AtomHandler
          <app:control> parser.
Nested classes/interfaces inherited from class
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Nested classes/interfaces inherited from class
Field Summary
Fields inherited from class
Fields inherited from class
localName, namespace
Constructor Summary
          Creates an empty app:control tag.
Method Summary
 void generateAtom( w, ExtensionProfile extProfile)
          Generates the atom representation for this tag.
 boolean isDraft()
          Checks the value of the app:draft tag.
 void setDraft(java.lang.Boolean draft)
          Sets the value of the app:draft tag.
Methods inherited from class
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getHandler, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildren
Methods inherited from class
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public PubControl()
Creates an empty app:control tag.

Method Detail


public boolean isDraft()
Checks the value of the app:draft tag.

true if the entry is a draft (false by default as per the atom publishing protoc spec)


public void setDraft(java.lang.Boolean draft)
Sets the value of the app:draft tag.

draft - sets the draft status, null to unset


public void generateAtom( w,
                         ExtensionProfile extProfile)
Generates the atom representation for this tag.