net.ivoa.xml.voresource.v1
Class Relationship

java.lang.Object
  extended by net.ivoa.xml.voresource.v1.Relationship

public class Relationship
extends java.lang.Object

A description of the relationship between one resource and one or more other resources.

Java class for Relationship complex type.

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

 <complexType name="Relationship">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="relationshipType" type="{http://www.w3.org/2001/XMLSchema}token"/>
         <element name="relatedResource" type="{http://www.ivoa.net/xml/VOResource/v1.0}ResourceName" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.util.List<ResourceName> relatedResource
           
protected  java.lang.String relationshipType
           
 
Constructor Summary
Relationship()
           
 
Method Summary
 java.util.List<ResourceName> getRelatedResource()
          Gets the value of the relatedResource property.
 java.lang.String getRelationshipType()
          Gets the value of the relationshipType property.
 void setRelationshipType(java.lang.String value)
          Sets the value of the relationshipType property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relationshipType

protected java.lang.String relationshipType

relatedResource

protected java.util.List<ResourceName> relatedResource
Constructor Detail

Relationship

public Relationship()
Method Detail

getRelationshipType

public java.lang.String getRelationshipType()
Gets the value of the relationshipType property.

Returns:
possible object is String

setRelationshipType

public void setRelationshipType(java.lang.String value)
Sets the value of the relationshipType property.

Parameters:
value - allowed object is String

getRelatedResource

public java.util.List<ResourceName> getRelatedResource()
Gets the value of the relatedResource 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 relatedResource property.

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

    getRelatedResource().add(newItem);
 

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



Copyright © 2011 VAMDC. All Rights Reserved.