public interface ITreeLogic
Modifier and Type | Interface and Description |
---|---|
static class |
ITreeLogic.HierarchicalException |
static class |
ITreeLogic.IdContainsWrongChars |
static class |
ITreeLogic.IdEmpty |
static class |
ITreeLogic.NodeIdException |
static class |
ITreeLogic.PastingIntoLeafException |
static class |
ITreeLogic.SameIdExistsInChildren |
static class |
ITreeLogic.TreeLogicException |
static class |
ITreeLogic.WrongProjectException |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeChildOf(java.lang.String whatType,
java.lang.String parentType)
Method to check if it possible to 'what' type(for ex.
|
boolean |
canBeChildOf(java.lang.String whatType,
TreeNode parent)
Method to check if it possible to 'what' type(for ex.
|
boolean |
canBeChildOf(TreeNode what,
TreeNode parent)
Method to check if it possible to 'what' to be child of 'parent' TreeNode
|
boolean |
canBeChildOf(TreeNode what,
TreeNode parent,
boolean checkid) |
boolean |
canBeChildOfExc(java.lang.String whatType,
TreeNode parent)
Method to check if it possible to 'what' type(for ex.
|
boolean |
canBeChildOfExc(TreeNode what,
TreeNode parent)
Method to check if it possible to 'what' to be child of 'parent' TreeNode
Throws exceptions
|
boolean |
canBeChildOfExc(TreeNode what,
TreeNode parent,
boolean checkid) |
boolean |
canBeCopiedTo(TreeNode what,
TreeNode newParent,
boolean changeId)
Check if it is possible to create copy of 'what' TreeNode in 'parent' TreeNode.
|
boolean |
canBeCopiedToExc(TreeNode what,
TreeNode newParent,
boolean changeId)
Check if it is possible to create copy of 'what' TreeNode in 'parent' TreeNode.
|
boolean |
canBeCreatedIn(java.lang.String whatType,
java.lang.String newId,
TreeNode parent)
Check if it possible to create node with type 'whatType' and id 'newId' to node 'parent'
|
boolean |
canBeCreatedIn(java.lang.String whatType,
TreeNode parent)
Check if it possible to create node with type 'whatType' and id 'newId' to node 'parent'
|
boolean |
canBeCreatedInExc(java.lang.String whatType,
java.lang.String newId,
TreeNode parent)
Check if it possible to create node with type 'whatType' and id 'newId' to node 'parent'
Throws exceptions
|
boolean |
canBeCreatedInExc(java.lang.String whatType,
TreeNode parent)
Check if it possible to create node with type 'whatType' and id 'newId' to node 'parent'
Throws exceptions
|
boolean |
canBeDeleted(TreeNode node)
Method to check possibility to delete a node
|
boolean |
canBeParentOf(java.lang.String whatType,
java.lang.String childType)
Method to check if it possible to 'what' type(for ex.
|
boolean |
canBeParentOf(java.lang.String whatType,
TreeNode child)
Method to check if it possible to 'what' type(for ex.
|
boolean |
canBeParentOf(TreeNode what,
TreeNode child)
Method to check if it possible to 'what' to be parent of 'child' TreeNode
Throws exceptions
|
boolean |
canBeParentOfExc(TreeNode what,
TreeNode child)
Method to check if it possible to 'what' to be parent of 'child' TreeNode
|
boolean |
canBeTemplate(java.lang.String type) |
java.util.Set<java.lang.String> |
getLinkedNodeTypesToLink(java.lang.String linkToType)
Method to get all possible linkto: linked types for given linkTo: name
|
java.util.Set<java.lang.String> |
getPossibleLink(java.lang.String treeNodeType)
Method to return possible linkto: contruction's names for given node type
|
java.util.Set<java.lang.String> |
getPossibleLinkForAttribute(java.lang.String treeNodeType,
java.lang.String treeNodeAttribute)
Method to return possible linkto: contruction's names for given node type and concrete attribute
|
boolean |
isAutoRenamable(java.lang.String type)
This method is created to support classes that are not needed
in asking before rename on copying
|
boolean |
isChildIdValid(TreeNode parent,
java.lang.String id)
Method to check if it possible to add node with id 'id' to node 'parent'
|
boolean |
isChildIdValid(TreeNode parent,
TreeNode node,
java.lang.String id)
Method to check if it possible to add node with id 'id' to node 'parent'
|
boolean |
isChildIdValidExc(TreeNode parent,
java.lang.String id)
Method to check if it possible to add node with id 'id' to node 'parent'
Throws exceptions
|
boolean |
isChildIdValidExc(TreeNode parent,
TreeNode node,
java.lang.String id)
Method to check if it possible to add node with id 'id' to node 'parent'
Throws exceptions
|
boolean |
isCopyable(TreeNode node)
Method to check a possibility of node coping
|
boolean |
isIdValid(TreeNode node,
java.lang.String newId)
Method to check if it possible to change id of 'node' to 'newId'
|
boolean |
isIdValidExc(TreeNode node,
java.lang.String newId)
Method to check if it possible to change id of 'node' to 'newId'
Throws exceptions
|
boolean |
isSiblingPasteAvalible(java.lang.String node)
Method to check a possibility for node type to be copy-pasted
as siblink of target node
|
boolean canBeParentOfExc(TreeNode what, TreeNode child) throws ITreeLogic.WrongProjectException, ITreeLogic.SameIdExistsInChildren, ITreeLogic.IdEmpty, ITreeLogic.IdContainsWrongChars
what
- possible parent nodechild
- possible child nodeITreeLogic.WrongProjectException
ITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean canBeChildOfExc(TreeNode what, TreeNode parent) throws ITreeLogic.PastingIntoLeafException, ITreeLogic.WrongProjectException, ITreeLogic.SameIdExistsInChildren, ITreeLogic.IdEmpty, ITreeLogic.IdContainsWrongChars
what
- possible child nodeparent
- possible parent nodeITreeLogic.PastingIntoLeafException
- special paste exceptionITreeLogic.WrongProjectException
ITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean canBeChildOfExc(java.lang.String whatType, TreeNode parent) throws ITreeLogic.PastingIntoLeafException
what
- type of possible child nodeparent
- possible parent nodeITreeLogic.PastingIntoLeafException
- special paste exceptionboolean isIdValidExc(TreeNode node, java.lang.String newId) throws ITreeLogic.SameIdExistsInChildren, ITreeLogic.IdEmpty, ITreeLogic.IdContainsWrongChars
node
- node to check possibility of id changenewId
- id to checkITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean isChildIdValidExc(TreeNode parent, TreeNode node, java.lang.String id) throws ITreeLogic.SameIdExistsInChildren, ITreeLogic.IdEmpty, ITreeLogic.IdContainsWrongChars
parent
- possible parent node to node with id equal to 'id'node
- child to check id forid
- id to check possibility of adding it to node 'parent' as childITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean isChildIdValidExc(TreeNode parent, java.lang.String id) throws ITreeLogic.SameIdExistsInChildren, ITreeLogic.IdEmpty, ITreeLogic.IdContainsWrongChars
parent
- possible parent node to node with id equal to 'id'id
- id to check possibility of adding it to node 'parent' as childITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean canBeCreatedInExc(java.lang.String whatType, java.lang.String newId, TreeNode parent) throws ITreeLogic.PastingIntoLeafException, ITreeLogic.SameIdExistsInChildren, ITreeLogic.IdEmpty, ITreeLogic.IdContainsWrongChars
whatType
- type of node to create in 'parent'newId
- id of node to create in 'parent'parent
- node where checking id performingITreeLogic.PastingIntoLeafException
- special paste exceptionITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean canBeCopiedToExc(TreeNode what, TreeNode newParent, boolean changeId) throws ITreeLogic.PastingIntoLeafException, ITreeLogic.WrongProjectException, ITreeLogic.SameIdExistsInChildren, ITreeLogic.IdEmpty, ITreeLogic.IdContainsWrongChars
what
- TreeNode which have to be copiednewParent
- TreeNode where 'what' should be copiedchangeId
- if true, then methods checks possibility of adding 'what' with possible id altering, otherwise, id seemed to be the sameITreeLogic.WrongProjectException
ITreeLogic.PastingIntoLeafException
ITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean canBeCreatedInExc(java.lang.String whatType, TreeNode parent) throws ITreeLogic.PastingIntoLeafException, ITreeLogic.SameIdExistsInChildren
whatType
- type of node to create in 'parent'parent
- node where checking id performingITreeLogic.PastingIntoLeafException
- special paste exceptionITreeLogic.SameIdExistsInChildren
boolean canBeParentOf(TreeNode what, TreeNode child)
what
- possible parent nodechild
- possible child nodeITreeLogic.WrongProjectException
ITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean canBeParentOf(java.lang.String whatType, TreeNode child)
what
- type of possible parent nodechild
- possible child nodeboolean canBeChildOf(TreeNode what, TreeNode parent)
what
- possible child nodeparent
- possible parent nodeITreeLogic.PastingIntoLeafException
- special paste exceptionITreeLogic.WrongProjectException
ITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean canBeChildOf(java.lang.String whatType, TreeNode parent)
what
- type of possible child nodeparent
- possible parent nodeITreeLogic.PastingIntoLeafException
- special paste exceptionboolean isIdValid(TreeNode node, java.lang.String newId)
node
- node to check possibility of id changenewId
- id to checkITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean isChildIdValid(TreeNode parent, TreeNode node, java.lang.String id)
parent
- possible parent node to node with id equal to 'id'node
- child to check id forid
- id to check possibility of adding it to node 'parent' as childITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean isChildIdValid(TreeNode parent, java.lang.String id)
parent
- possible parent node to node with id equal to 'id'id
- id to check possibility of adding it to node 'parent' as childITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean canBeCreatedIn(java.lang.String whatType, java.lang.String newId, TreeNode parent)
whatType
- type of node to create in 'parent'newId
- id of node to create in 'parent'parent
- node where checking id performingITreeLogic.PastingIntoLeafException
- special paste exceptionITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
boolean canBeCopiedTo(TreeNode what, TreeNode newParent, boolean changeId)
what
- TreeNode which have to be copiednewParent
- TreeNode where 'what' should be copiedchangeId
- if true, then methods checks possibility of adding 'what' with possible id altering, otherwise, id seemed to be the sameITreeLogic.WrongProjectException
ITreeLogic.PastingIntoLeafException
ITreeLogic.SameIdExistsInChildren
ITreeLogic.IdContainsWrongChars
ITreeLogic.IdEmpty
java.util.Set<java.lang.String> getPossibleLink(java.lang.String treeNodeType)
treeNodeType
- type of TreeNode to get names of linkto: constructionsboolean canBeDeleted(TreeNode node)
node
- node to be deletedjava.util.Set<java.lang.String> getPossibleLinkForAttribute(java.lang.String treeNodeType, java.lang.String treeNodeAttribute)
treeNodeType
- type of TreeNode to get names of linkto: constructionstreeNodeAttribute
- name of attribute to get names of linktosjava.util.Set<java.lang.String> getLinkedNodeTypesToLink(java.lang.String linkToType)
linkToType
- boolean canBeCreatedIn(java.lang.String whatType, TreeNode parent)
whatType
- type of node to create in 'parent'parent
- node where checking id performingITreeLogic.PastingIntoLeafException
- special paste exceptionITreeLogic.SameIdExistsInChildren
boolean isCopyable(TreeNode node)
boolean isSiblingPasteAvalible(java.lang.String node)
boolean canBeChildOf(java.lang.String whatType, java.lang.String parentType)
whatType
- type of possible child nodeparentType
- possible parent node typeITreeLogic.PastingIntoLeafException
- special paste exceptionboolean canBeParentOf(java.lang.String whatType, java.lang.String childType)
what
- type of possible parent nodechild
- possible child node typeboolean isAutoRenamable(java.lang.String type)
boolean canBeChildOfExc(TreeNode what, TreeNode parent, boolean checkid) throws ITreeLogic.PastingIntoLeafException, ITreeLogic.WrongProjectException, ITreeLogic.SameIdExistsInChildren, ITreeLogic.IdEmpty, ITreeLogic.IdContainsWrongChars
boolean canBeTemplate(java.lang.String type)