|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mayo.edu.lgModel.LexGridBase
org.LexGrid.REST.commonTypes.Source
public class Source
The local identifier of a person, organization of bibliographic resource that played a role in the creation or maintenance of a resource.
Constructor Summary | |
---|---|
Source()
|
Method Summary | |
---|---|
void |
addRole(int index,
SourceRole vRole)
|
void |
addRole(SourceRole vRole)
|
java.util.Enumeration<? extends SourceRole> |
enumerateRole()
Method enumerateRole. |
SourceRole[] |
getRole()
Method getRole.Returns the contents of the collection in an Array. |
SourceRole |
getRole(int index)
Method getRole. |
java.util.List<SourceRole> |
getRoleAsReference()
Method getRoleAsReference.Returns a reference to '_roleList'. |
int |
getRoleCount()
Method getRoleCount. |
TsLocalId |
getSource()
Returns the value of field 'source'. |
java.lang.String |
getSubRef()
Returns the value of field 'subRef'. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends SourceRole> |
iterateRole()
Method iterateRole. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllRole()
|
boolean |
removeRole(SourceRole vRole)
Method removeRole. |
SourceRole |
removeRoleAt(int index)
Method removeRoleAt. |
void |
setRole(int index,
SourceRole vRole)
|
void |
setRole(java.util.List<SourceRole> vRoleList)
Sets the value of '_roleList' by copying the given Vector. |
void |
setRole(SourceRole[] vRoleArray)
|
void |
setRoleAsReference(java.util.List<SourceRole> roleList)
Deprecated. |
void |
setSource(TsLocalId source)
Sets the value of field 'source'. |
void |
setSubRef(java.lang.String subRef)
Sets the value of field 'subRef'. |
static Source |
unmarshalSource(java.io.Reader reader)
Method unmarshalSource. |
void |
validate()
|
Methods inherited from class org.mayo.edu.lgModel.LexGridBase |
---|
getParent, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Source()
Method Detail |
---|
public void addRole(SourceRole vRole) throws java.lang.IndexOutOfBoundsException
vRole
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addRole(int index, SourceRole vRole) throws java.lang.IndexOutOfBoundsException
index
- vRole
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends SourceRole> enumerateRole()
public SourceRole getRole(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic SourceRole[] getRole()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public java.util.List<SourceRole> getRoleAsReference()
public int getRoleCount()
public TsLocalId getSource()
public java.lang.String getSubRef()
public boolean isValid()
public java.util.Iterator<? extends SourceRole> iterateRole()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
java.io.IOException
- if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllRole()
public boolean removeRole(SourceRole vRole)
vRole
-
public SourceRole removeRoleAt(int index)
index
-
public void setRole(int index, SourceRole vRole) throws java.lang.IndexOutOfBoundsException
index
- vRole
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setRole(SourceRole[] vRoleArray)
vRoleArray
- public void setRole(java.util.List<SourceRole> vRoleList)
vRoleList
- the Vector to copy.public void setRoleAsReference(java.util.List<SourceRole> roleList)
roleList
- the Vector to set.public void setSource(TsLocalId source)
source
- the value of field 'source'.public void setSubRef(java.lang.String subRef)
subRef
- the value of field 'subRef'.public static Source unmarshalSource(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |