Package com.google.gwt.autobean.shared

Examples of com.google.gwt.autobean.shared.AutoBeanVisitor$MapPropertyContext


        if(null==autoBean)
            throw new IllegalArgumentException("Not an auto bean: " + bean.getClass());

        this.editedEntity = bean;

        autoBean.accept(new AutoBeanVisitor() {

            private boolean isComplex = false;

            @Override
            public boolean visitValueProperty(String propertyName, final Object value, PropertyContext ctx) {
View Full Code Here


        if(null==autoBean)
            throw new IllegalArgumentException("Not an auto bean: " + bean.getClass());

        this.editedEntity = bean;

        autoBean.accept(new AutoBeanVisitor() {

            private boolean isComplex = false;

            @Override
            public boolean visitValueProperty(String propertyName, final Object value, PropertyContext ctx) {
View Full Code Here

      Splittable flatVersion = state.flatten(domainVersion);
      bean.setTag(Constants.VERSION_PROPERTY_B64,
          SimpleRequestProcessor.toBase64(flatVersion.getPayload()));
    }

    bean.accept(new AutoBeanVisitor() {

      @Override
      public boolean visitReferenceProperty(String propertyName,
          AutoBean<?> value, PropertyContext ctx) {
        // Does the user care about the property?
View Full Code Here

      final Object domain = bean.getTag(Constants.DOMAIN_OBJECT);
      if (domain != null) {
        // Apply any property updates
        final Map<String, Splittable> flatValueMap = operation.getPropertyMap();
        if (flatValueMap != null) {
          bean.accept(new AutoBeanVisitor() {
            @Override
            public boolean visitReferenceProperty(String propertyName,
                AutoBean<?> value, PropertyContext ctx) {
              // containsKey to distinguish null from unknown
              if (flatValueMap.containsKey(propertyName)) {
View Full Code Here

    toMutate.setTag(Constants.VERSION_PROPERTY_B64, op.getVersion());

    final Map<String, Splittable> properties = op.getPropertyMap();
    if (properties != null) {
      // Apply updates
      toMutate.accept(new AutoBeanVisitor() {
        @Override
        public boolean visitReferenceProperty(String propertyName,
            AutoBean<?> value, PropertyContext ctx) {
          if (ctx.canSet()) {
            if (properties.containsKey(propertyName)) {
View Full Code Here

    /*
     * Take ownership here to prevent cycles in value objects from overflowing
     * the stack.
     */
    takeOwnership(clone);
    clone.accept(new AutoBeanVisitor() {

      @Override
      public boolean visitCollectionProperty(String propertyName,
          AutoBean<Collection<?>> value, CollectionPropertyContext ctx) {
        if (value != null) {
View Full Code Here

     */
    AutoBean<?> previous = serialized.get(id);
    if (previous == null || !previous.isFrozen()) {
      serialized.put(id, root);
      serializeOneProxy(id, root);
      root.accept(new AutoBeanVisitor() {
        @Override
        public void endVisit(AutoBean<?> bean, Context ctx) {
          // Avoid unnecessary method call
          if (bean == root) {
            return;
View Full Code Here

        this.editedEntity = bean;

        if(null==autoBean)
            throw new IllegalArgumentException("Not an auto bean: " + bean.getClass());

        autoBean.accept(new AutoBeanVisitor() {
            @Override
            public boolean visitValueProperty(String propertyName, Object value, PropertyContext ctx) {

                FormItem matchingField = null;
View Full Code Here

        AutoBean<T> autoBean = AutoBeanUtils.getAutoBean(bean);

        if(null==autoBean)
            throw new IllegalArgumentException("Not an auto bean: " + bean.getClass());

        autoBean.accept(new AutoBeanVisitor() {
            @Override
            public boolean visitValueProperty(String propertyName, Object value, PropertyContext ctx) {

                FormItem matchingField = null;
View Full Code Here

        if(null==autoBean)
            throw new IllegalArgumentException("Not an auto bean: " + bean.getClass());

        this.editedEntity = bean;

        autoBean.accept(new AutoBeanVisitor() {

            private boolean isComplex = false;

            @Override
            public boolean visitValueProperty(String propertyName, final Object value, PropertyContext ctx) {
View Full Code Here

TOP

Related Classes of com.google.gwt.autobean.shared.AutoBeanVisitor$MapPropertyContext

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.