uk.me.parabola.mkgmap.osmstyle.actions
Class SubAction

java.lang.Object
  extended by uk.me.parabola.mkgmap.osmstyle.actions.SubAction
All Implemented Interfaces:
Action

public class SubAction
extends java.lang.Object
implements Action

This is an action that contains sub-actions. It is used for Relations where you want to apply the commands to the elements that are contained in the relation and not on the relation itself.

Author:
Steve Ratcliffe

Constructor Summary
SubAction(java.lang.String role, boolean once)
           
 
Method Summary
 void add(Action act)
           
 void perform(Element el)
          Perform the action on the element.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubAction

public SubAction(java.lang.String role,
                 boolean once)
Method Detail

perform

public void perform(Element el)
Description copied from interface: Action
Perform the action on the element.

Specified by:
perform in interface Action

add

public void add(Action act)

toString

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