All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.purl.dc.terms.ElementOrRefinementContainer Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2021.09.30 at 08:57:09 AM CDT 
//


package org.purl.dc.terms;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.purl.dc.elements._1.SimpleLiteral;


/**
 * 
 *     		This is included as a convenience for schema authors who need to define a root
 *     		or container element for all of the DC elements and element refinements.
 *     	
 * 
 * 

Java class for elementOrRefinementContainer complex type. * *

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

 * <complexType name="elementOrRefinementContainer">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice>
 *         <group ref="{http://purl.org/dc/terms/}elementsAndRefinementsGroup"/>
 *       </choice>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "elementOrRefinementContainer", propOrder = { "any" }) public class ElementOrRefinementContainer implements Cloneable, CopyTo2 { @XmlElementRef(name = "any", namespace = "http://purl.org/dc/elements/1.1/", type = JAXBElement.class, required = false) protected List> any; /** * Gets the value of the any 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 any property. * *

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

     *    getAny().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * {@link JAXBElement }{@code <}{@link SimpleLiteral }{@code >} * * */ public List> getAny() { if (any == null) { any = new ArrayList>(); } return this.any; } public Object clone() { return copyTo(createNewInstance()); } public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); } public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof ElementOrRefinementContainer) { final ElementOrRefinementContainer copy = ((ElementOrRefinementContainer) draftCopy); { Boolean anyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.any!= null)&&(!this.any.isEmpty()))); if (anyShouldBeCopiedAndSet == Boolean.TRUE) { List> sourceAny; sourceAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); @SuppressWarnings("unchecked") List> copyAny = ((List> ) strategy.copy(LocatorUtils.property(locator, "any", sourceAny), sourceAny, ((this.any!= null)&&(!this.any.isEmpty())))); copy.any = null; if (copyAny!= null) { List> uniqueAnyl = copy.getAny(); uniqueAnyl.addAll(copyAny); } } else { if (anyShouldBeCopiedAndSet == Boolean.FALSE) { copy.any = null; } } } } return draftCopy; } public Object createNewInstance() { return new ElementOrRefinementContainer(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy