Package org.exolab.castor.xml.schema

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


        }

        if (unmarshaller == null)
            throw new SchemaException("missing start element: " + name);
        else if (SchemaNames.ANNOTATION.equals(name)) {
            Annotation annotation = (Annotation)unmarshaller.getObject();
            _facet.addAnnotation(annotation);
        }

    } //-- endElement
View Full Code Here


                error(err);
            }
        }
        //-- annotation
        else if (SchemaNames.ANNOTATION.equals(name)) {
            Annotation ann = ((AnnotationUnmarshaller)unmarshaller).getAnnotation();
            _attributeGroup.addAnnotation(ann);
        }

        unmarshaller = null;
    } //-- endElement
View Full Code Here

        //-- process annotations
        Enumeration<Annotation> enumeration = annotated.getAnnotations();
        if (enumeration.hasMoreElements()) {
            StringBuilder comment = new StringBuilder();
            while (enumeration.hasMoreElements()) {
                Annotation ann = enumeration.nextElement();
                Enumeration<Documentation> documentations = ann.getDocumentation();
                while (documentations.hasMoreElements()) {
                    Documentation documentation = documentations.nextElement();
                    String content = documentation.getContent();
                    if (content != null) {
                        comment.append(content);
View Full Code Here

        documentationsField.setInitString("new java.util.HashMap()");
        jClass.addMember(documentationsField);

        Enumeration<Annotation> annotations = annotated.getAnnotations();
        while (annotations.hasMoreElements()) {
            Annotation annotation = annotations.nextElement();
            Enumeration<Documentation> documentations = annotation.getDocumentation();
            while (documentations.hasMoreElements()) {
                Documentation documentation = documentations.nextElement();
                JConstructor defaultConstructor = jClass.getConstructor(0);
                String documentationContent = normalize(documentation.getContent());
                documentationContent =
View Full Code Here

     * @see Annotated
     */
    private void processAppInfo(final Annotated annotated, final ClassInfo cInfo) {
        Enumeration<Annotation> annotations = annotated.getAnnotations();
        while (annotations.hasMoreElements()) {
            Annotation ann = annotations.nextElement();
            Enumeration<AppInfo> appInfos = ann.getAppInfo();
            while (appInfos.hasMoreElements()) {
                AppInfo appInfo = appInfos.nextElement();
                List<?> content = appInfo.getJdoContent();
                Iterator<?> it = content.iterator();
                if (it.hasNext()) {
View Full Code Here

     */
    private void processAppInfo(final Annotated annotated, final FieldInfo fInfo) {
        Enumeration<Annotation> annotations = annotated.getAnnotations();
       
        while (annotations.hasMoreElements()) {
            Annotation ann = annotations.nextElement();
            Enumeration<AppInfo> appInfos = ann.getAppInfo();
            while (appInfos.hasMoreElements()) {
                AppInfo appInfo = appInfos.nextElement();
                List<?> content = appInfo.getJdoContent();
                Iterator<?> it = content.iterator();
                if (it.hasNext()) {                
View Full Code Here

    public AnnotationUnmarshaller (final SchemaContext schemaContext, final AttributeSet atts)
        throws XMLException
    {
        super(schemaContext);
       
        _annotation = new Annotation();
       
        // check for invalid declared attributes
        if ((atts != null) && (atts.getSize() > 0)) {
            for (int i = 0; i < atts.getSize(); i++) {
                String namespace = atts.getNamespace(i);
View Full Code Here

        //-- have unmarshaller perform any necessary clean up
        unmarshaller.finish();

        //-- annotation
        if (SchemaNames.ANNOTATION.equals(name)) {
            Annotation ann = ((AnnotationUnmarshaller)unmarshaller).getAnnotation();
            _complexType.addAnnotation(ann);
        }

        unmarshaller = null;
    } //-- endElement
View Full Code Here

        //-- call finish for any necessary cleanup
        unmarshaller.finish();

        if (SchemaNames.ANNOTATION.equals(name)) {
            Annotation ann = (Annotation)unmarshaller.getObject();
            _element.addAnnotation(ann);
        }
        else if (SchemaNames.COMPLEX_TYPE.equals(name)) {

            XMLType xmlType
View Full Code Here

        //-- have unmarshaller perform any necessary clean up
        unmarshaller.finish();

        //-- annotation
        if (SchemaNames.ANNOTATION.equals(name)) {
            Annotation ann = ((AnnotationUnmarshaller)unmarshaller).getAnnotation();
            _list.setLocalAnnotation(ann);
        }
        else if (SchemaNames.SIMPLE_TYPE.equals(name)) {
            SimpleType type = (SimpleType) unmarshaller.getObject();
            _list.setItemType(type);
View Full Code Here

TOP

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

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.