org.etsi.uri.x01903.v13.impl.GenericTimeStampTypeImpl Maven / Gradle / Ivy
Go to download
XmlBeans generated from the Ecma supplied xsds (since POI 5.0.0, the 5th edition is used):
https://www.ecma-international.org/publications/standards/Ecma-376.htm
/*
* XML Type: GenericTimeStampType
* Namespace: http://uri.etsi.org/01903/v1.3.2#
* Java type: org.etsi.uri.x01903.v13.GenericTimeStampType
*
* Automatically generated - do not modify.
*/
package org.etsi.uri.x01903.v13.impl;
/**
* An XML GenericTimeStampType(@http://uri.etsi.org/01903/v1.3.2#).
*
* This is a complex type.
*/
public class GenericTimeStampTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.etsi.uri.x01903.v13.GenericTimeStampType {
private static final long serialVersionUID = 1L;
public GenericTimeStampTypeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName INCLUDE$0 =
new javax.xml.namespace.QName("http://uri.etsi.org/01903/v1.3.2#", "Include");
private static final javax.xml.namespace.QName REFERENCEINFO$2 =
new javax.xml.namespace.QName("http://uri.etsi.org/01903/v1.3.2#", "ReferenceInfo");
private static final javax.xml.namespace.QName CANONICALIZATIONMETHOD$4 =
new javax.xml.namespace.QName("http://www.w3.org/2000/09/xmldsig#", "CanonicalizationMethod");
private static final javax.xml.namespace.QName ENCAPSULATEDTIMESTAMP$6 =
new javax.xml.namespace.QName("http://uri.etsi.org/01903/v1.3.2#", "EncapsulatedTimeStamp");
private static final javax.xml.namespace.QName XMLTIMESTAMP$8 =
new javax.xml.namespace.QName("http://uri.etsi.org/01903/v1.3.2#", "XMLTimeStamp");
private static final javax.xml.namespace.QName ID$10 =
new javax.xml.namespace.QName("", "Id");
/**
* Gets a List of "Include" elements
*/
public java.util.List getIncludeList() {
final class IncludeList extends java.util.AbstractList {
@Override
public org.etsi.uri.x01903.v13.IncludeType get(int i)
{ return GenericTimeStampTypeImpl.this.getIncludeArray(i); }
@Override
public org.etsi.uri.x01903.v13.IncludeType set(int i, org.etsi.uri.x01903.v13.IncludeType o) {
org.etsi.uri.x01903.v13.IncludeType old = GenericTimeStampTypeImpl.this.getIncludeArray(i);
GenericTimeStampTypeImpl.this.setIncludeArray(i, o);
return old;
}
@Override
public void add(int i, org.etsi.uri.x01903.v13.IncludeType o)
{ GenericTimeStampTypeImpl.this.insertNewInclude(i).set(o); }
@Override
public org.etsi.uri.x01903.v13.IncludeType remove(int i) {
org.etsi.uri.x01903.v13.IncludeType old = GenericTimeStampTypeImpl.this.getIncludeArray(i);
GenericTimeStampTypeImpl.this.removeInclude(i);
return old;
}
@Override
public int size()
{ return GenericTimeStampTypeImpl.this.sizeOfIncludeArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new IncludeList();
}
}
/**
* Gets array of all "Include" elements
*/
public org.etsi.uri.x01903.v13.IncludeType[] getIncludeArray() {
return getXmlObjectArray(INCLUDE$0, new org.etsi.uri.x01903.v13.IncludeType[0]);
}
/**
* Gets ith "Include" element
*/
public org.etsi.uri.x01903.v13.IncludeType getIncludeArray(int i) {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.IncludeType target = null;
target = (org.etsi.uri.x01903.v13.IncludeType)get_store().find_element_user(INCLUDE$0, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Include" element
*/
public int sizeOfIncludeArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(INCLUDE$0);
}
}
/**
* Sets array of all "Include" element WARNING: This method is not atomicaly synchronized.
*/
public void setIncludeArray(org.etsi.uri.x01903.v13.IncludeType[] includeArray) {
check_orphaned();
arraySetterHelper(includeArray, INCLUDE$0);
}
/**
* Sets ith "Include" element
*/
public void setIncludeArray(int i, org.etsi.uri.x01903.v13.IncludeType include) {
generatedSetterHelperImpl(include, INCLUDE$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Include" element
*/
public org.etsi.uri.x01903.v13.IncludeType insertNewInclude(int i) {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.IncludeType target = null;
target = (org.etsi.uri.x01903.v13.IncludeType)get_store().insert_element_user(INCLUDE$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Include" element
*/
public org.etsi.uri.x01903.v13.IncludeType addNewInclude() {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.IncludeType target = null;
target = (org.etsi.uri.x01903.v13.IncludeType)get_store().add_element_user(INCLUDE$0);
return target;
}
}
/**
* Removes the ith "Include" element
*/
public void removeInclude(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(INCLUDE$0, i);
}
}
/**
* Gets a List of "ReferenceInfo" elements
*/
public java.util.List getReferenceInfoList() {
final class ReferenceInfoList extends java.util.AbstractList {
@Override
public org.etsi.uri.x01903.v13.ReferenceInfoType get(int i)
{ return GenericTimeStampTypeImpl.this.getReferenceInfoArray(i); }
@Override
public org.etsi.uri.x01903.v13.ReferenceInfoType set(int i, org.etsi.uri.x01903.v13.ReferenceInfoType o) {
org.etsi.uri.x01903.v13.ReferenceInfoType old = GenericTimeStampTypeImpl.this.getReferenceInfoArray(i);
GenericTimeStampTypeImpl.this.setReferenceInfoArray(i, o);
return old;
}
@Override
public void add(int i, org.etsi.uri.x01903.v13.ReferenceInfoType o)
{ GenericTimeStampTypeImpl.this.insertNewReferenceInfo(i).set(o); }
@Override
public org.etsi.uri.x01903.v13.ReferenceInfoType remove(int i) {
org.etsi.uri.x01903.v13.ReferenceInfoType old = GenericTimeStampTypeImpl.this.getReferenceInfoArray(i);
GenericTimeStampTypeImpl.this.removeReferenceInfo(i);
return old;
}
@Override
public int size()
{ return GenericTimeStampTypeImpl.this.sizeOfReferenceInfoArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new ReferenceInfoList();
}
}
/**
* Gets array of all "ReferenceInfo" elements
*/
public org.etsi.uri.x01903.v13.ReferenceInfoType[] getReferenceInfoArray() {
return getXmlObjectArray(REFERENCEINFO$2, new org.etsi.uri.x01903.v13.ReferenceInfoType[0]);
}
/**
* Gets ith "ReferenceInfo" element
*/
public org.etsi.uri.x01903.v13.ReferenceInfoType getReferenceInfoArray(int i) {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.ReferenceInfoType target = null;
target = (org.etsi.uri.x01903.v13.ReferenceInfoType)get_store().find_element_user(REFERENCEINFO$2, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "ReferenceInfo" element
*/
public int sizeOfReferenceInfoArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(REFERENCEINFO$2);
}
}
/**
* Sets array of all "ReferenceInfo" element WARNING: This method is not atomicaly synchronized.
*/
public void setReferenceInfoArray(org.etsi.uri.x01903.v13.ReferenceInfoType[] referenceInfoArray) {
check_orphaned();
arraySetterHelper(referenceInfoArray, REFERENCEINFO$2);
}
/**
* Sets ith "ReferenceInfo" element
*/
public void setReferenceInfoArray(int i, org.etsi.uri.x01903.v13.ReferenceInfoType referenceInfo) {
generatedSetterHelperImpl(referenceInfo, REFERENCEINFO$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "ReferenceInfo" element
*/
public org.etsi.uri.x01903.v13.ReferenceInfoType insertNewReferenceInfo(int i) {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.ReferenceInfoType target = null;
target = (org.etsi.uri.x01903.v13.ReferenceInfoType)get_store().insert_element_user(REFERENCEINFO$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "ReferenceInfo" element
*/
public org.etsi.uri.x01903.v13.ReferenceInfoType addNewReferenceInfo() {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.ReferenceInfoType target = null;
target = (org.etsi.uri.x01903.v13.ReferenceInfoType)get_store().add_element_user(REFERENCEINFO$2);
return target;
}
}
/**
* Removes the ith "ReferenceInfo" element
*/
public void removeReferenceInfo(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(REFERENCEINFO$2, i);
}
}
/**
* Gets the "CanonicalizationMethod" element
*/
public org.w3.x2000.x09.xmldsig.CanonicalizationMethodType getCanonicalizationMethod() {
synchronized (monitor())
{
check_orphaned();
org.w3.x2000.x09.xmldsig.CanonicalizationMethodType target = null;
target = (org.w3.x2000.x09.xmldsig.CanonicalizationMethodType)get_store().find_element_user(CANONICALIZATIONMETHOD$4, 0);
if (target == null) {
return null;
}
return target;
}
}
/**
* True if has "CanonicalizationMethod" element
*/
public boolean isSetCanonicalizationMethod() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CANONICALIZATIONMETHOD$4) != 0;
}
}
/**
* Sets the "CanonicalizationMethod" element
*/
public void setCanonicalizationMethod(org.w3.x2000.x09.xmldsig.CanonicalizationMethodType canonicalizationMethod) {
generatedSetterHelperImpl(canonicalizationMethod, CANONICALIZATIONMETHOD$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "CanonicalizationMethod" element
*/
public org.w3.x2000.x09.xmldsig.CanonicalizationMethodType addNewCanonicalizationMethod() {
synchronized (monitor())
{
check_orphaned();
org.w3.x2000.x09.xmldsig.CanonicalizationMethodType target = null;
target = (org.w3.x2000.x09.xmldsig.CanonicalizationMethodType)get_store().add_element_user(CANONICALIZATIONMETHOD$4);
return target;
}
}
/**
* Unsets the "CanonicalizationMethod" element
*/
public void unsetCanonicalizationMethod() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CANONICALIZATIONMETHOD$4, 0);
}
}
/**
* Gets a List of "EncapsulatedTimeStamp" elements
*/
public java.util.List getEncapsulatedTimeStampList() {
final class EncapsulatedTimeStampList extends java.util.AbstractList {
@Override
public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType get(int i)
{ return GenericTimeStampTypeImpl.this.getEncapsulatedTimeStampArray(i); }
@Override
public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType set(int i, org.etsi.uri.x01903.v13.EncapsulatedPKIDataType o) {
org.etsi.uri.x01903.v13.EncapsulatedPKIDataType old = GenericTimeStampTypeImpl.this.getEncapsulatedTimeStampArray(i);
GenericTimeStampTypeImpl.this.setEncapsulatedTimeStampArray(i, o);
return old;
}
@Override
public void add(int i, org.etsi.uri.x01903.v13.EncapsulatedPKIDataType o)
{ GenericTimeStampTypeImpl.this.insertNewEncapsulatedTimeStamp(i).set(o); }
@Override
public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType remove(int i) {
org.etsi.uri.x01903.v13.EncapsulatedPKIDataType old = GenericTimeStampTypeImpl.this.getEncapsulatedTimeStampArray(i);
GenericTimeStampTypeImpl.this.removeEncapsulatedTimeStamp(i);
return old;
}
@Override
public int size()
{ return GenericTimeStampTypeImpl.this.sizeOfEncapsulatedTimeStampArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new EncapsulatedTimeStampList();
}
}
/**
* Gets array of all "EncapsulatedTimeStamp" elements
*/
public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType[] getEncapsulatedTimeStampArray() {
return getXmlObjectArray(ENCAPSULATEDTIMESTAMP$6, new org.etsi.uri.x01903.v13.EncapsulatedPKIDataType[0]);
}
/**
* Gets ith "EncapsulatedTimeStamp" element
*/
public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType getEncapsulatedTimeStampArray(int i) {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.EncapsulatedPKIDataType target = null;
target = (org.etsi.uri.x01903.v13.EncapsulatedPKIDataType)get_store().find_element_user(ENCAPSULATEDTIMESTAMP$6, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "EncapsulatedTimeStamp" element
*/
public int sizeOfEncapsulatedTimeStampArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ENCAPSULATEDTIMESTAMP$6);
}
}
/**
* Sets array of all "EncapsulatedTimeStamp" element WARNING: This method is not atomicaly synchronized.
*/
public void setEncapsulatedTimeStampArray(org.etsi.uri.x01903.v13.EncapsulatedPKIDataType[] encapsulatedTimeStampArray) {
check_orphaned();
arraySetterHelper(encapsulatedTimeStampArray, ENCAPSULATEDTIMESTAMP$6);
}
/**
* Sets ith "EncapsulatedTimeStamp" element
*/
public void setEncapsulatedTimeStampArray(int i, org.etsi.uri.x01903.v13.EncapsulatedPKIDataType encapsulatedTimeStamp) {
generatedSetterHelperImpl(encapsulatedTimeStamp, ENCAPSULATEDTIMESTAMP$6, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "EncapsulatedTimeStamp" element
*/
public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType insertNewEncapsulatedTimeStamp(int i) {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.EncapsulatedPKIDataType target = null;
target = (org.etsi.uri.x01903.v13.EncapsulatedPKIDataType)get_store().insert_element_user(ENCAPSULATEDTIMESTAMP$6, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "EncapsulatedTimeStamp" element
*/
public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType addNewEncapsulatedTimeStamp() {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.EncapsulatedPKIDataType target = null;
target = (org.etsi.uri.x01903.v13.EncapsulatedPKIDataType)get_store().add_element_user(ENCAPSULATEDTIMESTAMP$6);
return target;
}
}
/**
* Removes the ith "EncapsulatedTimeStamp" element
*/
public void removeEncapsulatedTimeStamp(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ENCAPSULATEDTIMESTAMP$6, i);
}
}
/**
* Gets a List of "XMLTimeStamp" elements
*/
public java.util.List getXMLTimeStampList() {
final class XMLTimeStampList extends java.util.AbstractList {
@Override
public org.etsi.uri.x01903.v13.AnyType get(int i)
{ return GenericTimeStampTypeImpl.this.getXMLTimeStampArray(i); }
@Override
public org.etsi.uri.x01903.v13.AnyType set(int i, org.etsi.uri.x01903.v13.AnyType o) {
org.etsi.uri.x01903.v13.AnyType old = GenericTimeStampTypeImpl.this.getXMLTimeStampArray(i);
GenericTimeStampTypeImpl.this.setXMLTimeStampArray(i, o);
return old;
}
@Override
public void add(int i, org.etsi.uri.x01903.v13.AnyType o)
{ GenericTimeStampTypeImpl.this.insertNewXMLTimeStamp(i).set(o); }
@Override
public org.etsi.uri.x01903.v13.AnyType remove(int i) {
org.etsi.uri.x01903.v13.AnyType old = GenericTimeStampTypeImpl.this.getXMLTimeStampArray(i);
GenericTimeStampTypeImpl.this.removeXMLTimeStamp(i);
return old;
}
@Override
public int size()
{ return GenericTimeStampTypeImpl.this.sizeOfXMLTimeStampArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new XMLTimeStampList();
}
}
/**
* Gets array of all "XMLTimeStamp" elements
*/
public org.etsi.uri.x01903.v13.AnyType[] getXMLTimeStampArray() {
return getXmlObjectArray(XMLTIMESTAMP$8, new org.etsi.uri.x01903.v13.AnyType[0]);
}
/**
* Gets ith "XMLTimeStamp" element
*/
public org.etsi.uri.x01903.v13.AnyType getXMLTimeStampArray(int i) {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.AnyType target = null;
target = (org.etsi.uri.x01903.v13.AnyType)get_store().find_element_user(XMLTIMESTAMP$8, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "XMLTimeStamp" element
*/
public int sizeOfXMLTimeStampArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(XMLTIMESTAMP$8);
}
}
/**
* Sets array of all "XMLTimeStamp" element WARNING: This method is not atomicaly synchronized.
*/
public void setXMLTimeStampArray(org.etsi.uri.x01903.v13.AnyType[] xmlTimeStampArray) {
check_orphaned();
arraySetterHelper(xmlTimeStampArray, XMLTIMESTAMP$8);
}
/**
* Sets ith "XMLTimeStamp" element
*/
public void setXMLTimeStampArray(int i, org.etsi.uri.x01903.v13.AnyType xmlTimeStamp) {
generatedSetterHelperImpl(xmlTimeStamp, XMLTIMESTAMP$8, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "XMLTimeStamp" element
*/
public org.etsi.uri.x01903.v13.AnyType insertNewXMLTimeStamp(int i) {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.AnyType target = null;
target = (org.etsi.uri.x01903.v13.AnyType)get_store().insert_element_user(XMLTIMESTAMP$8, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "XMLTimeStamp" element
*/
public org.etsi.uri.x01903.v13.AnyType addNewXMLTimeStamp() {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.AnyType target = null;
target = (org.etsi.uri.x01903.v13.AnyType)get_store().add_element_user(XMLTIMESTAMP$8);
return target;
}
}
/**
* Removes the ith "XMLTimeStamp" element
*/
public void removeXMLTimeStamp(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(XMLTIMESTAMP$8, i);
}
}
/**
* Gets the "Id" attribute
*/
public java.lang.String getId() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$10);
if (target == null) {
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "Id" attribute
*/
public org.apache.xmlbeans.XmlID xgetId() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlID target = null;
target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$10);
return target;
}
}
/**
* True if has "Id" attribute
*/
public boolean isSetId() {
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(ID$10) != null;
}
}
/**
* Sets the "Id" attribute
*/
public void setId(java.lang.String id) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$10);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$10);
}
target.setStringValue(id);
}
}
/**
* Sets (as xml) the "Id" attribute
*/
public void xsetId(org.apache.xmlbeans.XmlID id) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlID target = null;
target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$10);
if (target == null) {
target = (org.apache.xmlbeans.XmlID)get_store().add_attribute_user(ID$10);
}
target.set(id);
}
}
/**
* Unsets the "Id" attribute
*/
public void unsetId() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(ID$10);
}
}
}