Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.w3.TR._2002.REC_xmldsig_core_20020212.xmldsig_core_schema;
  
  import java.util.List;
Schema fragment(s) for this class:
 <xs:complexType xmlns:ns="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" mixed="true" name="KeyInfoType">
   <xs:choice maxOccurs="unbounded">
     <!-- Reference to inner class Choice -->
   </xs:choice>
   <xs:attribute type="xs:string" use="optional" name="Id"/>
 </xs:complexType>
 
 
 public class KeyInfoType
 {
     private List<ChoicechoiceList = new ArrayList<Choice>();
     private String id;

    
Get the list of choice items.

Returns:
list
 
     public List<ChoicegetChoiceList() {
         return ;
     }

    
Set the list of choice items.

Parameters:
list
 
     public void setChoiceList(List<Choicelist) {
          = list;
     }

    
Get the 'Id' attribute value.

Returns:
value
 
     public String getId() {
         return ;
     }

    
Set the 'Id' attribute value.

Parameters:
id
 
     public void setId(String id) {
         this. = id;
     }
    
Schema fragment(s) for this class:
 <xs:choice xmlns:ns="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" maxOccurs="unbounded">
   <xs:element ref="ns:KeyName"/>
   <xs:element ref="ns:KeyValue"/>
   <xs:element ref="ns:RetrievalMethod"/>
   <xs:element ref="ns:X509Data"/>
   <xs:element ref="ns:PGPData"/>
   <xs:element ref="ns:SPKIData"/>
   <xs:element ref="ns:MgmtData"/>
   <xs:any processContents="lax" namespace="##other"/>
 </xs:choice>
 
 
     public static class Choice
     {
         private int choiceListSelect = -1;
         private static final int KEY_NAME_CHOICE = 0;
         private static final int KEY_VALUE_CHOICE = 1;
         private static final int RETRIEVAL_METHOD_CHOICE = 2;
         private static final int X509_DATA_CHOICE = 3;
         private static final int PGP_DATA_CHOICE = 4;
         private static final int SPKI_DATA_CHOICE = 5;
         private static final int MGMT_DATA_CHOICE = 6;
         private static final int ANY_CHOICE = 7;
         private KeyName keyName;
         private KeyValueType keyValue;
         private RetrievalMethodType retrievalMethod;
         private X509DataType x509Data;
         private PGPDataType PGPData;
         private SPKIDataType SPKIData;
         private MgmtData mgmtData;
         private Element any;
 
         private void setChoiceListSelect(int choice) {
             if ( == -1) {
                  = choice;
             } else if ( != choice) {
                 throw new IllegalStateException(
                         "Need to call clearChoiceListSelect() before changing existing choice");
            }
        }

        
Clear the choice selection.
        public void clearChoiceListSelect() {
             = -1;
        }

        
Check if KeyName is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifKeyName() {
            return  == ;
        }

        
Get the 'KeyName' element value.

Returns:
value
        public KeyName getKeyName() {
            return ;
        }

        
Set the 'KeyName' element value.

Parameters:
keyName
        public void setKeyName(KeyName keyName) {
            setChoiceListSelect();
            this. = keyName;
        }

        
Check if KeyValue is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifKeyValue() {
            return  == ;
        }

        
Get the 'KeyValue' element value.

Returns:
value
        public KeyValueType getKeyValue() {
            return ;
        }

        
Set the 'KeyValue' element value.

Parameters:
keyValue
        public void setKeyValue(KeyValueType keyValue) {
            setChoiceListSelect();
            this. = keyValue;
        }

        
Check if RetrievalMethod is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifRetrievalMethod() {
            return  == ;
        }

        
Get the 'RetrievalMethod' element value.

Returns:
value
        public RetrievalMethodType getRetrievalMethod() {
            return ;
        }

        
Set the 'RetrievalMethod' element value.

Parameters:
retrievalMethod
        public void setRetrievalMethod(RetrievalMethodType retrievalMethod) {
            this. = retrievalMethod;
        }

        
Check if X509Data is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifX509Data() {
            return  == ;
        }

        
Get the 'X509Data' element value.

Returns:
value
        public X509DataType getX509Data() {
            return ;
        }

        
Set the 'X509Data' element value.

Parameters:
x509Data
        public void setX509Data(X509DataType x509Data) {
            setChoiceListSelect();
            this. = x509Data;
        }

        
Check if PGPData is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifPGPData() {
            return  == ;
        }

        
Get the 'PGPData' element value.

Returns:
value
        public PGPDataType getPGPData() {
            return ;
        }

        
Set the 'PGPData' element value.

Parameters:
PGPData
        public void setPGPData(PGPDataType PGPData) {
            setChoiceListSelect();
            this. = PGPData;
        }

        
Check if SPKIData is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifSPKIData() {
            return  == ;
        }

        
Get the 'SPKIData' element value.

Returns:
value
        public SPKIDataType getSPKIData() {
            return ;
        }

        
Set the 'SPKIData' element value.

Parameters:
SPKIData
        public void setSPKIData(SPKIDataType SPKIData) {
            setChoiceListSelect();
            this. = SPKIData;
        }

        
Check if MgmtData is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifMgmtData() {
            return  == ;
        }

        
Get the 'MgmtData' element value.

Returns:
value
        public MgmtData getMgmtData() {
            return ;
        }

        
Set the 'MgmtData' element value.

Parameters:
mgmtData
        public void setMgmtData(MgmtData mgmtData) {
            setChoiceListSelect();
            this. = mgmtData;
        }

        
Check if Any is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifAny() {
            return  == ;
        }

        
Get the any value.

Returns:
value
        public Element getAny() {
            return ;
        }

        
Set the any value.

Parameters:
any
        public void setAny(Element any) {
            setChoiceListSelect();
            this. = any;
        }
    }
New to GrepCode? Check out our FAQ X