Interface IMetaPrimitive
-
public interface IMetaPrimitiveRepresents the type of an attribute member of an entity (IMetaObject).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIMetaPrimitive.PrimitiveTypeDefines all primitive types.static classIMetaPrimitive.ValueTypeDefines all possible value types.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDefaultValue()Returns the default value for this attribute type.IMetaEnumerationgetEnumeration()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).intgetLength()Returns the length of this attribute type (if applicable).java.util.UUIDgetModelGUID()Returns the identifier of the modeled attribute which is the base of this attribute type.java.lang.StringgetName()Returns the name of the attribute this meta primitive refers to.IMetaObjectgetParent()Returns the parent object of this attribute type, that is theIMetaObjecton which thisIMetaPrimitivewas declared.IMetaPrimitive.PrimitiveTypegetType()Returns the type of this primitive.IMetaPrimitive.ValueTypegetValueType()Returns the value type of this IMetaPrimitive.java.lang.StringgetVirtualActionName()Returns the name of the associated microflow of this virtual attribute type (if applicable).booleanhasMetaDataAccess(IContext context)Returns whether the specified context has access to this attribute type.booleanisDecimal()Returns whether this attribute type is decimal.booleanisNumeric()Returns whether this attribute type is numeric.booleanisVirtual()Returns whether this attribute type is virtual.booleanshouldLocalizeDate()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#isAnonymousthe 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 theIMetaObjecton which thisIMetaPrimitivewas declared. In case of inheritance, this will be the 'base' object. For example the attributeAdministation.Account#isAnonymousis inherited fromSystem.User. Therefore callingaccountMetaObject.getMetaPrimitive("isAnonymous").getParentwill 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#isAnonymousthe 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
-
-