Betty v1.1.0

christophedelory.betty.xml
Class ResourcesDetails

java.lang.Object
  extended by christophedelory.betty.xml.Child
      extended by christophedelory.betty.xml.ResourcesDetails
All Implemented Interfaces:
XmlRoot, Serializable

public class ResourcesDetails
extends Child
implements XmlRoot

A list of resources.

Version:
$Revision$
Author:
Christophe Delory
See Also:
ResourceDetails, Serialized Form

Constructor Summary
ResourcesDetails()
           
 
Method Summary
 void accept(XmlVisitor visitor)
          Accepts the specified XML visitor.
 void addResource(ResourceDetails resource)
          Adds the specified resource to this list.
 ResourceDetails findResourceById(String id)
          Searches for a resource in this XML element that matches the input parameter.
 List<ResourceDetails> getResources()
          Returns the list of resources.
 
Methods inherited from class christophedelory.betty.xml.Child
getParent, getRoot, getRoot, getVersion, setParent, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface christophedelory.betty.xml.XmlRoot
getVersion, setVersion
 

Constructor Detail

ResourcesDetails

public ResourcesDetails()
Method Detail

getResources

public List<ResourceDetails> getResources()
Returns the list of resources.

Returns:
a list of resources. May be empty but not null.
See Also:
addResource(ResourceDetails)

addResource

public void addResource(ResourceDetails resource)
Adds the specified resource to this list.

Parameters:
resource - a resource. Shall not be null.
Throws:
NullPointerException - if resource is null.
See Also:
getResources()

findResourceById

public ResourceDetails findResourceById(String id)
Searches for a resource in this XML element that matches the input parameter.

Parameters:
id - a resource identifier. Must not be null.
Returns:
an XML representation of the resource, or null if none was found.
Throws:
NullPointerException - if id is null.
Since:
1.0.0

accept

public void accept(XmlVisitor visitor)
            throws Exception
Description copied from interface: XmlRoot
Accepts the specified XML visitor.

Specified by:
accept in interface XmlRoot
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.