Examples of PropertySimpleType


Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

    }

    public static MetaType convertPropertyDefinitionToMetaType(PropertyDefinition propDef) {
        MetaType memberMetaType;
        if (propDef instanceof PropertyDefinitionSimple) {
            PropertySimpleType propSimpleType = ((PropertyDefinitionSimple) propDef).getType();
            memberMetaType = convertPropertySimpleTypeToSimpleMetaType(propSimpleType);
        } else if (propDef instanceof PropertyDefinitionList) {
            // TODO (very low priority, since lists of lists are not going to be at all common)
            memberMetaType = null;
        } else if (propDef instanceof PropertyDefinitionMap) {
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

    public void init() throws BuildException {
        validateAttributes();

        ConfigurationDefinition configDef = getProject().getConfigurationDefinition();
        PropertySimpleType propType = PropertySimpleType.fromXmlName(this.type);
        PropertyDefinitionSimple propDef = new PropertyDefinitionSimple(this.name, this.description, this.required,
            propType);
        propDef.setDefaultValue(this.defaultValue);
        configDef.put(propDef);
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

            throw new BuildException("The 'name' attribute is required.");
        }
        if (this.name.length() == 0) {
            throw new BuildException("The 'name' attribute must have a non-empty value.");
        }
        PropertySimpleType propType;
        try {
            propType = PropertySimpleType.fromXmlName(this.type);
        } catch (IllegalArgumentException e) {
            throw new BuildException("Illegal value for 'type' attribute: " + this.type);
        }
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

        return ret;
    }

    private Object getObjectWithType(PropertyDefinitionSimple pds, String val) {
        PropertySimpleType type = pds.getType();
        Object ret;
        switch (type) {
        case STRING:
            ret = val;
            break;
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.