Betty v1.1.0

christophedelory.betty.xml
Class SetParent

java.lang.Object
  extended by christophedelory.betty.xml.BaseXmlVisitor
      extended by christophedelory.betty.xml.SetParent
All Implemented Interfaces:
XmlVisitor

public class SetParent
extends BaseXmlVisitor

Restores the parent hierarchy of any given (XML) element.

Since:
1.0.0
Version:
$Revision$
Author:
Christophe Delory

Constructor Summary
SetParent()
           
 
Method Summary
 void beginVisitChampionship(ChampionshipDetails target)
          Starts the visit of the specified championship.
 void beginVisitChampionships(ChampionshipsDetails target)
          Starts the visit of the specified championship list.
 void beginVisitEvent(EventDetails target)
          Starts the visit of the specified championship's event.
 void beginVisitLocation(LocationDetails target)
          Starts the visit of the specified location.
 void beginVisitLocations(LocationsDetails target)
          Starts the visit of the specified location list.
 void beginVisitModel(ModelDetails target)
          Starts the visit of the specified model.
 void beginVisitPhase(PhaseDetails target)
          Starts the visit of the specified championship's phase.
 void beginVisitPlayer(PlayerDetails target)
          Starts the visit of the specified player.
 void beginVisitPlayerId(PlayerIdDetails target)
          Starts the visit of the specified player reference.
 void beginVisitPlayers(PlayersDetails target)
          Starts the visit of the specified player list.
 void beginVisitProperty(PropertyDetails target)
          Starts the visit of the specified property.
 void beginVisitResource(ResourceDetails target)
          Starts the visit of the specified resource.
 void beginVisitResources(ResourcesDetails target)
          Starts the visit of the specified resource list.
 void beginVisitUser(UserDetails target)
          Starts the visit of the specified user.
 void beginVisitUsers(UsersDetails target)
          Starts the visit of the specified user list.
 void endVisitChampionship(ChampionshipDetails target)
          Finishes the visit of the specified championship.
 void endVisitChampionships(ChampionshipsDetails target)
          Finishes the visit of the specified championship list.
 void endVisitEvent(EventDetails target)
          Finishes the visit of the specified championship's event.
 void endVisitPhase(PhaseDetails target)
          Finishes the visit of the specified championship's phase.
 void endVisitPlayers(PlayersDetails target)
          Finishes the visit of the specified player list.
 void endVisitResources(ResourcesDetails target)
          Finishes the visit of the specified resource list.
 void endVisitUsers(UsersDetails target)
          Finishes the visit of the specified user list.
 
Methods inherited from class christophedelory.betty.xml.BaseXmlVisitor
endVisitLocation, endVisitLocations, endVisitModel, endVisitPlayer, endVisitPlayerId, endVisitProperty, endVisitResource, endVisitUser, visitMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetParent

public SetParent()
Method Detail

beginVisitChampionships

public void beginVisitChampionships(ChampionshipsDetails target)
                             throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified championship list.

Specified by:
beginVisitChampionships in interface XmlVisitor
Overrides:
beginVisitChampionships in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitChampionships(ChampionshipsDetails), ChampionshipsDetails.accept(XmlVisitor)

endVisitChampionships

public void endVisitChampionships(ChampionshipsDetails target)
                           throws Exception
Description copied from interface: XmlVisitor
Finishes the visit of the specified championship list.

Specified by:
endVisitChampionships in interface XmlVisitor
Overrides:
endVisitChampionships in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.beginVisitChampionships(ChampionshipsDetails), ChampionshipsDetails.accept(XmlVisitor)

beginVisitChampionship

public void beginVisitChampionship(ChampionshipDetails target)
                            throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified championship.

Specified by:
beginVisitChampionship in interface XmlVisitor
Overrides:
beginVisitChampionship in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitChampionship(ChampionshipDetails), ChampionshipDetails.accept(XmlVisitor)

endVisitChampionship

public void endVisitChampionship(ChampionshipDetails target)
                          throws Exception
Description copied from interface: XmlVisitor
Finishes the visit of the specified championship.

Specified by:
endVisitChampionship in interface XmlVisitor
Overrides:
endVisitChampionship in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.beginVisitChampionship(ChampionshipDetails), ChampionshipDetails.accept(XmlVisitor)

beginVisitPhase

public void beginVisitPhase(PhaseDetails target)
                     throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified championship's phase.

Specified by:
beginVisitPhase in interface XmlVisitor
Overrides:
beginVisitPhase in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitPhase(PhaseDetails), PhaseDetails.accept(XmlVisitor)

endVisitPhase

public void endVisitPhase(PhaseDetails target)
                   throws Exception
Description copied from interface: XmlVisitor
Finishes the visit of the specified championship's phase.

Specified by:
endVisitPhase in interface XmlVisitor
Overrides:
endVisitPhase in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.beginVisitPhase(PhaseDetails), PhaseDetails.accept(XmlVisitor)

beginVisitEvent

