// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2020.10.24 at 09:39:16 AM CEST // package net.ivoa.xml.vospace.v2; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver; import it.inaf.oats.vospace.datamodel.NodeTypeJsonResolver; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; /** * * The base class for all nodes. * * *

Java class for Node complex type. * *

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

 * <complexType name="Node">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="properties" type="{http://www.ivoa.net/xml/VOSpace/v2.0}PropertyList" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="uri" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Node", propOrder = { "properties" }) @XmlSeeAlso({ LinkNode.class, DataNode.class }) // @JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "type", include = JsonTypeInfo.As.EXISTING_PROPERTY) @JsonTypeIdResolver(NodeTypeJsonResolver.class) // public class Node { protected PropertyList properties; // // Needed for handling inheritance in JSON (for XML is is automatically generated by JAXB). @XmlAttribute(name = "type", namespace = "http://www.w3.org/2001/XMLSchema-instance") protected String type; public String getType() { return "vos:" + getClass().getSimpleName(); } public void setType(String type) { this.type = type; } // @XmlAttribute(name = "uri", required = true) @XmlSchemaType(name = "anyURI") protected String uri; /** * Gets the value of the properties property. * * @return possible object is {@link PropertyList } * */ public PropertyList getProperties() { return properties; } /** * Sets the value of the properties property. * * @param value allowed object is {@link PropertyList } * */ public void setProperties(PropertyList value) { this.properties = value; } /** * Gets the value of the uri property. * * @return possible object is {@link String } * */ public String getUri() { return uri; } /** * Sets the value of the uri property. * * @param value allowed object is {@link String } * */ public void setUri(String value) { this.uri = value; } }