package de.zib.gndms.c3resource.jaxb;
/*
* Copyright 2008-2011 Zuse Institute Berlin (ZIB)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2008.12.11 at 02:32:25 PM CET
//
import org.apache.cxf.jaxb.JAXBToStringBuilder;
import org.apache.cxf.jaxb.JAXBToStringStyle;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
/**
*
* Resource information of one site or institute. This contains the
* description of the workspaces, the execution environement and
* the archive and metadata harvesting interfaces.
*
*
* <p>Java class for site complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="site">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="organization" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="contact" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="workspace" type="{http://c3grid.de/language/resouces/2007-05-16-resources.xsd}workspace" maxOccurs="unbounded" minOccurs="0"/>
* <element name="metadata" type="{http://c3grid.de/language/resouces/2007-05-16-resources.xsd}metadata" maxOccurs="unbounded" minOccurs="0"/>
* <any/>
* </sequence>
* <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "site", namespace = "http://c3grid.de/language/resouces/2007-05-16-resources.xsd", propOrder = {
"organization",
"contact",
"workspace",
"metadata",
"any"
})
public class Site {
@XmlElement(namespace = "http://c3grid.de/language/resouces/2007-05-16-resources.xsd", required = true)
protected String organization;
@XmlElement(namespace = "http://c3grid.de/language/resouces/2007-05-16-resources.xsd", required = true)
protected String contact;
@XmlElement(namespace = "http://c3grid.de/language/resouces/2007-05-16-resources.xsd")
protected List<Workspace> workspace;
@XmlElement(namespace = "http://c3grid.de/language/resouces/2007-05-16-resources.xsd")
protected List<Metadata> metadata;
@XmlAnyElement(lax = true)
protected List<Object> any;
@XmlAttribute(required = true)
protected String id;
/**
* Gets the value of the organization property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrganization() {
return organization;
}
/**
* Sets the value of the organization property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrganization(String value) {
this.organization = value;
}
/**
* Gets the value of the contact property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContact() {
return contact;
}
/**
* Sets the value of the contact property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContact(String value) {
this.contact = value;
}
/**
* Gets the value of the workspace property.
*
* <p>
* 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 <CODE>set</CODE> method for the workspace property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getWorkspace().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Workspace }
*
*
*/
public List<Workspace> getWorkspace() {
if (workspace == null) {
workspace = new ArrayList<Workspace>();
}
return this.workspace;
}
/**
* Gets the value of the metadata property.
*
* <p>
* 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 <CODE>set</CODE> method for the metadata property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getMetadata().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Metadata }
*
*
*/
public List<Metadata> getMetadata() {
if (metadata == null) {
metadata = new ArrayList<Metadata>();
}
return this.metadata;
}
/**
* Gets the value of the any property.
*
* <p>
* 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 <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/
@Override
public String toString() {
return JAXBToStringBuilder.valueOf(this, JAXBToStringStyle.MULTI_LINE_STYLE);
}
}