net.firstpartners.nounit.snippet
Class Snippets

java.lang.Object
  |
  +--net.firstpartners.nounit.snippet.AbstractSnippet
        |
        +--net.firstpartners.nounit.snippet.Snippets
All Implemented Interfaces:
ISnippet

public class Snippets
extends AbstractSnippet

Collection of Snippets


Fields inherited from class net.firstpartners.nounit.snippet.AbstractSnippet
innerAccess, innerName
 
Constructor Summary
Snippets()
          Constructor - No Args
 
Method Summary
 void add(java.util.Collection theseSnippets)
          Add a collection of snippet to the internal collection
 void add(ISnippet thisSnippet)
          Add a snippet to the collection
 org.jdom.Element addNodesTo(org.jdom.Element nodeToAddChildrenTo)
          Get an XML Representation of this Class (as Jdom nodes)
 java.util.Collection getCollection()
          Gets a handle to the internal store (as a collection)
 IXmlJdomSource getFirstItem()
          Gets first item in collection
 java.util.Iterator getIterator()
          Gets an interator over the collection
 java.lang.String toString()
          Get String Description of this class
 java.lang.String toXml()
          Get an XML Representation of this Class (as String of XML)
 
Methods inherited from class net.firstpartners.nounit.snippet.AbstractSnippet
toXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Snippets

public Snippets()
Constructor - No Args
Method Detail

add

public void add(ISnippet thisSnippet)
Add a snippet to the collection
Parameters:
thisSnippet - to add to internal collection

add

public void add(java.util.Collection theseSnippets)
Add a collection of snippet to the internal collection
Parameters:
theseSnippets - to add to internal collection

getIterator

public java.util.Iterator getIterator()
Gets an interator over the collection
Returns:
Iterator over the internal collection

getCollection

public java.util.Collection getCollection()
Gets a handle to the internal store (as a collection)
Returns:
Collection

getFirstItem

public IXmlJdomSource getFirstItem()
Gets first item in collection
Returns:
IXmlJdomSource , from Collection

toString

public java.lang.String toString()
Get String Description of this class
Overrides:
toString in class AbstractSnippet
Returns:
description as String

toXml

public java.lang.String toXml()
Get an XML Representation of this Class (as String of XML)
Returns:
String with the XML description

addNodesTo

public org.jdom.Element addNodesTo(org.jdom.Element nodeToAddChildrenTo)
Get an XML Representation of this Class (as Jdom nodes)
Parameters:
nodeToAddChildrenTo - - will be parent of any children in this collection
Returns:
methodRoot with the XML description