Package io.higson.runtime.model
Interface DomainObject
- All Known Implementing Classes:
DomainObjectImpl,DomainObjectProxy
public interface DomainObject
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttrBoolean(String attrCode, HigsonContext ctx) getAttrDate(String attrCode, HigsonContext ctx) getAttrDecimal(String attrCode, HigsonContext ctx) getAttribute(String code) getAttribute(String path, String attributeCode) @NotNull List<DomainAttribute>getAttributeValue(String path, String attributeCode, ParamContext ctx, Object... args) getAttrInteger(String attrCode, HigsonContext ctx) doublegetAttrNumber(String attrCode, HigsonContext ctx) getAttrString(String attrCode, HigsonContext ctx) path to this object in the form in which it was used (the object can be reached using different paths).@NotNull List<DomainObject>getChildren(String propCode) getCode()calculates and returns element's digest.getDynamicAttribute(String code) @NotNull List<DomainAttribute>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
DomainObject getParent() -
getAttribute
-
getAttributeValue
-
isRoot
boolean isRoot() -
isAttrDefined
-
isLocalAttr
-
getAttr
- Parameters:
code- code- Returns:
- attribute of type HigsonDomainAttribute
- 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
DomainObjectType getTypeCollection()- Returns:
- collection type of HigsonDomainObjectType 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
-