Package pl.decerto.hyperon.runtime.model
Interface HyperonDomainObject
- All Known Implementing Classes:
HyperonDomainObjectImpl,HyperonDomainObjectProxy
public interface HyperonDomainObject
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttrBoolean(String attrCode, HyperonContext ctx) getAttrDate(String attrCode, HyperonContext ctx) getAttrDecimal(String attrCode, HyperonContext ctx) getAttribute(String code) getAttribute(String path, String attributeCode) @NotNull List<HyperonDomainAttribute>getAttributeValue(String path, String attributeCode, ParamContext ctx, Object... args) getAttrInteger(String attrCode, HyperonContext ctx) doublegetAttrNumber(String attrCode, HyperonContext ctx) getAttrString(String attrCode, HyperonContext ctx) path to this object in the form in which it was used (the object can be reached using different paths).@NotNull List<HyperonDomainObject>getChildren(String propCode) getCode()calculates and returns element's digest.getDynamicAttribute(String code) @NotNull List<HyperonDomainAttribute>getFromAllAttributes(String code) getId()getName()getPath()booleanisAttrDefined(String code) booleanbooleanisLocalAttr(String code) booleanisRoot()
-
Method Details
-
getDomain
-
getCode
String getCode() -
getName
String getName() -
getDescription
String getDescription() -
getTypeCode
String getTypeCode() -
getTypeName
String getTypeName() -
getPath
String getPath() -
getAttribute
-
isAttrSet
-
getAttributes
-
getDynamicAttribute
-
getFromAllAttributes
- Parameters:
code- attribute code to look for- Returns:
- found attribute or
Optional.empty()if not found
-
getDynamicAttributes
-
getChild
-
getChildren
-
getParent
HyperonDomainObject getParent() -
getAttribute
-
getAttributeValue
-
isRoot
boolean isRoot() -
isAttrDefined
-
isLocalAttr
-
getAttr
- Parameters:
code- code- Returns:
- attribute of type HyperonDomainAttribute
- Since:
- 1.5.22
-
getAttrString
- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as String object
- Since:
- 1.5.22
-
getAttrDecimal
- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as BigDecimal object
- Since:
- 1.5.22
-
getAttrNumber
- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as double value
- Since:
- 1.5.22
-
getAttrInteger
- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as Integer object
- Since:
- 1.5.22
-
getAttrDate
- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as Data object
- Since:
- 1.5.22
-
getAttrBoolean
- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as boolean value
- Since:
- 1.5.22
-
getId
Integer getId()- Returns:
- Integer object
- Since:
- 1.5.30
-
getParentId
Integer getParentId()- Returns:
- Parent id
- Since:
- 1.5.30
-
getCallPath
String getCallPath()path to this object in the form in which it was used (the object can be reached using different paths). path is normalized and has the form: / a / b / c- Returns:
- call path
- Since:
- 1.5.30
-
getTypeCollection
HyperonDomainObjectType getTypeCollection()- Returns:
- collection type of HyperonDomainObjectType object
- Since:
- 1.5.41
-
getRegion
RegionCached getRegion()- Returns:
- region code from MpRegionCached object
- Since:
- 1.6.4
-
getTagList
- Returns:
- collection with tags attached to domain object
- Since:
- 1.11.1
-
getDigest
String getDigest()calculates and returns element's digest. It includes element's code, type code, attributes digests and region info, if element is attached- Returns:
- domain element's digest
- Since:
- 1.20.2
-