Examples of PropertySimpleType


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

    private static PropertyDefinitionSimple createBasedirValueName(boolean readOnly) {
        String name = PROP_BASEDIR_VALUENAME;
        String description = "The name of the value as found in the context.";
        boolean required = true;
        PropertySimpleType type = PropertySimpleType.STRING;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Value Name");
        pd.setReadOnly(readOnly);
        pd.setSummary(true);
View Full Code Here

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

    private static PropertyDefinitionSimple createIncludePath(boolean readOnly) {
        String name = PROP_PATH;
        String description = "A file system directory path that is relative to (a sub-directory of) the base directory of the drift definition. The default is '.', the base directory itself.  Note that '/' and './' will be normalized to '.' for consistent handling.";
        boolean required = false;
        PropertySimpleType type = PropertySimpleType.STRING;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Path");
        pd.setReadOnly(readOnly);
        pd.setSummary(true);
View Full Code Here

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

    private static PropertyDefinitionSimple createIncludePattern(boolean readOnly) {
        String name = PROP_PATTERN;
        String description = "Pathname pattern that must match for the items in the directory path to be included. '*' matches zero or more characters, '?' matches one character. For example, '*.txt' (no quotes) will match text files in the filter's path directory.  '**/*.txt' will match text files in any subdirectory below the filter's path directory.";
        boolean required = false;
        PropertySimpleType type = PropertySimpleType.STRING;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Pattern");
        pd.setReadOnly(readOnly);
        pd.setSummary(true);
View Full Code Here

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

    private static PropertyDefinitionSimple createExcludePath(boolean readOnly) {
        String name = PROP_PATH;
        String description = "A file system directory path that is relative to (a sub-directory of) the base directory of the drift definition. The default is '.', the base directory itself.  Note that '/' and './' will be normalized to '.' for consistent handling.";
        boolean required = true;
        PropertySimpleType type = PropertySimpleType.STRING;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Path");
        pd.setReadOnly(readOnly);
        pd.setSummary(true);
View Full Code Here

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

    private static PropertyDefinitionSimple createExcludePattern(boolean readOnly) {
        String name = PROP_PATTERN;
        String description = "Pathname pattern that must match for the items in the directory path to be excluded.";
        boolean required = false;
        PropertySimpleType type = PropertySimpleType.STRING;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Pattern");
        pd.setReadOnly(readOnly);
        pd.setSummary(true);
View Full Code Here

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

        DYNAMIC_PROPERTY_RETRIEVERS.put(type, retriever);
    }

    public static UIInput createInput(PropertyDefinitionSimple propertyDefinitionSimple) {
        UIInput input;
        PropertySimpleType type = (propertyDefinitionSimple != null) ? propertyDefinitionSimple.getType()
            : PropertySimpleType.STRING;
        switch (type) {
        case BOOLEAN: {
            input = createInputForBooleanProperty();
            break;
View Full Code Here

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

    }

    private ListGridField createListGridField(PropertyDefinition summaryPropDef) {
        ListGridField field = new ListGridField(summaryPropDef.getName(), summaryPropDef.getDisplayName(), 90);
        PropertyDefinitionSimple defSimple = (PropertyDefinitionSimple) summaryPropDef;
        PropertySimpleType propSimpleType = defSimple.getType();
        switch (propSimpleType) {
        case BOOLEAN:
            field.setType(ListGridFieldType.BOOLEAN);
            break;
        case INTEGER:
View Full Code Here

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

        if (definition == null) {
            return property.getStringValue();
        }

        PropertySimpleType type = definition.getType();
        String val = property.getStringValue();

        Object ret;

        switch (type) {
View Full Code Here

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

        if (propertyDefinitionSimple.getEnumeratedValues() != null
            && !propertyDefinitionSimple.getEnumeratedValues().isEmpty()) {
            // pick the first one
            value = propertyDefinitionSimple.getEnumeratedValues().get(0).getValue();
        } else {
            PropertySimpleType propType = propertyDefinitionSimple.getType();
            switch (propType) {
                case STRING:
                    value = "blah";
                    break;
                case LONG_STRING:
View Full Code Here

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

     * @param prop Property to evaluate
     * @param propDef Definition to determine the type from
     * @return The value object
     */
    Object getObjectForProperty(PropertySimple prop, PropertyDefinitionSimple propDef) {
        PropertySimpleType type = propDef.getType();
        return getObjectForProperty(prop, type);
    }
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.