Package mc.core.model.i18n
Class Unit
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.SimpleEntity
mc.core.model.i18n.Unit
- All Implemented Interfaces:
Serializable,IBaseEntity,ICollectionManaged,ICoreEntity,IEntity,ISortableEntity
Entity representing an unit which can be used in numeric values with unit or as content or order unit. Units are
always grouped in collections.
uneceCode: String, optional, code matching the UNECE standard, used in systems such as bmeCatsymbol: String, optional, common abbreviation for the unit, such as kg for kilogram.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mc.core.model.base.EntityBase
EntityBase.EntityComparator, EntityBase.Param -
Field Summary
Fields inherited from class mc.core.model.base.EntityBase
INTDESC_COLUMN_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()booleanFlag that indicates if the entities have a root collection per type or if there is only one global root collection.voidvoidsetUneceCode(String uneceCode) Methods inherited from class mc.core.model.base.SimpleEntity
getId, getIsActive, setId, setIsActiveMethods inherited from class mc.core.model.base.EntityBase
equals, getCollection, getDescription, getDescription, getFlag, getIsSystem, getName, getName, getNamespace, getPrio, hashCode, setCollection, setDescription, setDescription, setFlag, setInternalDescription, setIsSystem, setName, setName, setNamespace, setPrio, toStringMethods inherited from interface mc.core.model.base.IBaseEntity
getId, setIdMethods inherited from interface mc.core.model.base.ICollectionManaged
getCollection, setCollectionMethods inherited from interface mc.core.model.base.IEntity
getDescription, getName, getPrio, setInternalDescription
-
Constructor Details
-
Unit
public Unit()standard constructor
-
-
Method Details
-
getInternalDescription
- Specified by:
getInternalDescriptionin interfaceIEntity- Overrides:
getInternalDescriptionin classSimpleEntity- Returns:
- Unique identifier in combination with entity class if internalDescription property is defined as unique.
Might be
null.
-
getUneceCode
-
setUneceCode
-
getSymbol
-
setSymbol
-
isRootPerType
public boolean isRootPerType()Description copied from interface:ICollectionManagedFlag that indicates if the entities have a root collection per type or if there is only one global root collection. if rootPerType true it can only apply to entities that have a type, i.e. ComplexEntities.- Specified by:
isRootPerTypein interfaceICollectionManaged
-
getType
- Specified by:
getTypein interfaceICollectionManaged
-