Betty v1.1.0

christophedelory.betty.xml
Interface XmlRoot

All Superinterfaces:
Serializable
All Known Implementing Classes:
ChampionshipDetails, ChampionshipsDetails, LocationDetails, LocationsDetails, PlayerDetails, PlayersDetails, ResourceDetails, ResourcesDetails, UserDetails, UsersDetails

public interface XmlRoot
extends Serializable

Every XML representation that is able to create an associated EJB object, without any specific context (a parent EJB object for example), shall implement this interface.

Version:
$Revision$
Author:
Christophe Delory

Method Summary
 void accept(XmlVisitor visitor)
          Accepts the specified XML visitor.
 Version getVersion()
          Returns the associated version information, if any.
 void setVersion(Version version)
          Initializes the associated version information.
 

Method Detail

getVersion

Version getVersion()
Returns the associated version information, if any.

Returns:
a version information. May be null.
See Also:
setVersion(Version)

setVersion

void setVersion(Version version)
Initializes the associated version information.

Parameters:
version - a version information. May be null.
See Also:
getVersion()

accept

void accept(XmlVisitor visitor)
            throws Exception
Accepts the specified XML visitor.

Parameters:
visitor - a visitor. Shall not be null.
Throws:
NullPointerException - if visitor is null.
Exception - if any error occurs during the visit.

© 2008-2009 Christophe Delory

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