com.google.gdata.data.acl
Class AclScope
java.lang.Object
com.google.gdata.data.AbstractExtension
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 |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
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)
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