Examples of ModelVisitor


Examples of com.google.gwt.requestfactory.rebind.model.ModelVisitor

  private Set<JEnumType> findExtraEnums(AcceptsModelVisitor method) {
    final Set<JEnumType> toReturn = new LinkedHashSet<JEnumType>();
    final Set<JEnumType> referenced = new HashSet<JEnumType>();

    // Called from the adder visitor below on each EntityProxy seen
    final ModelVisitor remover = new AllReachableTypesVisitor(model) {
      @Override
      void examineTypeOnce(JClassType type) {
        JEnumType asEnum = type.isEnum();
        if (asEnum != null) {
          referenced.add(asEnum);
View Full Code Here

Examples of com.google.web.bindery.requestfactory.gwt.rebind.model.ModelVisitor

  private Set<JEnumType> findExtraEnums(AcceptsModelVisitor method) {
    final Set<JEnumType> toReturn = new LinkedHashSet<JEnumType>();
    final Set<JEnumType> referenced = new HashSet<JEnumType>();

    // Called from the adder visitor below on each EntityProxy seen
    final ModelVisitor remover = new AllReachableTypesVisitor(model) {
      @Override
      void examineTypeOnce(JClassType type) {
        JEnumType asEnum = type.isEnum();
        if (asEnum != null) {
          referenced.add(asEnum);
View Full Code Here

Examples of org.jibx.binding.model.ModelVisitor

    }
    public static void getDefinitions(final BindingHolder holder,
                                      final Map<org.jibx.runtime.QName, MappingElement> types,
                                      final Map<org.jibx.runtime.QName, MappingElement> elems) {
        TreeContext ctx = new TreeContext(new DummyClassLocator());
        ModelVisitor visitor = new ModelVisitor() {
            public boolean visit(MappingElement mapping) {
                org.jibx.runtime.QName qname = mapping.getTypeQName();
                if (qname != null) {
                    types.put(qname, mapping);
                }
View Full Code Here

Examples of org.jibx.binding.model.ModelVisitor

    }
    public static void getDefinitions(final BindingHolder holder,
                                      final Map<org.jibx.runtime.QName, MappingElement> types,
                                      final Map<org.jibx.runtime.QName, MappingElement> elems) {
        TreeContext ctx = new TreeContext(new DummyClassLocator());
        ModelVisitor visitor = new ModelVisitor() {
            public boolean visit(MappingElement mapping) {
                org.jibx.runtime.QName qname = mapping.getTypeQName();
                if (qname != null) {
                    types.put(qname, mapping);
                }
View Full Code Here

Examples of org.jibx.binding.model.ModelVisitor

    }
    public static void getDefinitions(final BindingHolder holder,
                                      final Map<org.jibx.runtime.QName, MappingElement> types,
                                      final Map<org.jibx.runtime.QName, MappingElement> elems) {
        TreeContext ctx = new TreeContext(new DummyClassLocator());
        ModelVisitor visitor = new ModelVisitor() {
            public boolean visit(MappingElement mapping) {
                org.jibx.runtime.QName qname = mapping.getTypeQName();
                if (qname != null) {
                    types.put(qname, mapping);
                }
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.