Interface IMetaPrimitive
-
public interface IMetaPrimitive
Represents the type of an attribute member of an entity (IMetaObject).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IMetaPrimitive.PrimitiveType
Defines all primitive types.static class
IMetaPrimitive.ValueType
Defines all possible value types.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDefaultValue()
Returns the default value for this attribute type.IMetaEnumeration
getEnumeration()
Returns the enumeration when this attribute type is an enumeration.java.util.Collection<? extends IMetaEnumValue>
getEnumValues()
Returns the enum value of this attribute type (if applicable).int
getLength()
Returns the length of this attribute type (if applicable).java.util.UUID
getModelGUID()
Returns the identifier of the modeled attribute which is the base of this attribute type.java.lang.String
getName()
Returns the name of the attribute this meta primitive refers to.IMetaObject
getParent()
Returns the parent object of this attribute type, that is theIMetaObject
on which thisIMetaPrimitive
was declared.IMetaPrimitive.PrimitiveType
getType()
Returns the type of this primitive.IMetaPrimitive.ValueType
getValueType()
Returns the value type of this IMetaPrimitive.java.lang.String
getVirtualActionName()
Returns the name of the associated microflow of this virtual attribute type (if applicable).boolean
hasMetaDataAccess(IContext context)
Returns whether the specified context has access to this attribute type.boolean
isDecimal()
Returns whether this attribute type is decimal.boolean
isNumeric()
Returns whether this attribute type is numeric.boolean
isVirtual()
Returns whether this attribute type is virtual.boolean
shouldLocalizeDate()
Returns whether dates should be localized for this attribute type.
-
-
-
Method Detail
-
getDefaultValue
java.lang.String getDefaultValue()
Returns the default value for this attribute type.- Returns:
- the default value
-
isVirtual
boolean isVirtual()
Returns whether this attribute type is virtual.- Returns:
- true if this attribute type is virtual, false otherwise
-
getValueType
IMetaPrimitive.ValueType getValueType()
Returns the value type of this IMetaPrimitive.- Returns:
- the value type
-
getLength
int getLength()
Returns the length of this attribute type (if applicable).- Returns:
- the length
-
getName
java.lang.String getName()
Returns the name of the attribute this meta primitive refers to. In the case ofSystem.User#isAnonymous
the result would be"isAnonymous"
. That is, there is no reference to the entity.- Returns:
- the attribute name
-
getParent
IMetaObject getParent()
Returns the parent object of this attribute type, that is theIMetaObject
on which thisIMetaPrimitive
was declared. In case of inheritance, this will be the 'base' object. For example the attributeAdministation.Account#isAnonymous
is inherited fromSystem.User
. Therefore callingaccountMetaObject.getMetaPrimitive("isAnonymous").getParent
will return the meta object corresponding toSystem.User
.- Returns:
- the parent object
-
getType
IMetaPrimitive.PrimitiveType getType()
Returns the type of this primitive. For example on the primitive corresponding toSystem.User#isAnonymous
the result will beIMetaPrimitive.PrimitiveType.Boolean
.- Returns:
- the type
-
getVirtualActionName
java.lang.String getVirtualActionName()
Returns the name of the associated microflow of this virtual attribute type (if applicable).- Returns:
- the name of the microflow if this attribute type is virtual, or null otherwise
-
getEnumValues
java.util.Collection<? extends IMetaEnumValue> getEnumValues()
Returns the enum value of this attribute type (if applicable).- Returns:
- the enum values if this attribute type is an enum, or an empty collection otherwise
-
hasMetaDataAccess
boolean hasMetaDataAccess(IContext context)
Returns whether the specified context has access to this attribute type.- Parameters:
context
- the context to check- Returns:
- true if the context has access, false otherwise
-
getEnumeration
IMetaEnumeration getEnumeration()
Returns the enumeration when this attribute type is an enumeration.- Returns:
- the enumeration
-
shouldLocalizeDate
boolean shouldLocalizeDate()
Returns whether dates should be localized for this attribute type.- Returns:
- true if dates should be localized, false otherwise
-
isDecimal
boolean isDecimal()
Returns whether this attribute type is decimal.- Returns:
- true if this attribute type is decimal, false otherwise
-
isNumeric
boolean isNumeric()
Returns whether this attribute type is numeric.- Returns:
- true if this attribute type is numeric, false otherwise
-
getModelGUID
java.util.UUID getModelGUID()
Returns the identifier of the modeled attribute which is the base of this attribute type.- Returns:
- the identifier of the modeled attribute
-
-