|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ivoa.xml.voresource.v1.Relationship
public class Relationship
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 |
---|
protected java.lang.String relationshipType
protected java.util.List<ResourceName> relatedResource
Constructor Detail |
---|
public Relationship()
Method Detail |
---|
public java.lang.String getRelationshipType()
String
public void setRelationshipType(java.lang.String value)
value
- allowed object is
String
public java.util.List<ResourceName> getRelatedResource()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |