public class ComplexTypeManager extends java.lang.Object implements TypeManager
Modifier and Type | Class and Description |
---|---|
protected class |
ComplexTypeManager.BrowseFunction |
protected class |
ComplexTypeManager.ComplexInstanceConfigProvider |
protected class |
ComplexTypeManager.InstanceData |
protected class |
ComplexTypeManager.InvalidHierarchyException |
protected class |
ComplexTypeManager.TagConstructionResult
This is used when we build a ComplexTagDefinition off of a TagStoreObject.
|
protected class |
ComplexTypeManager.TypeNode |
Modifier and Type | Field and Description |
---|---|
static ComplexTag |
INVALID_TAG |
Constructor and Description |
---|
ComplexTypeManager() |
ComplexTypeManager(LoggerEx log) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Tag> |
browse(TagPath path) |
protected java.util.Map<java.lang.String,TagPath> |
buildFolderStructureForMembers(java.util.Collection<TagStoreObject<MemberConfig>> members,
java.util.Collection<Member> inheritedMembers)
This function performs the job of taking all of our UID based paths and building real tag paths out if them.
|
protected ComplexTypeManager.TagConstructionResult |
buildFromConfig(TagStoreObject<TagConfig> configObject) |
protected java.util.List<Tag> |
executeDependantCount(TagPath tp) |
protected java.util.List<Tag> |
executeDirectBrowse(TagPath tp) |
protected ComplexTypeManager.BrowseFunction |
extractFunction(TagPath path) |
TagPath |
findClosestExistingFolder(TagPath path) |
protected LoggerEx |
getLogger() |
protected ComplexTypeManager.TypeNode |
getParentType(Tag tag)
Returns the type node for the parent of the provided tag.
|
protected ComplexTypeManager.TypeNode |
getType(TagPath typePath)
Returns a type node for the type defined by the path.
|
ComplexTag |
getTypeDefinition(TagPath typePath) |
protected void |
internalUnregisterType(EntityId id,
java.util.Set<EntityId> affectedInstances,
java.util.Set<EntityId> affectedTypes) |
protected boolean |
isComplexTag(TagType type) |
java.util.List<ComplexMemberDefinition> |
registerInstance(TagStoreObject<TagConfig> tag)
Registers an instance object, and returns a tag definitions for each of the members.
|
void |
registerType(TagStoreObject<TagConfig> configObject,
java.util.Set<EntityId> affectedInstances,
java.util.Set<EntityId> affectedTypes)
Used to register a tag object with the complex manager.
|
void |
removeImplicitFolder(TagPath path) |
protected void |
removeTypeNode(TagPath typePath)
Remvoes the type node from the tree.
|
void |
unregisterInstance(EntityId tagId) |
java.util.Set<EntityId> |
unregisterType(EntityId id) |
public static final ComplexTag INVALID_TAG
public ComplexTypeManager()
public ComplexTypeManager(LoggerEx log)
protected LoggerEx getLogger()
protected ComplexTypeManager.TypeNode getType(TagPath typePath)
typePath
- protected void removeTypeNode(TagPath typePath)
protected ComplexTypeManager.TypeNode getParentType(Tag tag)
tag
- public ComplexTag getTypeDefinition(TagPath typePath)
getTypeDefinition
in interface TypeManager
protected boolean isComplexTag(TagType type)
protected java.util.Map<java.lang.String,TagPath> buildFolderStructureForMembers(java.util.Collection<TagStoreObject<MemberConfig>> members, java.util.Collection<Member> inheritedMembers)
members
- public void registerType(TagStoreObject<TagConfig> configObject, java.util.Set<EntityId> affectedInstances, java.util.Set<EntityId> affectedTypes)
configObject
- protected ComplexTypeManager.TagConstructionResult buildFromConfig(TagStoreObject<TagConfig> configObject)
protected void internalUnregisterType(EntityId id, java.util.Set<EntityId> affectedInstances, java.util.Set<EntityId> affectedTypes)
public java.util.List<ComplexMemberDefinition> registerInstance(TagStoreObject<TagConfig> tag)
tag
- public void unregisterInstance(EntityId tagId)
public void removeImplicitFolder(TagPath path)
protected ComplexTypeManager.BrowseFunction extractFunction(TagPath path)