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" name="X509DataType">
   <xs:sequence>
     <xs:choice maxOccurs="unbounded">
       <!-- Reference to inner class Choice -->
     </xs:choice>
   </xs:sequence>
 </xs:complexType>
 
 
 public class X509DataType
 {
     private List<ChoicechoiceList = new ArrayList<Choice>();

    
Get the list of 'X509DataType' complexType items.

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

    
Set the list of 'X509DataType' complexType items.

Parameters:
list
 
     public void setChoiceList(List<Choicelist) {
          = list;
     }
    
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 type="ns:X509IssuerSerialType" name="X509IssuerSerial"/>
   <xs:element type="xs:base64Binary" name="X509SKI"/>
   <xs:element type="xs:string" name="X509SubjectName"/>
   <xs:element type="xs:base64Binary" name="X509Certificate"/>
   <xs:element type="xs:base64Binary" name="X509CRL"/>
   <xs:any processContents="lax" namespace="##other"/>
 </xs:choice>
 
 
     public static class Choice
     {
         private int choiceListSelect = -1;
         private static final int X509_ISSUER_SERIAL_CHOICE = 0;
         private static final int X509_SKI_CHOICE = 1;
         private static final int X509_SUBJECT_NAME_CHOICE = 2;
         private static final int X509_CERTIFICATE_CHOICE = 3;
         private static final int X509_CRL_CHOICE = 4;
         private static final int ANY_CHOICE = 5;
         private X509IssuerSerialType x509IssuerSerial;
         private byte[] x509SKI;
         private String x509SubjectName;
         private byte[] x509Certificate;
         private byte[] x509CRL;
         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 X509IssuerSerial is current selection for choice.

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

        
Get the 'X509IssuerSerial' element value.

Returns:
value
 
        public X509IssuerSerialType getX509IssuerSerial() {
            return ;
        }

        
Set the 'X509IssuerSerial' element value.

Parameters:
x509IssuerSerial
        public void setX509IssuerSerial(X509IssuerSerialType x509IssuerSerial) {
            this. = x509IssuerSerial;
        }

        
Check if X509SKI is current selection for choice.

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

        
Get the 'X509SKI' element value.

Returns:
value
        public byte[] getX509SKI() {
            return ;
        }

        
Set the 'X509SKI' element value.

Parameters:
x509SKI
        public void setX509SKI(byte[] x509SKI) {
            setChoiceListSelect();
            this. = x509SKI;
        }

        
Check if X509SubjectName is current selection for choice.

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

        
Get the 'X509SubjectName' element value.

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

        
Set the 'X509SubjectName' element value.

Parameters:
x509SubjectName
        public void setX509SubjectName(String x509SubjectName) {
            this. = x509SubjectName;
        }

        
Check if X509Certificate is current selection for choice.

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

        
Get the 'X509Certificate' element value.

Returns:
value
        public byte[] getX509Certificate() {
            return ;
        }

        
Set the 'X509Certificate' element value.

Parameters:
x509Certificate
        public void setX509Certificate(byte[] x509Certificate) {
            this. = x509Certificate;
        }

        
Check if X509CRL is current selection for choice.

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

        
Get the 'X509CRL' element value.

Returns:
value
        public byte[] getX509CRL() {
            return ;
        }

        
Set the 'X509CRL' element value.

Parameters:
x509CRL
        public void setX509CRL(byte[] x509CRL) {
            setChoiceListSelect();
            this. = x509CRL;
        }

        
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