Package org.jboss.metatype.api.types

Examples of org.jboss.metatype.api.types.MapCompositeMetaType


  private void populate() {
    addProperty(buildTemplateProperty(getName()));
 
    addProperty(ManagedPropertyUtil.createProperty(Translator.EXECUTION_FACTORY_CLASS,SimpleMetaType.STRING, "Execution Factory Class name", "The translator's execution factory name", true, true, this.executionFactoryName));//$NON-NLS-1$ //$NON-NLS-2$
    addProperty(ManagedPropertyUtil.createProperty(NAME,SimpleMetaType.STRING, "name", "Name of the Translator", true, true, getName()));//$NON-NLS-1$ //$NON-NLS-2$
    addProperty(ManagedPropertyUtil.createProperty(Translator.TRANSLATOR_PROPERTY, new MapCompositeMetaType(SimpleMetaType.STRING), Translator.TRANSLATOR_PROPERTY, "Additional Translator properties", false, false, null)); //$NON-NLS-1$
  }
View Full Code Here


         return (PropertiesMetaValue)mp.getValue();
       }
       else if (metaType.isComposite()) {
        Properties props = new Properties();
        MapCompositeValueSupport map = (MapCompositeValueSupport) mp.getValue();
        MapCompositeMetaType type = map.getMetaType();
        for (String key : type.keySet()) {
          MetaValue value = map.get(key);
          props.setProperty(key, stringValue(value));
        }
        return props;
       }
View Full Code Here

  }

  static ManagedPropertyImpl buildConfigProperty() {
    DefaultFieldsImpl fields = new DefaultFieldsImpl("config-property");//$NON-NLS-1$ 
    fields.setDescription("The config-property type"); //$NON-NLS-1$ 
    fields.setMetaType(new MapCompositeMetaType (SimpleMetaType.STRING));
    ManagedPropertyImpl dsTypeMP = new ManagedPropertyImpl(fields);
    return dsTypeMP;
  }
View Full Code Here

  }

  static ManagedPropertyImpl buildConfigProperty() {
    DefaultFieldsImpl fields = new DefaultFieldsImpl("config-property");//$NON-NLS-1$ 
    fields.setDescription("The config-property type"); //$NON-NLS-1$ 
    fields.setMetaType(new MapCompositeMetaType (SimpleMetaType.STRING));
    ManagedPropertyImpl dsTypeMP = new ManagedPropertyImpl(fields);
    return dsTypeMP;
  }
View Full Code Here

        mapCompositeValueSupport.put(key, value);
    }

    protected CompositeValue createCompositeValue(PropertyDefinitionMap propDefMap, MetaType metaType)
    {
        MapCompositeMetaType mapCompositeMetaType = (MapCompositeMetaType)metaType;
        MetaType mapMemberMetaType = mapCompositeMetaType.getValueType();
        return new MapCompositeValueSupport(mapMemberMetaType);
    }
View Full Code Here

    super(s);
  }

  public TranslatorPropertyFactory(Fields fields) {
    super(fields);
    type = new MapCompositeMetaType(SimpleMetaType.STRING);
    setField(Fields.META_TYPE, null);
  }
View Full Code Here

    setField(Fields.META_TYPE, null);
  }

  public TranslatorPropertyFactory(ManagedObject managedObject, Fields fields) {
    super(managedObject, fields);
    type = new MapCompositeMetaType(SimpleMetaType.STRING);
    setField(Fields.META_TYPE, null);
  }
View Full Code Here

      // NOTE: We assume member prop defs are all of the same type, since
      // for MapCompositeMetaTypes, they have to be.
      PropertyDefinition mapMemberPropDef = memberPropDefs.values()
          .iterator().next();
      MetaType mapMemberMetaType = convertPropertyDefinitionToMetaType(mapMemberPropDef);
      memberMetaType = new MapCompositeMetaType(mapMemberMetaType);
    } else {
      throw new IllegalStateException(
          "List member PropertyDefinition has unknown type: " //$NON-NLS-1$
              + propDef.getClass().getName());
    }
View Full Code Here

      MetaValue metaValue = this.compositeValueMap(xaProps);
      propValues.put("config-property", metaValue);

      propValues.put("config-property",
            new MapCompositeValueSupport(new HashMap<String, MetaValue>(),
                  new MapCompositeMetaType(SimpleMetaType.STRING)));
      // todo: how to set the specific domain?
      //ApplicationManagedSecurityMetaData secDomain = new ApplicationManagedSecurityMetaData();
      //props.get("security-domain").setValue(secDomain);

      ComponentType compType = new ComponentType("ConnectionFactory", "NoTx");
View Full Code Here


   public XAConnectionFactoryProperty(String s)
   {
      super(s);
      type = new MapCompositeMetaType(SimpleMetaType.STRING);
      setField(Fields.META_TYPE, null);
   }
View Full Code Here

TOP

Related Classes of org.jboss.metatype.api.types.MapCompositeMetaType

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.