org.archiviststoolkit.structure.MARCXML
Class CollectionType

java.lang.Object
  extended by org.archiviststoolkit.structure.MARCXML.CollectionType

public class CollectionType
extends java.lang.Object

Java class for collectionType complex type.

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

 <complexType name="collectionType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence maxOccurs="unbounded" minOccurs="0">
         <element ref="{http://www.loc.gov/MARC21/slim}record"/>
       </sequence>
       <attribute name="id" type="{http://www.loc.gov/MARC21/slim}idDataType" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.lang.String id
           
protected  java.util.List<RecordType> record
           
 
Constructor Summary
CollectionType()
           
 
Method Summary
 java.lang.String getId()
          Gets the value of the id property.
 java.util.List<RecordType> getRecord()
          Gets the value of the record property.
 void setId(java.lang.String value)
          Sets the value of the id property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

record

protected java.util.List<RecordType> record

id

protected java.lang.String id
Constructor Detail

CollectionType

public CollectionType()
Method Detail

getRecord

public java.util.List<RecordType> getRecord()
Gets the value of the record 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 record property.

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

    getRecord().add(newItem);
 

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


getId

public java.lang.String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(java.lang.String value)
Sets the value of the id property.

Parameters:
value - allowed object is String