public class StateVertex extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_ID |
| Constructor and Description |
|---|
StateVertex(int id)
Default constructor to support saving instances of this class as an XML.
|
StateVertex(int id,
String name,
String dom)
Creates a current state without an url and the stripped dom equals the dom.
|
StateVertex(int id,
String url,
String name,
String dom,
String strippedDom)
Defines a State.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compare this vertex to a other StateVertex.
|
Document |
getDocument() |
String |
getDom()
Retrieve the DOM String.
|
int |
getDomSize()
Return the size of the DOM in bytes.
|
int |
getId() |
String |
getName()
Retrieve the name of the StateVertex.
|
String |
getStrippedDom() |
String |
getUrl() |
com.google.common.collect.ImmutableList<Eventable> |
getUsedEventables() |
int |
hashCode()
Returns a hashcode.
|
void |
registerEventable(Eventable eventable) |
void |
setDom(String dom) |
void |
setName(String name) |
String |
toString()
Returns the name of this state as string.
|
public static final int INDEX_ID
public StateVertex(int id)
public StateVertex(int id,
String name,
String dom)
name - the name of the statedom - the current DOM tree of the browserpublic String getName()
public String getDom()
public String getStrippedDom()
public String getUrl()
public int hashCode()
public boolean equals(Object obj)
equals in class Objectobj - the Object to compare this vertexObject.equals(java.lang.Object)public String toString()
public int getDomSize()
public int getId()
public void setName(String name)
name - the name to setpublic void setDom(String dom)
dom - the dom to setpublic Document getDocument() throws IOException
IOException - if an exception is thrown.public void registerEventable(Eventable eventable)
eventable - The eventable that was clicked in this state.public com.google.common.collect.ImmutableList<Eventable> getUsedEventables()
Copyright © 2007-2013. All Rights Reserved.