Class Package

All Implemented Interfaces:
org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString

@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public class Package extends ReferableElement implements org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString
A Package is a container for type definitions and possible (child-)packages. Names of types only need to be unique within their container (model or package), hence a package provides further name-spacing for type definitions. When deriving physical representations of a model, packages may be mapped to containers in the target meta-model. For example in mapping to XSD they may give rise to separate documents with type definitions and their own targetNamespace. When generating Java classes they may be used to define seprate packages for the classes derived form the types. Name of the package is constrained in that there can only be one package with a given name in the container in which the package is defined, i.e. the model or a parent package. TBD we may wish to extend this rule to all children defined in a container, including types.

Java class for Package complex type

.

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


 <complexType name="Package">
   <complexContent>
     <extension base="{http://www.ivoa.net/xml/VODML/v1}ReferableElement">
       <sequence>
         <element name="primitiveType" type="{http://www.ivoa.net/xml/VODML/v1}PrimitiveType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="enumeration" type="{http://www.ivoa.net/xml/VODML/v1}Enumeration" maxOccurs="unbounded" minOccurs="0"/>
         <element name="dataType" type="{http://www.ivoa.net/xml/VODML/v1}DataType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="objectType" type="{http://www.ivoa.net/xml/VODML/v1}ObjectType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="package" type="{http://www.ivoa.net/xml/VODML/v1}Package" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

    • primitiveTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected List<PrimitiveType> primitiveTypes
      Collection of PrimitiveType-s defined in this package.
    • enumerations

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected List<Enumeration> enumerations
      Collection of Enumeration-s defined in this package.
    • dataTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected List<DataType> dataTypes
      Collection of DataType-s defined in this package.
    • objectTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected List<ObjectType> objectTypes
      Collection of ObjectType-s defined in this package.
    • packages

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected List<Package> packages
      Collection of child Package-s defined in this package.
  • Constructor Details

  • Method Details

    • getPrimitiveTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public List<PrimitiveType> getPrimitiveTypes()
      Collection of PrimitiveType-s defined in this package. Gets the value of the primitiveTypes 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 primitiveTypes property.

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

       getPrimitiveTypes().add(newItem);
       

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

      Returns:
      The value of the primitiveTypes property.
    • getEnumerations

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public List<Enumeration> getEnumerations()
      Collection of Enumeration-s defined in this package. Gets the value of the enumerations 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 enumerations property.

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

       getEnumerations().add(newItem);
       

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

      Returns:
      The value of the enumerations property.
    • getDataTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public List<DataType> getDataTypes()
      Collection of DataType-s defined in this package. Gets the value of the dataTypes 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 dataTypes property.

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

       getDataTypes().add(newItem);
       

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

      Returns:
      The value of the dataTypes property.
    • getObjectTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public List<ObjectType> getObjectTypes()
      Collection of ObjectType-s defined in this package. Gets the value of the objectTypes 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 objectTypes property.

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

       getObjectTypes().add(newItem);
       

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

      Returns:
      The value of the objectTypes property.
    • getPackages

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public List<Package> getPackages()
      Collection of child Package-s defined in this package. Gets the value of the packages 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 packages property.

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

       getPackages().add(newItem);
       

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

      Returns:
      The value of the packages property.
    • equals

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public boolean equals(Object object)
      Overrides:
      equals in class ReferableElement
    • hashCode

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public int hashCode()
      Overrides:
      hashCode in class ReferableElement
    • toString

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public String toString()
      Overrides:
      toString in class ReferableElement
    • append

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public StringBuilder append(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy)
      Specified by:
      append in interface org.jvnet.jaxb.lang.ToString
      Overrides:
      append in class ReferableElement
    • appendFields

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public StringBuilder appendFields(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb.lang.ToString
      Overrides:
      appendFields in class ReferableElement
    • withPrimitiveTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withPrimitiveTypes(PrimitiveType... values)
    • withPrimitiveTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withPrimitiveTypes(Collection<PrimitiveType> values)
    • withEnumerations

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withEnumerations(Enumeration... values)
    • withEnumerations

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withEnumerations(Collection<Enumeration> values)
    • withDataTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withDataTypes(DataType... values)
    • withDataTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withDataTypes(Collection<DataType> values)
    • withObjectTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withObjectTypes(ObjectType... values)
    • withObjectTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withObjectTypes(Collection<ObjectType> values)
    • withPackages

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withPackages(Package... values)
    • withPackages

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withPackages(Collection<Package> values)
    • withVodmlId

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withVodmlId(String value)
      Overrides:
      withVodmlId in class ReferableElement
    • withName

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withName(String value)
      Overrides:
      withName in class ReferableElement
    • withDescription

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withDescription(String value)
      Overrides:
      withDescription in class ReferableElement
    • withId

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Package withId(String value)
      Overrides:
      withId in class ReferableElement
    • mergeFrom

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public void mergeFrom(Object left, Object right)
      Specified by:
      mergeFrom in interface org.jvnet.jaxb.lang.MergeFrom
      Overrides:
      mergeFrom in class ReferableElement
    • mergeFrom

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public void mergeFrom(org.jvnet.jaxb.locator.ObjectLocator leftLocator, org.jvnet.jaxb.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb.lang.MergeStrategy strategy)
      Specified by:
      mergeFrom in interface org.jvnet.jaxb.lang.MergeFrom
      Overrides:
      mergeFrom in class ReferableElement
    • createNewInstance

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Object createNewInstance()
      Specified by:
      createNewInstance in interface org.jvnet.jaxb.lang.MergeFrom