com.google.gdata.data.acl
Class AclScope

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.acl.AclScope
All Implemented Interfaces:
Extension

public class AclScope
extends AbstractExtension

Describes the scope of an entry in an access control list.


Nested Class Summary
static class AclScope.Type
          predefined values for the "type" attribute
 
Constructor Summary
AclScope()
           
AclScope(AclScope.Type type, java.lang.String value)
           
AclScope(AclScope.Type type, java.lang.String value, java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
static AclScope fromExternalForm(java.lang.String externalForm)
          Given a standard external representation, return the scope that it represents or null if an invalid representation.
 java.lang.String getName()
           
 AclScope.Type getType()
           
 java.lang.String getValue()
           
 int hashCode()
           
 void putAttributes(AttributeGenerator generator)
          Puts attributes into the attribute generator.
 void setName(java.lang.String name)
           
 void setType(AclScope.Type type)
           
 void setValue(java.lang.String value)
           
 java.lang.String toExternalForm()
          Return a standard external representation of this scope, suitable for use as an Acl Entry identifier.
 java.lang.String toString()
           
 
Methods inherited from class com.google.gdata.data.AbstractExtension
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, setImmutable
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AclScope

public AclScope()

AclScope

public AclScope(AclScope.Type type,
                java.lang.String value)

AclScope

public AclScope(AclScope.Type type,
                java.lang.String value,
                java.lang.String name)
Method Detail

getType

public AclScope.Type getType()

setType

public void setType(AclScope.Type type)

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String value)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

toExternalForm

public java.lang.String toExternalForm()
Return a standard external representation of this scope, suitable for use as an Acl Entry identifier.


fromExternalForm

public static AclScope fromExternalForm(java.lang.String externalForm)
Given a standard external representation, return the scope that it represents or null if an invalid representation. This is the inverse operation of toExternalForm.


putAttributes

public void putAttributes(AttributeGenerator generator)
Description copied from class: AbstractExtension
Puts attributes into the attribute generator. Called from AbstractExtension.generate(XmlWriter,ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters:
generator - attribute generator

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object