Class DefaultPageStateDefinition
- java.lang.Object
-
- org.onehippo.forge.pageflow.core.def.impl.DefaultPageStateDefinition
-
- All Implemented Interfaces:
Serializable
,PageStateDefinition
public class DefaultPageStateDefinition extends Object implements PageStateDefinition
DefaultPageStateDefinition
model implementation.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPageTransitionDefinition(PageTransitionDefinition pageTransitionDef)
void
clearPageTransitionDefinitions()
boolean
equals(Object o)
Compares the specified object with thisPageStateDefinition
for equality.String
getId()
Return the identifier of thePageStateDefinition
.Map<String,String>
getMetadata()
Return an unmodifiable metadata map of thePageStateDefinition
.String
getName()
Return the (human readable) name of thePageStateDefinition
.List<PageTransitionDefinition>
getPageTransitionDefinitions()
Return an unmodifiable list of thePageStateDefinition
levelPageTransitionDefinition
s.String
getPath()
Return the logical path info of thePageStateDefinition
.int
hashCode()
Returns the hash code value for thisPageStateDefinition
.boolean
removePageTransitionDefinition(PageTransitionDefinition pageTransitionDef)
String
toString()
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:PageStateDefinition
Return the identifier of thePageStateDefinition
.- Specified by:
getId
in interfacePageStateDefinition
- Returns:
- the identifier of the
PageStateDefinition
-
getName
public String getName()
Description copied from interface:PageStateDefinition
Return the (human readable) name of thePageStateDefinition
.- Specified by:
getName
in interfacePageStateDefinition
- Returns:
- the (human readable) name of the
PageStateDefinition
-
getPath
public String getPath()
Description copied from interface:PageStateDefinition
Return the logical path info of thePageStateDefinition
.This
path
info must be translated into a physical URI or client-side route information by an application. In the definition level, thispath
info doesn't imply any physical translations by itself.- Specified by:
getPath
in interfacePageStateDefinition
- Returns:
- the logical path info of the
PageStateDefinition
-
getMetadata
public Map<String,String> getMetadata()
Description copied from interface:PageStateDefinition
Return an unmodifiable metadata map of thePageStateDefinition
.- Specified by:
getMetadata
in interfacePageStateDefinition
- Returns:
- an unmodifiable metadata map of the
PageStateDefinition
-
getPageTransitionDefinitions
public List<PageTransitionDefinition> getPageTransitionDefinitions()
Description copied from interface:PageStateDefinition
Return an unmodifiable list of thePageStateDefinition
levelPageTransitionDefinition
s.- Specified by:
getPageTransitionDefinitions
in interfacePageStateDefinition
- Returns:
- an unmodifiable list of the
PageStateDefinition
levelPageTransitionDefinition
s
-
addPageTransitionDefinition
public void addPageTransitionDefinition(PageTransitionDefinition pageTransitionDef)
-
removePageTransitionDefinition
public boolean removePageTransitionDefinition(PageTransitionDefinition pageTransitionDef)
-
clearPageTransitionDefinitions
public void clearPageTransitionDefinitions()
-
equals
public boolean equals(Object o)
Description copied from interface:PageStateDefinition
Compares the specified object with thisPageStateDefinition
for equality.- Specified by:
equals
in interfacePageStateDefinition
- Overrides:
equals
in classObject
- Parameters:
o
- the object to be compared for equality with thisPageStateDefinition
- Returns:
- true if the specified object is equal to this
PageStateDefinition
-
hashCode
public int hashCode()
Description copied from interface:PageStateDefinition
Returns the hash code value for thisPageStateDefinition
.- Specified by:
hashCode
in interfacePageStateDefinition
- Overrides:
hashCode
in classObject
- Returns:
- the hash code value for this
PageStateDefinition
-
-