Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * This class was automatically generated with 
   * <a href="http://www.castor.org">Castor 1.3.1</a>, using an XML
   * Schema.
   * $Id$
   */
  
  package org.twinkql.model.descriptors;
  
   //---------------------------------/
  //- Imported classes and packages -/
 //---------------------------------/
 
Class SelectItemDescriptor.

Version:
$Revision$ $Date$
 
 
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
Field _elementDefinition.
 
     private boolean _elementDefinition;

    
Field _nsPrefix.
 
     private java.lang.String _nsPrefix;

    
Field _nsURI.
 
     private java.lang.String _nsURI;

    
Field _xmlName.
 
     private java.lang.String _xmlName;

    
Field _identity.
 
 
 
       //----------------/
      //- Constructors -/
     //----------------/
 
     public SelectItemDescriptor() {
         super();
          = "http://twinkql.org";
          = "select";
          = false;
 
         //-- set grouping compositor
         setCompositorAsChoice();
         org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
         org.exolab.castor.mapping.FieldHandler             handler        = null;
         org.exolab.castor.xml.FieldValidator               fieldValidator = null;
         //-- initialize attribute descriptors
 
         //-- initialize element descriptors
 
         //-- _iterator
         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.twinkql.model.Iterator.class"_iterator""iterator".....);
         handler = new org.exolab.castor.xml.XMLFieldHandler() {
             @Override
             public java.lang.Object getValuejava.lang.Object object ) 
                 throws IllegalStateException
             {
                 SelectItem target = (SelectItemobject;
                 return target.getIterator();
             }
             @Override
             public void setValuejava.lang.Object objectjava.lang.Object value
                 throws IllegalStateExceptionIllegalArgumentException
             {
                 try {
                     SelectItem target = (SelectItemobject;
                     target.setIterator( (org.twinkql.model.Iteratorvalue);
                 } catch (java.lang.Exception ex) {
                     throw new IllegalStateException(ex.toString());
                 }
             }
             @Override
             @SuppressWarnings("unused")
             public java.lang.Object newInstance(java.lang.Object parent) {
                 return new org.twinkql.model.Iterator();
             }
         };
        desc.setSchemaType("iterator");
        desc.setHandler(handler);
        desc.setNameSpaceURI("http://twinkql.org");
        desc.setMultivalued(false);
        addFieldDescriptor(desc);
        addSequenceElement(desc);
        //-- validation code for: _iterator
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
        //-- _isNotNull
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.twinkql.model.IsNotNull.class"_isNotNull""isNotNull".....);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            @Override
            public java.lang.Object getValuejava.lang.Object object ) 
                throws IllegalStateException
            {
                SelectItem target = (SelectItemobject;
                return target.getIsNotNull();
            }
            @Override
            public void setValuejava.lang.Object objectjava.lang.Object value
                throws IllegalStateExceptionIllegalArgumentException
            {
                try {
                    SelectItem target = (SelectItemobject;
                    target.setIsNotNull( (org.twinkql.model.IsNotNullvalue);
                } catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }
            @Override
            @SuppressWarnings("unused")
            public java.lang.Object newInstance(java.lang.Object parent) {
                return new org.twinkql.model.IsNotNull();
            }
        };
        desc.setSchemaType("org.twinkql.model.IsNotNull");
        desc.setHandler(handler);
        desc.setNameSpaceURI("http://twinkql.org");
        desc.setMultivalued(false);
        addFieldDescriptor(desc);
        addSequenceElement(desc);
        //-- validation code for: _isNotNull
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
        //-- _test
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.twinkql.model.Test.class"_test""test".....);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            @Override
            public java.lang.Object getValuejava.lang.Object object ) 
                throws IllegalStateException
            {
                SelectItem target = (SelectItemobject;
                return target.getTest();
            }
            @Override
            public void setValuejava.lang.Object objectjava.lang.Object value
                throws IllegalStateExceptionIllegalArgumentException
            {
                try {
                    SelectItem target = (SelectItemobject;
                    target.setTest( (org.twinkql.model.Testvalue);
                } catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }
            @Override
            @SuppressWarnings("unused")
            public java.lang.Object newInstance(java.lang.Object parent) {
                return new org.twinkql.model.Test();
            }
        };
        desc.setSchemaType("test");
        desc.setHandler(handler);
        desc.setNameSpaceURI("http://twinkql.org");
        desc.setMultivalued(false);
        addFieldDescriptor(desc);
        addSequenceElement(desc);
        //-- validation code for: _test
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
    }
      //-----------/
     //- Methods -/
    //-----------/

    
Method getAccessMode.

Returns:
the access mode specified for this class.
    @Override()
    ) {
        return null;
    }

    
Method getIdentity.

Returns:
the identity field, null if this class has no identity.
    @Override()
    ) {
        return ;
    }

    
Method getJavaClass.

Returns:
the Java class represented by this descriptor.
    @Override()
    public java.lang.Class getJavaClass(
    ) {
        return org.twinkql.model.SelectItem.class;
    }

    
Method getNameSpacePrefix.

Returns:
the namespace prefix to use when marshaling as XML.
    @Override()
    ) {
        return ;
    }

    
Method getNameSpaceURI.

Returns:
the namespace URI used when marshaling and unmarshaling as XML.
    @Override()
    ) {
        return ;
    }

    
Method getValidator.

Returns:
a specific validator for the class described by this ClassDescriptor.
    @Override()
    ) {
        return this;
    }

    
Method getXMLName.

Returns:
the XML Name for the Class being described.
    @Override()
    public java.lang.String getXMLName(
    ) {
        return ;
    }

    
Method isElementDefinition.

Returns:
true if XML schema definition of this Class is that of a global element or element with anonymous type definition.
    public boolean isElementDefinition(
    ) {
        return ;
    }
New to GrepCode? Check out our FAQ X