public interface StructuredEntityI extends BasicEntityI
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
$0 |
static netrexx.lang.Rexx |
$01 |
static StructuredEntityI[] |
EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
default java.util.List<AttributeI> |
getAllAttributeList()
Returns a
List of all AttributeI instances (including many-relations) of only this EntityI ,
i.e. excluding attributes from its sub-EntityI instances. |
default java.util.List<AttributeI> |
getAllAttributeList(boolean includeSubEntities)
Returns a
List of all AttributeI instances (including many-relations) of this EntityI , and optionally,
also includes attributes from its sub-EntityI instances based on the passed parameters. |
default java.util.List<AttributeI> |
getAllAttributeList(boolean includeSubEntities,
boolean excludeManyRelations)
Returns a
List of all AttributeI instances of this EntityI , and optionally,
also includes attributes from its sub-EntityI instances based on the passed parameters. |
default java.util.List<AttributeI> |
getAllAttributeListByType()
Returns a
List of all persistent AttributeI-s of this EntityI based on the specified criteria,
including many-relations, but excluding AttributeI-s from sub-EntityI-s. |
default java.util.List<AttributeI> |
getAllAttributeListByType(boolean virtual)
Returns a
List of AttributeI-s of this EntityI based on the specified criteria, including many-relations,
but excluding AttributeI-s from sub-EntityI-s. |
default java.util.List<AttributeI> |
getAllAttributeListByType(boolean virtual,
boolean includeSubEntities)
Returns a
List of AttributeI-s of this EntityI based on the specified criteria, including many-relations. |
default java.util.List<AttributeI> |
getAllAttributeListByType(boolean virtual,
boolean includeSubEntities,
boolean excludeManyRelations)
Returns a
List of AttributeI-s of this EntityI based on the specified criteria. |
default java.util.List<AttributeI> |
getAllAttributeListWithoutSubentities()
Returns a
List of all attributes of this StructuredEntityI , including many-relations and including the attributes from base entities but
excluding attributes from subentities of this StructuredEntityI . |
default java.util.List<AttributeI> |
getAllAttributeListWithoutSubentities(boolean excludeManyRelations)
Returns a
List of all attributes of this StructuredEntityI , including the attributes from base entities but
excluding attributes from subentities of this StructuredEntityI . |
default java.util.List<EntityI> |
getAllSubEntityList()
Returns a
List of all sub-EntityI-s of this EntityI |
default java.util.List<EntityI> |
getAllSubEntityList(boolean includeSelf)
Returns a
List of all sub-EntityI instances of this EntityI . |
default java.util.List<EntityI> |
getAllSubEntityList(boolean includeSelf,
boolean filterAbstract)
Returns a
List of all sub-EntityI instances of this EntityI . |
default AttributeI[] |
getAttChain(java.lang.String attPath)
Retrieves an array of AttributeI representing the attribute chain necessary to navigate to the
attribute specified by the given path within this
StructuredEntityI . |
default AttributeI[] |
getAttChain(java.lang.String attPath,
boolean noThrow)
Retrieves an array of AttributeI representing the attribute chain necessary to navigate to the
attribute specified by the given path within this
StructuredEntityI . |
default AttributeI |
getAttribute(java.lang.String attPath)
Retrieves the
AttributeI reached by the specified attribute path. |
default AttributeI |
getAttribute(java.lang.String attPath,
boolean noThrow) |
EntityI |
getBaseEntity() |
default EntityI |
getPersistentBaseEntity()
Returns the persistent base entity for this
EntityDefinition , returns null
if persistent base couldn't be retrieved from the base entity of this EntityDefinition wasn't
set or no persistent base entity was retrievable. |
java.util.List<EntityI> |
getSubEntityList()
return a List of EntityI containing every EntityI that has this StructuredEntityI as
getBaseEntity() . |
default boolean |
hasPersistentSubentity()
Returns true if any sub-EntityI of this StructuredEntityI is persistent.
|
boolean |
hasSubEntities() |
default boolean |
isEffectivelyPersistent()
Returns true if this StructuredEntityI is either persistent itself or any sub-entity of it is
and thus it is implicitly persistent.
|
default boolean |
isImplicitlyPersistent()
Returns true if this StructuredEntityI is has any persistent sub-entity.
|
default boolean |
isSubEntityOf(java.lang.String possibleSuperEntityName)
Returns
true if we are a subentity of the EntityI with the given name or that StructuredEntityI ourself. |
default boolean |
isSubEntityOf(StructuredEntityI possibleSuperEntity)
Returns
true if we are a subentity of the given EntityI or that StructuredEntityI ourself. |
getAttributeList, getAttributeListByType, getAttributeListByType, getClazz, getDescription, getFolderName, getImplementedSchemaInterfaces, getName, getPlural, getRelations, getSchema, getSingleAttribute, isCustom, isPersistent, isUserAbstract, newInstance
static final netrexx.lang.Rexx $01
static final java.lang.String $0
static final StructuredEntityI[] EMPTY_ARRAY
default boolean isImplicitlyPersistent()
default boolean isEffectivelyPersistent()
default boolean isSubEntityOf(java.lang.String possibleSuperEntityName)
true
if we are a subentity of the EntityI
with the given name or that StructuredEntityI ourself.possibleSuperEntityName
- the name of the EntityI to checktrue
if we are a subentity of the EntityI
with the given name or that StructuredEntityI ourself.default boolean isSubEntityOf(StructuredEntityI possibleSuperEntity)
true
if we are a subentity of the given EntityI
or that StructuredEntityI ourself.possibleSuperEntity
- the EntityI to checktrue
if we are a subentity of the given EntityI
or that StructuredEntityI ourself.default EntityI getPersistentBaseEntity()
EntityDefinition
, returns null
if persistent base couldn't be retrieved from the base entity of this EntityDefinition
wasn't
set or no persistent base entity was retrievable.EntityDefinition
EntityI getBaseEntity()
EntityI
of this EntityI
boolean hasSubEntities()
true
if this EntityI
has sub entitiesjava.util.List<EntityI> getSubEntityList()
getBaseEntity()
.
Does not include this StructuredEntityI or transitive sub-EntityI-s.default boolean hasPersistentSubentity()
default java.util.List<EntityI> getAllSubEntityList()
List
of all sub-EntityI-s of this EntityI
List
of all sub-EntityI-s of this EntityI
, including the abstract ones.default java.util.List<EntityI> getAllSubEntityList(boolean includeSelf)
List
of all sub-EntityI
instances of this EntityI
.includeSelf
- If true
, this EntityI
will be included in the list.List
of all sub-EntityI
instances of this EntityI
, including the abstract ones,
optionally excluding this.default java.util.List<EntityI> getAllSubEntityList(boolean includeSelf, boolean filterAbstract)
List
of all sub-EntityI
instances of this EntityI
.includeSelf
- If true
, this EntityI
will be included in the list.filterAbstract
- If true
, all abstract EntityI
instances will be excluded from the list.List
of all sub-EntityI
instances of this EntityI
, optionally excluding this
and the abstract ones.default java.util.List<AttributeI> getAllAttributeList()
List
of all AttributeI
instances (including many-relations) of only this EntityI
,
i.e. excluding attributes from its sub-EntityI
instances.List
of all AttributeI
instances of this EntityI
.default java.util.List<AttributeI> getAllAttributeList(boolean includeSubEntities)
List
of all AttributeI
instances (including many-relations) of this EntityI
, and optionally,
also includes attributes from its sub-EntityI
instances based on the passed parameters.includeSubEntities
- If true
, AttributeI
instances from sub-EntityI
instances
will be included in the result list.List
of all AttributeI
instances of this EntityI
, and optionally,
also includes attributes from its sub-EntityI
instances based on the passed parameters.default java.util.List<AttributeI> getAllAttributeList(boolean includeSubEntities, boolean excludeManyRelations)
List
of all AttributeI
instances of this EntityI
, and optionally,
also includes attributes from its sub-EntityI
instances based on the passed parameters.includeSubEntities
- If true
, AttributeI
instances from sub-EntityI
instances
will be included in the result list.excludeManyRelations
- If true
, many-relation
AttributeI
instances will
not be included in the result list.List
of all AttributeI
instances of this EntityI
, and optionally,
also includes attributes from its sub-EntityI
instances based on the passed parameters.default java.util.List<AttributeI> getAllAttributeListWithoutSubentities()
List
of all attributes of this StructuredEntityI
, including many-relations and including the attributes from base entities but
excluding attributes from subentities of this StructuredEntityI
.List
of all attributes from this StructuredEntityI
, including the attributes from the entities it is
based on, but excluding attributes from subentities.default java.util.List<AttributeI> getAllAttributeListWithoutSubentities(boolean excludeManyRelations)
List
of all attributes of this StructuredEntityI
, including the attributes from base entities but
excluding attributes from subentities of this StructuredEntityI
.excludeManyRelations
- If true
, many-relational attributes will be excluded from the result list.List
of all attributes from this StructuredEntityI
, including the attributes from the entities it is
based on, but excluding attributes from subentities.default java.util.List<AttributeI> getAllAttributeListByType()
List
of all persistent AttributeI-s of this EntityI
based on the specified criteria,
including many-relations, but excluding AttributeI-s from sub-EntityI-s.List
of AttributeI-s of this EntityI
based on the specified criteria.default java.util.List<AttributeI> getAllAttributeListByType(boolean virtual)
List
of AttributeI-s of this EntityI
based on the specified criteria, including many-relations,
but excluding AttributeI-s from sub-EntityI-s.virtual
- If true
, only virtual AttributeI-s will be included; if false
,
only persistent AttributeI-s will be included.List
of AttributeI-s of this EntityI
based on the specified criteria.default java.util.List<AttributeI> getAllAttributeListByType(boolean virtual, boolean includeSubEntities)
List
of AttributeI-s of this EntityI
based on the specified criteria, including many-relations.virtual
- If true
, only virtual AttributeI-s will be included; if false
,
only persistent AttributeI-s will be included.includeSubEntities
- If true
, AttributeI-s from sub-EntityI-s will be included.List
of AttributeI-s of this EntityI
based on the specified criteria.default java.util.List<AttributeI> getAllAttributeListByType(boolean virtual, boolean includeSubEntities, boolean excludeManyRelations)
List
of AttributeI-s of this EntityI
based on the specified criteria.virtual
- If true
, only virtual AttributeI-s will be included; if false
,
only persistent AttributeI-s will be included.includeSubEntities
- If true
, AttributeI-s from sub-EntityI-s will be included.excludeManyRelations
- If true
, many-relation AttributeI-s will be excluded.List
of AttributeI-s of this EntityI
based on the specified criteria.default AttributeI getAttribute(java.lang.String attPath)
AttributeI
reached by the specified attribute path.attPath
- The path to the desired AttributeI
.noThrow
- If true
, the method will return null
if the attribute cannot be resolved, instead
of throwing an exception. Defaults to true
.AttributeI
reached by the given path, or null
if noThrow
is true
and the attribute cannot be resolved.java.lang.IllegalArgumentException
- If the provided attribute path is null
and noThrow
is false
.default AttributeI getAttribute(java.lang.String attPath, boolean noThrow)
default AttributeI[] getAttChain(java.lang.String attPath) throws java.lang.IllegalArgumentException
StructuredEntityI
.
The attribute path is a string where attribute names are separated by the delimiter ".".
This method attempts to resolve each segment of the path to an AttributeI
object,
building a chain that leads to the target attribute.
attPath
- The attribute path to resolve. For example, "Service.Maintainer.Name".AttributeI
objects representing the attribute chain.java.lang.IllegalArgumentException
- If the provided attribute path is invalid.default AttributeI[] getAttChain(java.lang.String attPath, boolean noThrow) throws java.lang.IllegalArgumentException
StructuredEntityI
.
The attribute path is a string where attribute names are separated by the delimiter ".". This method
tries to resolve each segment of the path to an AttributeI
object, building a chain that leads
to the target attribute.
attPath
- The attribute path to resolve. For example, "Service.Maintainer.Name".noThrow
- If true
, the method will return an empty array if any part of the attribute path
cannot be resolved, instead of throwing an exception.
If false
, an IllegalArgumentException
will be thrown if the path is invalid.AttributeI
objects representing the attribute chain. The array will be empty
if noThrow
is true
and the path cannot be fully resolved.java.lang.IllegalArgumentException
- If the provided attribute path is invalid and noThrow
is false
.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.