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="TransformType">
   <xs:choice minOccurs="0" maxOccurs="unbounded">
     <!-- Reference to inner class Choice -->
   </xs:choice>
   <xs:attribute type="xs:string" use="required" name="Algorithm"/>
 </xs:complexType>
 
 
 public class TransformType
 {
     private List<ChoicechoiceList = new ArrayList<Choice>();
     private String algorithm;

    
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 'Algorithm' attribute value.

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

    
Set the 'Algorithm' attribute value.

Parameters:
algorithm
 
     public void setAlgorithm(String algorithm) {
         this. = algorithm;
     }
    
Schema fragment(s) for this class:
 <xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema" minOccurs="0" maxOccurs="unbounded">
   <xs:any processContents="lax" namespace="##other"/>
   <xs:element type="xs:string" name="XPath"/>
 </xs:choice>
 
 
     public static class Choice
     {
         private int choiceListSelect = -1;
         private static final int ANY_CHOICE = 0;
         private static final int X_PATH_CHOICE = 1;
         private Element any;
         private String XPath;
 
         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 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;
        }

        
Check if XPath is current selection for choice.

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

        
Get the 'XPath' element value.

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

        
Set the 'XPath' element value.

Parameters:
XPath
        public void setXPath(String XPath) {
            setChoiceListSelect();
            this. = XPath;
        }
    }
New to GrepCode? Check out our FAQ X