public class

PubControl

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.PubControl

Class Overview

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 setDraft(Boolean), which will create a PubControl object when necessary.

Summary

Nested Classes
class PubControl.AtomHandler <app:control> parser. 
Fields
private XmlNamespace atomPubNs
private Boolean draft
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
PubControl()
Creates an empty app:control tag.
Public Methods
void generateAtom(XmlWriter w, ExtensionProfile extProfile)
Generates the atom representation for this tag.
boolean isDraft()
Checks the value of the app:draft tag.
void setDraft(Boolean draft)
Sets the value of the app:draft tag.
[Expand]
Inherited Methods
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private XmlNamespace atomPubNs

private Boolean draft

Public Constructors

public PubControl ()

Creates an empty app:control tag.

Public Methods

public void generateAtom (XmlWriter w, ExtensionProfile extProfile)

Generates the atom representation for this tag.

Parameters
w
extProfile
Throws
IOException

public boolean isDraft ()

Checks the value of the app:draft tag.

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

public void setDraft (Boolean draft)

Sets the value of the app:draft tag.

Parameters
draft Sets the draft status, null to unset