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, waitgetURL, showpublic 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()
DeclarationcanDelete in interface Declarationpublic boolean delete()
DeclarationDeclaration.canDelete()
returns true.delete in interface Declarationpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object