org.archiviststoolkit.structure.MODS
Class ModsCollection

java.lang.Object
  extended by org.archiviststoolkit.structure.MODS.ModsCollection

public class ModsCollection
extends java.lang.Object

Java class for modsCollection element declaration.

The following schema fragment specifies the expected content contained within this class.

 <element name="modsCollection">
   <complexType>
     <complexContent>
       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         <sequence>
           <element ref="{http://www.loc.gov/mods/v3}mods" maxOccurs="unbounded"/>
         </sequence>
       </restriction>
     </complexContent>
   </complexType>
 </element>
 


Field Summary
protected  java.util.List<ModsType> mods
           
 
Constructor Summary
ModsCollection()
           
 
Method Summary
 java.util.List<ModsType> getMods()
          Gets the value of the mods property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mods

protected java.util.List<ModsType> mods
Constructor Detail

ModsCollection

public ModsCollection()
Method Detail

getMods

public java.util.List<ModsType> getMods()
Gets the value of the mods property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the mods property.

For example, to add a new item, do as follows:

    getMods().add(newItem);
 

Objects of the following type(s) are allowed in the list ModsType