Examples of AnnotationParser


Examples of cn.com.annotations.parser.AnnotationParser

        try {
            String userId = FormParameterUtil.getString("userId", request);
            List<Task> tasks = OperatFactory.getServiceObject(BussinessRelationServeice.class).getTasksByUserId(userId);
            TaskIPKFormBean content = new TaskIPKFormBean();
            content.setTasks(tasks);
            AnnotationParser parser = new AnnotationParser(content, "ajax");
            parser.setCurrentComponents("table");
            ContentTemplate contentTemplate = (ContentTemplate) ApplicationStyle.getCurrentStyle().getTemplate(ContentTemplate.class);
            contentTemplate.setParser(parser);
            contentTemplate.setPermission(null);
            String content1 = contentTemplate.content();
            ActionContext.getResponse().getWriter().print(content1);
View Full Code Here

Examples of cn.com.annotations.parser.AnnotationParser

                Object bundleObj = (bundleObject == null) ? null : pageContext.getAttribute(bundleObject, PageContext.REQUEST_SCOPE);
                if (bundleObj == null) {
                    bundleObj = InstanceCreator.getInstance(className);
                    ifIniting = true;
                }
                AnnotationParser parser = new AnnotationParser(bundleObj, group);
                // 设定元素的默认值
                if (ifIniting) {
                    parser.settingDefaultValue();
                }
                ApplicationStyle style = settingAppStyle(pageContext);
                // 设定模板路径
                templatePath = style.getTemplatePath();
                // 设定许可
                Permission permissionImpl = null;
                if (isPermission()) {
                    permissionImpl = PermissionManager.getUserPermission();
                }
                ContentTemplate contentTemplate = (ContentTemplate) style.getTemplate(ContentTemplate.class);
                contentTemplate.setParser(parser);
                contentTemplate.setPermission(permissionImpl);
                String content = contentTemplate.content();

                settingContentScope(pageContext, content, parser.getTitle());
                template = (templatePath == null ? _BLANK : templatePath) + template;

                pageContext.include(template);
            } catch (AppException ex) {
                settingContentScope(pageContext, ex.getMessage(), _ERROR_TITLE_DISPLAY);
View Full Code Here

Examples of com.carma.swagger.doclet.parser.AnnotationParser

  public OptionalName methodName(MethodDoc method) {
    return nameFor(this.element, this.elementProperty, method);
  }

  private OptionalName nameFor(String annotation, String property, ProgramElementDoc doc) {
    AnnotationParser element = new AnnotationParser(doc);
    if (element.isAnnotatedBy(this.ignore)) {
      return ignored();
    }
    return presentOrMissing(element.getAnnotationValue(annotation, property));
  }
View Full Code Here

Examples of com.dubture.doctrine.annotation.parser.antlr.AnnotationParser

        try {
            CharStream content = new ANTLRStringStream(line);

            AnnotationLexer lexer = new AnnotationLexer(content, reporter);

            AnnotationParser parser = new AnnotationParser(new CommonTokenStream(lexer));
            parser.setErrorReporter(reporter);

            parser.setTreeAdaptor(new AnnotationCommonTreeAdaptor());
            AnnotationParser.annotation_return root;

            root = parser.annotation();

            AnnotationCommonTree tree = (AnnotationCommonTree) root.getTree();
            AnnotationNodeVisitor visitor = new AnnotationNodeVisitor();
            tree.accept(visitor);
View Full Code Here

Examples of com.hypnoticocelot.jaxrs.doclet.parser.AnnotationParser

    public OptionalName methodName(MethodDoc method) {
        return nameFor(element, elementProperty, method);
    }

    private OptionalName nameFor(String annotation, String property, ProgramElementDoc doc) {
        AnnotationParser element = new AnnotationParser(doc);
        if (element.isAnnotatedBy(ignore)) {
            return ignored();
        }
        return presentOrMissing(element.getAnnotationValue(annotation, property));
    }
View Full Code Here

Examples of com.sun.xml.internal.xsom.parser.AnnotationParser

     * prepared unless absolutely necessary.
     */
    private ValidatorHandler validator;

    public AnnotationParser create() {
        return new AnnotationParser() {
            private Unmarshaller u = BindInfo.getJAXBContext().createUnmarshaller();

            private UnmarshallerHandler handler;

            public ContentHandler getContentHandler(
View Full Code Here

Examples of com.sun.xml.internal.xsom.parser.AnnotationParser

     * prepared unless absolutely necessary.
     */
    private ValidatorHandler validator;

    public AnnotationParser create() {
        return new AnnotationParser() {
            private Unmarshaller u = BindInfo.getJAXBContext().createUnmarshaller();

            private UnmarshallerHandler handler;

            public ContentHandler getContentHandler(
View Full Code Here

Examples of com.sun.xml.xsom.parser.AnnotationParser

     * prepared unless absolutely necessary.
     */
    private ValidatorHandler validator;

    public AnnotationParser create() {
        return new AnnotationParser() {
            private Unmarshaller u = BindInfo.getJAXBContext().createUnmarshaller();

            private UnmarshallerHandler handler;

            public ContentHandler getContentHandler(
View Full Code Here

Examples of com.sun.xml.xsom.parser.AnnotationParser

     * prepared unless absolutely necessary.
     */
    private ValidatorHandler validator;

    public AnnotationParser create() {
        return new AnnotationParser() {
            private Unmarshaller u = BindInfo.getJAXBContext().createUnmarshaller();

            private UnmarshallerHandler handler;

            public ContentHandler getContentHandler(
View Full Code Here

Examples of com.sun.xml.xsom.parser.AnnotationParser

     * prepared unless absolutely necessary.
     */
    private ValidatorHandler validator;

    public AnnotationParser create() {
        return new AnnotationParser() {
            private Unmarshaller u = BindInfo.getCustomizationUnmarshaller();

            private UnmarshallerHandler handler;

            public ContentHandler getContentHandler(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.