|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.model.Element
com.google.gdata.model.atompub.Control
public class Control
Describes an Atom publication control status.
Field Summary | |
---|---|
static ElementKey<java.lang.Void,Control> |
KEY
The key for this element. |
Constructor Summary | |
---|---|
|
Control()
Constructs an instance using the default key. |
protected |
Control(ElementKey<?,? extends Control> key)
Subclass constructor, allows subclasses to supply their own element key. |
protected |
Control(ElementKey<?,? extends Control> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance. |
Method Summary | |
---|---|
Draft |
getDraft()
Returns the draft tag. |
boolean |
hasDraft()
Returns whether it has the draft tag. |
boolean |
isDraft()
Checks the value of the app:draft tag. |
Control |
lock()
Locks this element. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
void |
setDraft(boolean value)
Sets the value of the app:draft tag. |
Control |
setDraft(Draft draft)
Sets the draft tag. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ElementKey<java.lang.Void,Control> KEY
Constructor Detail |
---|
public Control()
protected Control(ElementKey<?,? extends Control> key)
protected Control(ElementKey<?,? extends Control> key, Element source)
Element
instance. Will use the given ElementKey
as the key
for the element. This constructor is used when adapting from one element
key to another. You cannot call this constructor directly, instead use
Element.createElement(ElementKey, Element)
.
key
- The key to use for this element.source
- source elementMethod Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public Control lock()
Element
lock
in class Element
public Draft getDraft()
public Control setDraft(Draft draft)
draft
- draft tag or null
to reset
public boolean hasDraft()
public boolean isDraft()
public void setDraft(boolean value)
value
- sets the draft status to the specified value, false to clear.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |