Betty v1.1.0

christophedelory.betty
Class XmlToEntity

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

public class XmlToEntity
extends BaseXmlVisitor

Builds the EJB objects during the visit of a particular XML instance, and all its childs if any.

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

Constructor Summary
XmlToEntity()
           
 
Method Summary
 void beginVisitChampionship(ChampionshipDetails target)
          Starts the visit of the specified championship.
 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 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 beginVisitProperty(PropertyDetails target)
          Starts the visit of the specified property.
 void beginVisitResource(ResourceDetails target)
          Starts the visit of the specified resource.
 void beginVisitUser(UserDetails target)
          Starts the visit of the specified user.
 void endVisitChampionship(ChampionshipDetails target)
          Finishes the visit of the specified championship.
 void endVisitEvent(EventDetails target)
          Finishes the visit of the specified championship's event.
 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 endVisitResource(ResourceDetails target)
          Finishes the visit of the specified resource.
 void endVisitUser(UserDetails target)
          Finishes the visit of the specified user.
 void visitMetadata(AbstractMetadataDetails target)
          Visits the specified metadata.
 
Methods inherited from class christophedelory.betty.xml.BaseXmlVisitor
beginVisitChampionships, beginVisitLocations, beginVisitPlayers, beginVisitResources, beginVisitUsers, endVisitChampionships, endVisitLocation, endVisitLocations, endVisitPlayerId, endVisitPlayers, endVisitProperty, endVisitResources, endVisitUsers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlToEntity

public XmlToEntity()
Method Detail

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)

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)

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)

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
Overrides:
endVisitPlayer 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.beginVisitPlayer(PlayerDetails), PlayerDetails.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)

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
Overrides:
endVisitUser 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.beginVisitUser(UserDetails), UserDetails.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)

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
Overrides:
endVisitResource 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.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
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)

visitMetadata

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

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

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
Overrides:
endVisitModel 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.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
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.