Android
java.util
public final class

java.util.PropertyPermission

java.lang.Object
java.security.Permission Serializable Guard
java.security.BasicPermission Serializable
java.util.PropertyPermission

PropertyPermission objects represent permission to access system properties.

Summary

Public Constructors

            PropertyPermission(String name, String actions)
Constructs a new instance of this class.

Public Methods

          boolean  equals(Object o)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
          String  getActions()
Returns the actions associated with the receiver.
          int  hashCode()
Returns an integer hash code for the receiver.
          boolean  implies(Permission permission)
Indicates whether the argument permission is implied by the receiver.
          PermissionCollection  newPermissionCollection()
Returns a new PermissionCollection for holding permissions of this class.
Methods inherited from class java.security.BasicPermission
Methods inherited from class java.security.Permission
Methods inherited from class java.lang.Object
Methods inherited from interface java.security.Guard

Details

Public Constructors

public PropertyPermission(String name, String actions)

Constructs a new instance of this class.

Parameters

name java.lang.String the (possibly wildcarded) name of the property.
actions java.lang.String the actions which are applicable to it.

Public Methods

public boolean equals(Object o)

Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. In this case, the receiver must be for the same property as the argument, and must have the same actions.

Parameters

o the object to compare with this object

Returns

  • true if the object is the same as this object false if it is different from this object

See Also

public String getActions()

Returns the actions associated with the receiver. The result will be either "read", "write", or "read,write".

Returns

  • String the actions associated with the receiver.

public int hashCode()

Returns an integer hash code for the receiver. Any two objects which answer true when passed to equals must answer the same value for this method.

Returns

  • the receiver's hash

See Also

public boolean implies(Permission permission)

Indicates whether the argument permission is implied by the receiver.

Parameters

permission java.security.Permission the permission to check

Returns

  • boolean true if the argument permission is implied by the receiver, and false if it is not.

public PermissionCollection newPermissionCollection()

Returns a new PermissionCollection for holding permissions of this class. Answer null if any permission collection can be used.

Returns

  • a new PermissionCollection or null see java.security.BasicPermissionCollection
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48