Package com.sun.jersey.server.wadl.generators.resourcedoc.model

Examples of com.sun.jersey.server.wadl.generators.resourcedoc.model.NamedValueType


        ParamDocType pdt = new ParamDocType("x", "comment about x");
        mdt.getParamDocs().add(pdt);

        AnnotationDocType adt = new AnnotationDocType();
        adt.setAnnotationTypeName(CustomParam.class.getName());
        adt.getAttributeDocs().add(new NamedValueType("value", "x"));

        pdt.getAnnotationDocs().add(adt);

        ResourceDocType rdt = new ResourceDocType();
        rdt.getDocs().add(cdt);
View Full Code Here


                    for ( AnnotationDesc annotationDesc : annotations ) {
                        final AnnotationDocType annotationDocType = new AnnotationDocType();
                        final String typeName = annotationDesc.annotationType().qualifiedName();
                        annotationDocType.setAnnotationTypeName( typeName );
                        for ( ElementValuePair elementValuePair : annotationDesc.elementValues() ) {
                            final NamedValueType namedValueType = new NamedValueType();
                            namedValueType.setName( elementValuePair.element().name() );
                            namedValueType.setValue( elementValuePair.value().value().toString() );
                            annotationDocType.getAttributeDocs().add( namedValueType );
                        }
                        paramDocType.getAnnotationDocs().add( annotationDocType );
                    }
                }
View Full Code Here

                    for ( AnnotationDesc annotationDesc : annotations ) {
                        final AnnotationDocType annotationDocType = new AnnotationDocType();
                        final String typeName = annotationDesc.annotationType().qualifiedName();
                        annotationDocType.setAnnotationTypeName( typeName );
                        for ( ElementValuePair elementValuePair : annotationDesc.elementValues() ) {
                            final NamedValueType namedValueType = new NamedValueType();
                            namedValueType.setName( elementValuePair.element().name() );
                            namedValueType.setValue( elementValuePair.value().value().toString() );
                            annotationDocType.getAttributeDocs().add( namedValueType );
                        }
                        paramDocType.getAnnotationDocs().add( annotationDocType );
                    }
                }
View Full Code Here

TOP

Related Classes of com.sun.jersey.server.wadl.generators.resourcedoc.model.NamedValueType

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.