@Component(value="cuba_DynamicAttributesTools")
public class DynamicAttributesTools
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DynamicAttributes |
dynamicAttributes |
protected MetadataTools |
metadataTools |
static java.lang.String |
NAME |
Constructor and Description |
---|
DynamicAttributesTools() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDynamicAttributeValueAsString(com.haulmont.chile.core.model.MetaProperty metaProperty,
java.lang.Object value)
For collection dynamic attributes the method returns a list of formatted collection items joined with the comma,
for non-collection dynamic attribute a formatted value is returned
|
com.haulmont.chile.core.model.MetaPropertyPath |
getMetaPropertyPath(com.haulmont.chile.core.model.MetaClass metaClass,
java.lang.String attributeCode)
Get special meta property path object for dynamic attribute by code
|
com.haulmont.chile.core.model.MetaPropertyPath |
getMetaPropertyPath(com.haulmont.chile.core.model.MetaClass metaClass,
java.util.UUID attributeId)
Get special meta property path object for dynamic attribute id
|
public static final java.lang.String NAME
@Inject protected DynamicAttributes dynamicAttributes
@Inject protected MetadataTools metadataTools
@Nullable public com.haulmont.chile.core.model.MetaPropertyPath getMetaPropertyPath(com.haulmont.chile.core.model.MetaClass metaClass, java.lang.String attributeCode)
@Nullable public com.haulmont.chile.core.model.MetaPropertyPath getMetaPropertyPath(com.haulmont.chile.core.model.MetaClass metaClass, java.util.UUID attributeId)
public java.lang.String getDynamicAttributeValueAsString(com.haulmont.chile.core.model.MetaProperty metaProperty, java.lang.Object value)