Package org.exolab.castor.xml.schema

Examples of org.exolab.castor.xml.schema.ElementDecl


                }
                //-- use targetNamespace of schema
                break;
            case Structure.ELEMENT:
                //--resolve reference?
                ElementDecl element = (ElementDecl)_annotated;
                if (element.isReference())
                    element = element.getReference();
                
                schema = element.getSchema();
                //-- top-level (use targetNamespace of schema)
                if (element.getParent() == schema)
                    break;
               
                //-- check form (qualified or unqualified)
                form = element.getForm();
                if (form == null) {
                    form = schema.getElementFormDefault();
                }
                if ((form == null) || form.isUnqualified()) {
                    //-- no targetNamespace by default
View Full Code Here


                    _schema = attribute.getSchema();
                    attribute = null;
                    break;
                case Structure.ELEMENT:
                    //--resolve reference?
                    ElementDecl element = (ElementDecl)_annotated;
                    if (element.isReference())
                        element = element.getReference();
                    _schema = element.getSchema();
                    element = null;
                    break;
                case Structure.COMPLEX_TYPE:
                    _schema = ((ComplexType)_annotated).getSchema();
                    break;
View Full Code Here

            if (result == null || result.length() <= 0) {

                 //--is there a reference?
                 if (_annotated.getStructureType() == Structure.ELEMENT) {
                     ElementDecl element = (ElementDecl)_annotated;
                     if (element.isReference()) {
                         Annotated temp = _annotated;
                         setView(element.getReference());
                         result = getJavaClassName();
                         setView(temp);
                         temp = null;
                     }
                     element = null;
View Full Code Here

            _complexType.addAttributeGroupReference(attrGroupRef);
        }
        //-- element declarations
        else if (SchemaNames.ELEMENT.equals(name)) {

            ElementDecl element =
                ((ElementUnmarshaller)unmarshaller).getElement();
            _complexType.addElementDecl(element);
        }
        //--group
        else if (name.equals(SchemaNames.GROUP)) {
View Full Code Here

        super();
        setResolver(resolver);

        this._schema = schema;

        _element = new ElementDecl(schema);

        String attValue = null;

        //-- @ref
        attValue = atts.getValue(SchemaNames.REF_ATTR);
View Full Code Here

      
                case Structure.ELEMENT :
            //--handle reference: if the element referred a
            //--global element then we use the global binding
            if (result == null) {
              ElementDecl element = (ElementDecl) annotated;
              if (element.isReference()) {
                xPath = getSchemaLocation(element.getReference());
                result = lookupComponentBindingType(xPath);
                        }
              //--discard the element
                        element = null;
                    }
View Full Code Here

                    _schema = attribute.getSchema();
                    attribute = null;
                    break;
                case Structure.ELEMENT:
                    //--resolve reference?
                    ElementDecl element = (ElementDecl)_annotated;
                    if (element.isReference())
                        element = element.getReference();
                    _schema = element.getSchema();
                    element = null;
                    break;
                case Structure.COMPLEX_TYPE:
                    _schema = ((ComplexType)_annotated).getSchema();
                    break;
View Full Code Here

            if (result == null || result.length() <= 0) {

                 //--is there a reference?
                 if (_annotated.getStructureType() == Structure.ELEMENT) {
                     ElementDecl element = (ElementDecl)_annotated;
                     if (element.isReference()) {
                         Annotated temp = _annotated;
                         setView(element.getReference());
                         result = getJavaClassName();
                         setView(temp);
                         temp = null;
                     }
                     element = null;
View Full Code Here

                         setView(temp);
                     }
                     att = null;
                }
                else if (_annotated.getStructureType() == Structure.ELEMENT) {
                     ElementDecl element = (ElementDecl)_annotated;
                     if (element.isReference()) {
                         temp = _annotated;
                         setView(element.getReference());
                         result = getJavaMemberName();
                         setView(temp);
                     }
                     element = null;
                }
View Full Code Here

        if (SchemaNames.ANNOTATION.equals(name)) {
            Annotation ann = (Annotation)unmarshaller.getObject();
            _group.addAnnotation(ann);
        }
        else if (SchemaNames.ELEMENT.equals(name)) {
            ElementDecl element = (ElementDecl) unmarshaller.getObject();
            _group.addElementDecl(element);
        }
        else if (name.equals(SchemaNames.GROUP)) {
            ModelGroup group = (ModelGroup) unmarshaller.getObject();
            _group.addGroup(group);
View Full Code Here

TOP

Related Classes of org.exolab.castor.xml.schema.ElementDecl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.