Search in sources :

Example 1 with Property

use of io.vertigo.dynamo.domain.metamodel.Property in project vertigo by KleeGroup.

the class DomainDynamicRegistry method extractProperties.

/**
 * Extrait le PropertyContainer<DtProperty> d'une DynamicDefinition.
 * Associe les DtProperty et les KspProperty par leur nom.
 * @param dslDefinition Definition
 * @return Container des propriétés
 */
private static Properties extractProperties(final DslDefinition dslDefinition) {
    final PropertiesBuilder propertiesBuilder = Properties.builder();
    // On associe les propriétés Dt et Ksp par leur nom.
    for (final String entityPropertyName : dslDefinition.getPropertyNames()) {
        final Property property = DtProperty.valueOf(entityPropertyName);
        propertiesBuilder.addValue(property, dslDefinition.getPropertyValue(entityPropertyName));
    }
    return propertiesBuilder.build();
}
Also used : Property(io.vertigo.dynamo.domain.metamodel.Property) KspProperty(io.vertigo.dynamo.plugins.environment.KspProperty) DtProperty(io.vertigo.dynamo.domain.metamodel.DtProperty) PropertiesBuilder(io.vertigo.dynamo.domain.metamodel.PropertiesBuilder)

Aggregations

DtProperty (io.vertigo.dynamo.domain.metamodel.DtProperty)1 PropertiesBuilder (io.vertigo.dynamo.domain.metamodel.PropertiesBuilder)1 Property (io.vertigo.dynamo.domain.metamodel.Property)1 KspProperty (io.vertigo.dynamo.plugins.environment.KspProperty)1