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="PGPDataType">
   <xs:choice>
     <xs:sequence>
       <xs:element type="xs:base64Binary" name="PGPKeyID"/>
       <xs:element type="xs:base64Binary" name="PGPKeyPacket" minOccurs="0"/>
       <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##other"/>
     </xs:sequence>
     <xs:sequence>
       <xs:element type="xs:base64Binary" name="PGPKeyPacket"/>
       <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##other"/>
     </xs:sequence>
   </xs:choice>
 </xs:complexType>
 
 
 public class PGPDataType
 {
     private int choiceSelect = -1;
     private static final int PGP_KEY_ID_CHOICE = 0;
     private static final int PGP_KEY_PACKET_CHOICE = 1;
     private byte[] PGPKeyID;
     private byte[] PGPKeyPacket;
     private List<ElementanyList = new ArrayList<Element>();
     private byte[] PGPKeyPacket1;
     private List<ElementanyList1s = new ArrayList<Element>();
 
     private void setChoiceSelect(int choice) {
         if ( == -1) {
              = choice;
         } else if ( != choice) {
             throw new IllegalStateException(
                     "Need to call clearChoiceSelect() before changing existing choice");
         }
     }

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

    
Check if PGPKeyID is current selection for choice.

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

    
Get the 'PGPKeyID' element value.

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

    
Set the 'PGPKeyID' element value.

Parameters:
PGPKeyID
 
     public void setPGPKeyID(byte[] PGPKeyID) {
         this. = PGPKeyID;
     }

    
Get the 'PGPKeyPacket' element value.

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

    
Set the 'PGPKeyPacket' element value.

Parameters:
PGPKeyPacket
 
     public void setPGPKeyPacket(byte[] PGPKeyPacket) {
         this. = PGPKeyPacket;
     }

    
Get the list of any items.

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

    
Set the list of any items.

Parameters:
list
    public void setAnyList(List<Elementlist) {
         = list;
    }

    
Check if PGPKeyPacket is current selection for choice.

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

    
Get the 'PGPKeyPacket' element value.

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

    
Set the 'PGPKeyPacket' element value.

Parameters:
PGPKeyPacket1
    public void setPGPKeyPacket1(byte[] PGPKeyPacket1) {
        this. = PGPKeyPacket1;
    }

    
Get the list of any items.

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

    
Set the list of any items.

Parameters:
list
    public void setAnyList1s(List<Elementlist) {
         = list;
    }
New to GrepCode? Check out our FAQ X