package org.fcrepo.server.validation.ecm.jaxb;
import org.w3c.dom.Element;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
/**
* <p>Java class for anonymous complex type.
* </p>
* <p>The following schema fragment specifies the expected content contained within this class.
* </p>
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"any"
})
@XmlRootElement(name = "extension", namespace = "info:fedora/fedora-system:def/dsCompositeModel#")
public class Extension {
@XmlAnyElement
protected List<Element> any;
@XmlAttribute(required = true)
@XmlSchemaType(name = "anySimpleType")
protected String name;
/**
* Gets the value of the any property.
* <br>
* 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.
* <br>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
* <br>
* Objects of the following type(s) are allowed in the list
* {@link Element }
*/
public List<Element> getAny() {
if (any == null) {
any = new ArrayList<Element>();
}
return this.any;
}
/**
* Gets the value of the name property.
*
* @return possible object is
* {@link String }
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value allowed object is
* {@link String }
*/
public void setName(String value) {
this.name = value;
}
}