Betty v1.1.0

christophedelory.betty.xml
Class BaseXmlVisitor

java.lang.Object
  extended by christophedelory.betty.xml.BaseXmlVisitor
All Implemented Interfaces:
XmlVisitor
Direct Known Subclasses:
SetParent, XmlToEntity

public class BaseXmlVisitor
extends Object
implements XmlVisitor

A starting point for a XML visitor.

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

Constructor Summary
BaseXmlVisitor()
           
 
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 endVisitLocation(LocationDetails target)
          Finishes the visit of the specified location.
 void endVisitLocations(LocationsDetails target)
          Finishes the visit of the specified location list.
 void endVisitModel(ModelDetails target)
          Finishes the visit of the specified model.
 void endVisitPhase(PhaseDetails target)
          Finishes the visit of the specified championship's phase.
 void endVisitPlayer(PlayerDetails target)
          Finishes the visit of the specified player.
 void endVisitPlayerId(PlayerIdDetails target)
          Finishes the visit of the specified player reference.
 void endVisitPlayers(PlayersDetails target)
          Finishes the visit of the specified player list.
 void endVisitProperty(PropertyDetails target)
          Finishes the visit of the specified property.
 void endVisitResource(ResourceDetails target)
          Finishes the visit of the specified resource.
 void endVisitResources(ResourcesDetails target)
          Finishes the visit of the specified resource list.
 void endVisitUser(UserDetails target)
          Finishes the visit of the specified user.
 void endVisitUsers(UsersDetails target)
          Finishes the visit of the specified user list.
 void visitMetadata(AbstractMetadataDetails target)
          Visits the specified metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseXmlVisitor

public BaseXmlVisitor()
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
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
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
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
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
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
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
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
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
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)

endVisitLocations

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

Specified by:
endVisitLocations in interface XmlVisitor
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.beginVisitLocations(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
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)

endVisitLocation

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

Specified by:
endVisitLocation in interface XmlVisitor
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.beginVisitLocation(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
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
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
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)

endVisitPlayer

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

Specified by:
endVisitPlayer in interface XmlVisitor
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.beginVisitPlayer(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
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
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
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)

endVisitUser

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

Specified by:
endVisitUser in interface XmlVisitor
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.beginVisitUser(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
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
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
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)

endVisitResource

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

Specified by:
endVisitResource in interface XmlVisitor
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.beginVisitResource(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
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)

endVisitPlayerId

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

Specified by:
endVisitPlayerId in interface XmlVisitor
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.beginVisitPlayerId(PlayerIdDetails), PlayerIdDetails.accept(XmlVisitor)

visitMetadata

public void visitMetadata(AbstractMetadataDetails target)
                   throws Exception
Description copied from interface: XmlVisitor
Visits the specified metadata.

Specified by:
visitMetadata in interface XmlVisitor
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:
AbstractMetadataDetails.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
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)

endVisitModel

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

Specified by:
endVisitModel in interface XmlVisitor
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.beginVisitModel(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
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)

endVisitProperty

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

Specified by:
endVisitProperty in interface XmlVisitor
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.beginVisitProperty(PropertyDetails), PropertyDetails.accept(XmlVisitor)

© 2008-2009 Christophe Delory

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