public void beginVisitEvent(EventDetails target)
                     throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified championship's event.

Specified by:
beginVisitEvent in interface XmlVisitor
Overrides:
beginVisitEvent in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitEvent(EventDetails), EventDetails.accept(XmlVisitor)

endVisitEvent

public void endVisitEvent(EventDetails target)
                   throws Exception
Description copied from interface: XmlVisitor
Finishes the visit of the specified championship's event.

Specified by:
endVisitEvent in interface XmlVisitor
Overrides:
endVisitEvent in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.beginVisitEvent(EventDetails), EventDetails.accept(XmlVisitor)

beginVisitLocations

public void beginVisitLocations(LocationsDetails target)
                         throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified location list.

Specified by:
beginVisitLocations in interface XmlVisitor
Overrides:
beginVisitLocations in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitLocations(LocationsDetails), LocationsDetails.accept(XmlVisitor)

beginVisitLocation

public void beginVisitLocation(LocationDetails target)
                        throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified location.

Specified by:
beginVisitLocation in interface XmlVisitor
Overrides:
beginVisitLocation in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitLocation(LocationDetails), LocationDetails.accept(XmlVisitor)

beginVisitPlayers

public void beginVisitPlayers(PlayersDetails target)
                       throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified player list.

Specified by:
beginVisitPlayers in interface XmlVisitor
Overrides:
beginVisitPlayers in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitPlayers(PlayersDetails), PlayersDetails.accept(XmlVisitor)

endVisitPlayers

public void endVisitPlayers(PlayersDetails target)
                     throws Exception
Description copied from interface: XmlVisitor
Finishes the visit of the specified player list.

Specified by:
endVisitPlayers in interface XmlVisitor
Overrides:
endVisitPlayers in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.beginVisitPlayers(PlayersDetails), PlayersDetails.accept(XmlVisitor)

beginVisitPlayer

public void beginVisitPlayer(PlayerDetails target)
                      throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified player.

Specified by:
beginVisitPlayer in interface XmlVisitor
Overrides:
beginVisitPlayer in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitPlayer(PlayerDetails), PlayerDetails.accept(XmlVisitor)

beginVisitUsers

public void beginVisitUsers(UsersDetails target)
                     throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified user list.

Specified by:
beginVisitUsers in interface XmlVisitor
Overrides:
beginVisitUsers in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitUsers(UsersDetails), UsersDetails.accept(XmlVisitor)

endVisitUsers

public void endVisitUsers(UsersDetails target)
                   throws Exception
Description copied from interface: XmlVisitor
Finishes the visit of the specified user list.

Specified by:
endVisitUsers in interface XmlVisitor
Overrides:
endVisitUsers in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.beginVisitUsers(UsersDetails), UsersDetails.accept(XmlVisitor)

beginVisitUser

public void beginVisitUser(UserDetails target)
                    throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified user.

Specified by:
beginVisitUser in interface XmlVisitor
Overrides:
beginVisitUser in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitUser(UserDetails), UserDetails.accept(XmlVisitor)

beginVisitResources

public void beginVisitResources(ResourcesDetails target)
                         throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified resource list.

Specified by:
beginVisitResources in interface XmlVisitor
Overrides:
beginVisitResources in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitResources(ResourcesDetails), ResourcesDetails.accept(XmlVisitor)

endVisitResources

public void endVisitResources(ResourcesDetails target)
                       throws Exception
Description copied from interface: XmlVisitor
Finishes the visit of the specified resource list.

Specified by:
endVisitResources in interface XmlVisitor
Overrides:
endVisitResources in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.beginVisitResources(ResourcesDetails), ResourcesDetails.accept(XmlVisitor)

beginVisitResource

public void beginVisitResource(ResourceDetails target)
                        throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified resource.

Specified by:
beginVisitResource in interface XmlVisitor
Overrides:
beginVisitResource in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitResource(ResourceDetails), ResourceDetails.accept(XmlVisitor)

beginVisitPlayerId

public void beginVisitPlayerId(PlayerIdDetails target)
                        throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified player reference.

Specified by:
beginVisitPlayerId in interface XmlVisitor
Overrides:
beginVisitPlayerId in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitPlayerId(PlayerIdDetails), PlayerIdDetails.accept(XmlVisitor)

beginVisitModel

public void beginVisitModel(ModelDetails target)
                     throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified model.

Specified by:
beginVisitModel in interface XmlVisitor
Overrides:
beginVisitModel in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitModel(ModelDetails), ModelDetails.accept(XmlVisitor)

beginVisitProperty

public void beginVisitProperty(PropertyDetails target)
                        throws Exception
Description copied from interface: XmlVisitor
Starts the visit of the specified property.

Specified by:
beginVisitProperty in interface XmlVisitor
Overrides:
beginVisitProperty in class BaseXmlVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
XmlVisitor.endVisitProperty(PropertyDetails), PropertyDetails.accept(XmlVisitor)

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.