/*
 * XML Type:  KeyInfoType
 * Namespace: http://www.w3.org/2000/09/xmldsig#
 * Java type: org.w3.x2000.x09.xmldsig.KeyInfoType
 *
 * Automatically generated - do not modify.
 */
package org.w3.x2000.x09.xmldsig;


/**
 * An XML KeyInfoType(@http://www.w3.org/2000/09/xmldsig#).
 *
 * This is a complex type.
 */
public interface KeyInfoType extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(KeyInfoType.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.SchemasTypeSystem").resolveHandle("keyinfotypec7eatype");
    
    /**
     * Gets a List of "KeyName" elements
     */
    java.util.List<java.lang.String> getKeyNameList();
    
    /**
     * Gets array of all "KeyName" elements
     * @deprecated
     */
    java.lang.String[] getKeyNameArray();
    
    /**
     * Gets ith "KeyName" element
     */
    java.lang.String getKeyNameArray(int i);
    
    /**
     * Gets (as xml) a List of "KeyName" elements
     */
    java.util.List<org.apache.xmlbeans.XmlString> xgetKeyNameList();
    
    /**
     * Gets (as xml) array of all "KeyName" elements
     * @deprecated
     */
    org.apache.xmlbeans.XmlString[] xgetKeyNameArray();
    
    /**
     * Gets (as xml) ith "KeyName" element
     */
    org.apache.xmlbeans.XmlString xgetKeyNameArray(int i);
    
    /**
     * Returns number of "KeyName" element
     */
    int sizeOfKeyNameArray();
    
    /**
     * Sets array of all "KeyName" element
     */
    void setKeyNameArray(java.lang.String[] keyNameArray);
    
    /**
     * Sets ith "KeyName" element
     */
    void setKeyNameArray(int i, java.lang.String keyName);
    
    /**
     * Sets (as xml) array of all "KeyName" element
     */
    void xsetKeyNameArray(org.apache.xmlbeans.XmlString[] keyNameArray);
    
    /**
     * Sets (as xml) ith "KeyName" element
     */
    void xsetKeyNameArray(int i, org.apache.xmlbeans.XmlString keyName);
    
    /**
     * Inserts the value as the ith "KeyName" element
     */
    void insertKeyName(int i, java.lang.String keyName);
    
    /**
     * Appends the value as the last "KeyName" element
     */
    void addKeyName(java.lang.String keyName);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "KeyName" element
     */
    org.apache.xmlbeans.XmlString insertNewKeyName(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "KeyName" element
     */
    org.apache.xmlbeans.XmlString addNewKeyName();
    
    /**
     * Removes the ith "KeyName" element
     */
    void removeKeyName(int i);
    
    /**
     * Gets a List of "KeyValue" elements
     */
    java.util.List<org.w3.x2000.x09.xmldsig.KeyValueType> getKeyValueList();
    
    /**
     * Gets array of all "KeyValue" elements
     * @deprecated
     */
    org.w3.x2000.x09.xmldsig.KeyValueType[] getKeyValueArray();
    
    /**
     * Gets ith "KeyValue" element
     */
    org.w3.x2000.x09.xmldsig.KeyValueType getKeyValueArray(int i);
    
    /**
     * Returns number of "KeyValue" element
     */
    int sizeOfKeyValueArray();
    
    /**
     * Sets array of all "KeyValue" element
     */
    void setKeyValueArray(org.w3.x2000.x09.xmldsig.KeyValueType[] keyValueArray);
    
    /**
     * Sets ith "KeyValue" element
     */
    void setKeyValueArray(int i, org.w3.x2000.x09.xmldsig.KeyValueType keyValue);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "KeyValue" element
     */
    org.w3.x2000.x09.xmldsig.KeyValueType insertNewKeyValue(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "KeyValue" element
     */
    org.w3.x2000.x09.xmldsig.KeyValueType addNewKeyValue();
    
    /**
     * Removes the ith "KeyValue" element
     */
    void removeKeyValue(int i);
    
    /**
     * Gets a List of "RetrievalMethod" elements
     */
    java.util.List<org.w3.x2000.x09.xmldsig.RetrievalMethodType> getRetrievalMethodList();
    
    /**
     * Gets array of all "RetrievalMethod" elements
     * @deprecated
     */
    org.w3.x2000.x09.xmldsig.RetrievalMethodType[] getRetrievalMethodArray();
    
    /**
     * Gets ith "RetrievalMethod" element
     */
    org.w3.x2000.x09.xmldsig.RetrievalMethodType getRetrievalMethodArray(int i);
    
    /**
     * Returns number of "RetrievalMethod" element
     */
    int sizeOfRetrievalMethodArray();
    
    /**
     * Sets array of all "RetrievalMethod" element
     */
    void setRetrievalMethodArray(org.w3.x2000.x09.xmldsig.RetrievalMethodType[] retrievalMethodArray);
    
    /**
     * Sets ith "RetrievalMethod" element
     */
    void setRetrievalMethodArray(int i, org.w3.x2000.x09.xmldsig.RetrievalMethodType retrievalMethod);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "RetrievalMethod" element
     */
    org.w3.x2000.x09.xmldsig.RetrievalMethodType insertNewRetrievalMethod(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "RetrievalMethod" element
     */
    org.w3.x2000.x09.xmldsig.RetrievalMethodType addNewRetrievalMethod();
    
    /**
     * Removes the ith "RetrievalMethod" element
     */
    void removeRetrievalMethod(int i);
    
    /**
     * Gets a List of "X509Data" elements
     */
    java.util.List<org.w3.x2000.x09.xmldsig.X509DataType> getX509DataList();
    
    /**
     * Gets array of all "X509Data" elements
     * @deprecated
     */
    org.w3.x2000.x09.xmldsig.X509DataType[] getX509DataArray();
    
    /**
     * Gets ith "X509Data" element
     */
    org.w3.x2000.x09.xmldsig.X509DataType getX509DataArray(int i);
    
    /**
     * Returns number of "X509Data" element
     */
    int sizeOfX509DataArray();
    
    /**
     * Sets array of all "X509Data" element
     */
    void setX509DataArray(org.w3.x2000.x09.xmldsig.X509DataType[] x509DataArray);
    
    /**
     * Sets ith "X509Data" element
     */
    void setX509DataArray(int i, org.w3.x2000.x09.xmldsig.X509DataType x509Data);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "X509Data" element
     */
    org.w3.x2000.x09.xmldsig.X509DataType insertNewX509Data(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "X509Data" element
     */
    org.w3.x2000.x09.xmldsig.X509DataType addNewX509Data();
    
    /**
     * Removes the ith "X509Data" element
     */
    void removeX509Data(int i);
    
    /**
     * Gets a List of "PGPData" elements
     */
    java.util.List<org.w3.x2000.x09.xmldsig.PGPDataType> getPGPDataList();
    
    /**
     * Gets array of all "PGPData" elements
     * @deprecated
     */
    org.w3.x2000.x09.xmldsig.PGPDataType[] getPGPDataArray();
    
    /**
     * Gets ith "PGPData" element
     */
    org.w3.x2000.x09.xmldsig.PGPDataType getPGPDataArray(int i);
    
    /**
     * Returns number of "PGPData" element
     */
    int sizeOfPGPDataArray();
    
    /**
     * Sets array of all "PGPData" element
     */
    void setPGPDataArray(org.w3.x2000.x09.xmldsig.PGPDataType[] pgpDataArray);
    
    /**
     * Sets ith "PGPData" element
     */
    void setPGPDataArray(int i, org.w3.x2000.x09.xmldsig.PGPDataType pgpData);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "PGPData" element
     */
    org.w3.x2000.x09.xmldsig.PGPDataType insertNewPGPData(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "PGPData" element
     */
    org.w3.x2000.x09.xmldsig.PGPDataType addNewPGPData();
    
    /**
     * Removes the ith "PGPData" element
     */
    void removePGPData(int i);
    
    /**
     * Gets a List of "SPKIData" elements
     */
    java.util.List<org.w3.x2000.x09.xmldsig.SPKIDataType> getSPKIDataList();
    
    /**
     * Gets array of all "SPKIData" elements
     * @deprecated
     */
    org.w3.x2000.x09.xmldsig.SPKIDataType[] getSPKIDataArray();
    
    /**
     * Gets ith "SPKIData" element
     */
    org.w3.x2000.x09.xmldsig.SPKIDataType getSPKIDataArray(int i);
    
    /**
     * Returns number of "SPKIData" element
     */
    int sizeOfSPKIDataArray();
    
    /**
     * Sets array of all "SPKIData" element
     */
    void setSPKIDataArray(org.w3.x2000.x09.xmldsig.SPKIDataType[] spkiDataArray);
    
    /**
     * Sets ith "SPKIData" element
     */
    void setSPKIDataArray(int i, org.w3.x2000.x09.xmldsig.SPKIDataType spkiData);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "SPKIData" element
     */
    org.w3.x2000.x09.xmldsig.SPKIDataType insertNewSPKIData(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "SPKIData" element
     */
    org.w3.x2000.x09.xmldsig.SPKIDataType addNewSPKIData();
    
    /**
     * Removes the ith "SPKIData" element
     */
    void removeSPKIData(int i);
    
    /**
     * Gets a List of "MgmtData" elements
     */
    java.util.List<java.lang.String> getMgmtDataList();
    
    /**
     * Gets array of all "MgmtData" elements
     * @deprecated
     */
    java.lang.String[] getMgmtDataArray();
    
    /**
     * Gets ith "MgmtData" element
     */
    java.lang.String getMgmtDataArray(int i);
    
    /**
     * Gets (as xml) a List of "MgmtData" elements
     */
    java.util.List<org.apache.xmlbeans.XmlString> xgetMgmtDataList();
    
    /**
     * Gets (as xml) array of all "MgmtData" elements
     * @deprecated
     */
    org.apache.xmlbeans.XmlString[] xgetMgmtDataArray();
    
    /**
     * Gets (as xml) ith "MgmtData" element
     */
    org.apache.xmlbeans.XmlString xgetMgmtDataArray(int i);
    
    /**
     * Returns number of "MgmtData" element
     */
    int sizeOfMgmtDataArray();
    
    /**
     * Sets array of all "MgmtData" element
     */
    void setMgmtDataArray(java.lang.String[] mgmtDataArray);
    
    /**
     * Sets ith "MgmtData" element
     */
    void setMgmtDataArray(int i, java.lang.String mgmtData);
    
    /**
     * Sets (as xml) array of all "MgmtData" element
     */
    void xsetMgmtDataArray(org.apache.xmlbeans.XmlString[] mgmtDataArray);
    
    /**
     * Sets (as xml) ith "MgmtData" element
     */
    void xsetMgmtDataArray(int i, org.apache.xmlbeans.XmlString mgmtData);
    
    /**
     * Inserts the value as the ith "MgmtData" element
     */
    void insertMgmtData(int i, java.lang.String mgmtData);
    
    /**
     * Appends the value as the last "MgmtData" element
     */
    void addMgmtData(java.lang.String mgmtData);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "MgmtData" element
     */
    org.apache.xmlbeans.XmlString insertNewMgmtData(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "MgmtData" element
     */
    org.apache.xmlbeans.XmlString addNewMgmtData();
    
    /**
     * Removes the ith "MgmtData" element
     */
    void removeMgmtData(int i);
    
    /**
     * Gets the "Id" attribute
     */
    java.lang.String getId();
    
    /**
     * Gets (as xml) the "Id" attribute
     */
    org.apache.xmlbeans.XmlID xgetId();
    
    /**
     * True if has "Id" attribute
     */
    boolean isSetId();
    
    /**
     * Sets the "Id" attribute
     */
    void setId(java.lang.String id);
    
    /**
     * Sets (as xml) the "Id" attribute
     */
    void xsetId(org.apache.xmlbeans.XmlID id);
    
    /**
     * Unsets the "Id" attribute
     */
    void unsetId();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static org.w3.x2000.x09.xmldsig.KeyInfoType newInstance() {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.w3.x2000.x09.xmldsig.KeyInfoType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (org.w3.x2000.x09.xmldsig.KeyInfoType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
