public abstract class AbstractAction
extends java.lang.Object
implements org.apache.xmlgraphics.util.XMLizable
Constructor and Description |
---|
AbstractAction() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getID()
Returns an optional ID for this action.
|
java.lang.String |
getIDPrefix()
Returns a string that is used to prefix a generated ID to make it unique.
|
StructureTreeElement |
getStructureTreeElement()
Returns the structure element corresponding to this action.
|
boolean |
hasID()
Indicates whether the action has an ID and is therefore referencable.
|
boolean |
isComplete()
Indicates whether the action is complete, i.e has all the required information to be
rendered in the target format.
|
abstract boolean |
isSame(AbstractAction other)
Indicates whether two action are equal.
|
void |
setID(java.lang.String id)
Sets an ID to make the action referencable.
|
void |
setStructureTreeElement(StructureTreeElement structureTreeElement)
Sets the structure element corresponding to this action.
|
public void setID(java.lang.String id)
id
- the IDpublic java.lang.String getID()
public void setStructureTreeElement(StructureTreeElement structureTreeElement)
structureTreeElement
- a reference to the structure elementpublic StructureTreeElement getStructureTreeElement()
public boolean hasID()
public abstract boolean isSame(AbstractAction other)
Object.equals(Object)
!other
- the other action to compare topublic boolean isComplete()
public java.lang.String getIDPrefix()
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.