org.etsi.uri.x01903.v13.impl.CertIDListTypeImpl Maven / Gradle / Ivy
Go to download
XmlBeans generated from various supplied xsds for encryption and signing:
http://msdn.microsoft.com/en-us/library/dd925810(v=office.12).aspx
http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%202%20(PDF).zip
http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd
http://uri.etsi.org/01903/v1.3.2/XAdES.xsd
http://uri.etsi.org/01903/v1.4.1/XAdESv141.xsd
http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd
http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcterms.xsd
http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcmitype.xsd
The newest version!
/*
* XML Type: CertIDListType
* Namespace: http://uri.etsi.org/01903/v1.3.2#
* Java type: org.etsi.uri.x01903.v13.CertIDListType
*
* Automatically generated - do not modify.
*/
package org.etsi.uri.x01903.v13.impl;
/**
* An XML CertIDListType(@http://uri.etsi.org/01903/v1.3.2#).
*
* This is a complex type.
*/
public class CertIDListTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.etsi.uri.x01903.v13.CertIDListType
{
public CertIDListTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CERT$0 =
new javax.xml.namespace.QName("http://uri.etsi.org/01903/v1.3.2#", "Cert");
/**
* Gets a List of "Cert" elements
*/
public java.util.List getCertList()
{
final class CertList extends java.util.AbstractList
{
public org.etsi.uri.x01903.v13.CertIDType get(int i)
{ return CertIDListTypeImpl.this.getCertArray(i); }
public org.etsi.uri.x01903.v13.CertIDType set(int i, org.etsi.uri.x01903.v13.CertIDType o)
{
org.etsi.uri.x01903.v13.CertIDType old = CertIDListTypeImpl.this.getCertArray(i);
CertIDListTypeImpl.this.setCertArray(i, o);
return old;
}
public void add(int i, org.etsi.uri.x01903.v13.CertIDType o)
{ CertIDListTypeImpl.this.insertNewCert(i).set(o); }
public org.etsi.uri.x01903.v13.CertIDType remove(int i)
{
org.etsi.uri.x01903.v13.CertIDType old = CertIDListTypeImpl.this.getCertArray(i);
CertIDListTypeImpl.this.removeCert(i);
return old;
}
public int size()
{ return CertIDListTypeImpl.this.sizeOfCertArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new CertList();
}
}
/**
* Gets array of all "Cert" elements
*/
public org.etsi.uri.x01903.v13.CertIDType[] getCertArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(CERT$0, targetList);
org.etsi.uri.x01903.v13.CertIDType[] result = new org.etsi.uri.x01903.v13.CertIDType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Cert" element
*/
public org.etsi.uri.x01903.v13.CertIDType getCertArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.CertIDType target = null;
target = (org.etsi.uri.x01903.v13.CertIDType)get_store().find_element_user(CERT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Cert" element
*/
public int sizeOfCertArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CERT$0);
}
}
/**
* Sets array of all "Cert" element
*/
public void setCertArray(org.etsi.uri.x01903.v13.CertIDType[] certArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(certArray, CERT$0);
}
}
/**
* Sets ith "Cert" element
*/
public void setCertArray(int i, org.etsi.uri.x01903.v13.CertIDType cert)
{
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.CertIDType target = null;
target = (org.etsi.uri.x01903.v13.CertIDType)get_store().find_element_user(CERT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(cert);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Cert" element
*/
public org.etsi.uri.x01903.v13.CertIDType insertNewCert(int i)
{
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.CertIDType target = null;
target = (org.etsi.uri.x01903.v13.CertIDType)get_store().insert_element_user(CERT$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Cert" element
*/
public org.etsi.uri.x01903.v13.CertIDType addNewCert()
{
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.CertIDType target = null;
target = (org.etsi.uri.x01903.v13.CertIDType)get_store().add_element_user(CERT$0);
return target;
}
}
/**
* Removes the ith "Cert" element
*/
public void removeCert(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CERT$0, i);
}
}
}