Search in sources :

Example 1 with Properties

use of com.synopsys.integration.configuration.property.Properties in project synopsys-detect by blackducksoftware.

the class DetectProperties method allProperties.

// Accessor to get all properties
public static Properties allProperties() {
    List<Property> properties = new ArrayList<>();
    Field[] allFields = DetectProperties.class.getDeclaredFields();
    for (Field field : allFields) {
        if (Property.class.isAssignableFrom(field.getType())) {
            try {
                Object property = field.get(Property.class);
                Property detectProperty = (Property) property;
                properties.add(detectProperty);
            } catch (IllegalAccessException e) {
                throw new RuntimeException(e);
            }
        }
    }
    return new Properties(properties);
}
Also used : Field(java.lang.reflect.Field) ArrayList(java.util.ArrayList) Properties(com.synopsys.integration.configuration.property.Properties) ExtendedEnumProperty(com.synopsys.integration.configuration.property.types.enumextended.ExtendedEnumProperty) PassthroughProperty(com.synopsys.integration.configuration.property.base.PassthroughProperty) TypedProperty(com.synopsys.integration.configuration.property.base.TypedProperty) NullablePathProperty(com.synopsys.integration.configuration.property.types.path.NullablePathProperty) LongProperty(com.synopsys.integration.configuration.property.types.longs.LongProperty) NullableIntegerProperty(com.synopsys.integration.configuration.property.types.integer.NullableIntegerProperty) PathListProperty(com.synopsys.integration.configuration.property.types.path.PathListProperty) Property(com.synopsys.integration.configuration.property.Property) EnumProperty(com.synopsys.integration.configuration.property.types.enums.EnumProperty) CaseSensitiveStringListProperty(com.synopsys.integration.configuration.property.types.string.CaseSensitiveStringListProperty) StringListProperty(com.synopsys.integration.configuration.property.types.string.StringListProperty) AllNoneEnumListProperty(com.synopsys.integration.configuration.property.types.enumallnone.property.AllNoneEnumListProperty) IntegerProperty(com.synopsys.integration.configuration.property.types.integer.IntegerProperty) EnumListProperty(com.synopsys.integration.configuration.property.types.enums.EnumListProperty) BooleanProperty(com.synopsys.integration.configuration.property.types.bool.BooleanProperty) StringProperty(com.synopsys.integration.configuration.property.types.string.StringProperty) NoneEnumListProperty(com.synopsys.integration.configuration.property.types.enumallnone.property.NoneEnumListProperty) NullableStringProperty(com.synopsys.integration.configuration.property.types.string.NullableStringProperty)

Aggregations

Properties (com.synopsys.integration.configuration.property.Properties)1 Property (com.synopsys.integration.configuration.property.Property)1 PassthroughProperty (com.synopsys.integration.configuration.property.base.PassthroughProperty)1 TypedProperty (com.synopsys.integration.configuration.property.base.TypedProperty)1 BooleanProperty (com.synopsys.integration.configuration.property.types.bool.BooleanProperty)1 AllNoneEnumListProperty (com.synopsys.integration.configuration.property.types.enumallnone.property.AllNoneEnumListProperty)1 NoneEnumListProperty (com.synopsys.integration.configuration.property.types.enumallnone.property.NoneEnumListProperty)1 ExtendedEnumProperty (com.synopsys.integration.configuration.property.types.enumextended.ExtendedEnumProperty)1 EnumListProperty (com.synopsys.integration.configuration.property.types.enums.EnumListProperty)1 EnumProperty (com.synopsys.integration.configuration.property.types.enums.EnumProperty)1 IntegerProperty (com.synopsys.integration.configuration.property.types.integer.IntegerProperty)1 NullableIntegerProperty (com.synopsys.integration.configuration.property.types.integer.NullableIntegerProperty)1 LongProperty (com.synopsys.integration.configuration.property.types.longs.LongProperty)1 NullablePathProperty (com.synopsys.integration.configuration.property.types.path.NullablePathProperty)1 PathListProperty (com.synopsys.integration.configuration.property.types.path.PathListProperty)1 CaseSensitiveStringListProperty (com.synopsys.integration.configuration.property.types.string.CaseSensitiveStringListProperty)1 NullableStringProperty (com.synopsys.integration.configuration.property.types.string.NullableStringProperty)1 StringListProperty (com.synopsys.integration.configuration.property.types.string.StringListProperty)1 StringProperty (com.synopsys.integration.configuration.property.types.string.StringProperty)1 Field (java.lang.reflect.Field)1