com.acsinet_solutions.cetia4.controller.nav
Class NavigationStageImpl

java.lang.Object
  extended by com.acsinet_solutions.cetia4.controller.nav.NavigationStageImpl
All Implemented Interfaces:
NavigationStage, java.io.Serializable

public final class NavigationStageImpl
extends java.lang.Object
implements NavigationStage, java.io.Serializable

Creation of a navigation stage class that describes the stage in which a web user interaction is in. A stage is usually associated with a controller that forwards to a view.

Derechos Reservados

Author:
Santiago Arriaga
See Also:
Serialized Form

Constructor Summary
NavigationStageImpl(java.lang.String name, Link link)
          Public constructor
NavigationStageImpl(java.lang.String name, Link link, AttributeInfo attributeInfo)
          Public constructor
 
Method Summary
 AttributeInfo getAttributeInfo()
          Get the metadata description for the form attribute on the current stage.
 NavigationStageImpl getCurrentStage()
          Get a shared stage instance that can be modified externally.
 Link getLink()
          Get a reference to the current stage link.
 java.lang.String getName()
          Returns the name of the current entry; this should be unique for each navigation stage type.
 boolean performMatch(NavigationStage entry)
          Check whether the current entry corresponds to another.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NavigationStageImpl

public NavigationStageImpl(java.lang.String name,
                           Link link,
                           AttributeInfo attributeInfo)
Public constructor

Parameters:
name - A not-null not-empty valid controller name String
link - A not-null valid URLLink to the given controller
formAttribute - A maybe-null annotation that describes how the form attribute in this stage will be used and maintained.

NavigationStageImpl

public NavigationStageImpl(java.lang.String name,
                           Link link)
Public constructor

Parameters:
name - A not-null not-empty valid controller name String
link - A not-null valid URLLink to the given controller
Method Detail

getName

public final java.lang.String getName()
Description copied from interface: NavigationStage
Returns the name of the current entry; this should be unique for each navigation stage type.

Specified by:
getName in interface NavigationStage

performMatch

public final boolean performMatch(NavigationStage entry)
Description copied from interface: NavigationStage
Check whether the current entry corresponds to another. This is used in navigation flows to find NavigationStages that correspond with each others.

Specified by:
performMatch in interface NavigationStage

getCurrentStage

public final NavigationStageImpl getCurrentStage()
Description copied from interface: NavigationStage
Get a shared stage instance that can be modified externally.

Specified by:
getCurrentStage in interface NavigationStage

getLink

public final Link getLink()
Description copied from interface: NavigationStage
Get a reference to the current stage link. This is a copy of the internal unmodifiable link.

Specified by:
getLink in interface NavigationStage

getAttributeInfo

public AttributeInfo getAttributeInfo()
Description copied from interface: NavigationStage
Get the metadata description for the form attribute on the current stage. This metadata indicates the attribute maintenance information that the flow will use when unloading stages.

Specified by:
getAttributeInfo in interface NavigationStage
Returns:
a maybe null FormAttribute instance.

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object