public abstract class IdDeclaration extends java.lang.Object implements Declaration
IdDeclarationProvider
, IdReference
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id |
Constructor and Description |
---|
IdDeclaration(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete()
Determine whether this declaration can be deleted.
|
boolean |
delete()
Delete this declaration.
|
boolean |
equals(java.lang.Object object) |
static IdDeclaration |
findDeclaration(Context context, java.lang.String id)
Find the IdDeclaration for an ID.
|
java.lang.String |
getDeclarationId()
Gets the unique ID for this declaration.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getURL, show
public static IdDeclaration findDeclaration(Context context, java.lang.String id) throws java.lang.InterruptedException
context
- the contextid
- the declaration IDjava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event threadpublic java.lang.String getDeclarationId()
public boolean canDelete()
Declaration
canDelete
in interface Declaration
public boolean delete()
Declaration
Declaration.canDelete()
returns true.delete
in interface Declaration
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object