Package com.wisecoders.dbs.diagram.model
Class Folder<T extends AbstractUnit>
java.lang.Object
java.util.concurrent.CopyOnWriteArrayList<T>
com.wisecoders.dbs.diagram.model.Folder<T>
- All Implemented Interfaces:
TreeUnit
,Unit
,Serializable
,Cloneable
,Iterable<T>
,Collection<T>
,List<T>
,RandomAccess
- Direct Known Subclasses:
PropertyAddOnFolder
,ScriptAddOnFolder
public class Folder<T extends AbstractUnit>
extends CopyOnWriteArrayList<T>
implements TreeUnit, Unit
A entry is a group of suborned definition.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFolder
(String childrenName, AbstractUnit parent, Class<T> childClass) Folder
(String childrenName, AbstractUnit parent, Class<T> childClass, boolean ordered) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(Collection<? extends T> es) void
clear()
boolean
void
exchangePosition
(Attribute unit, Attribute overUnit) Returns the child with the specified name.getChildAt
(int idx) int
getCommentTag
(String key) getDisplayName
(Diagram diagram) getName()
int
int
boolean
int
hashCode()
is
(UnitProperty unitProperty) boolean
boolean
isLoaded()
boolean
boolean
isWrongName
(String name, T unit) void
boolean
moveDown
(int idx) boolean
void
boolean
moveUp
(int idx) boolean
void
proposeName
(String name) ref()
void
refresh()
remove
(int i) boolean
boolean
removeAll
(Collection<?> objects) boolean
boolean
sameWith
(Folder<? extends AbstractUnit> folder, boolean inclusionAdmitted) void
setComment
(String comment) void
setCommentTag
(String key, String value) void
setCommentTags
(Map<String, String> tags) void
setTouchId
(int id) toString()
Methods inherited from class java.util.concurrent.CopyOnWriteArrayList
addAll, addAllAbsent, addIfAbsent, clone, contains, containsAll, forEach, get, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Field Details
-
parent
-
childClass
-
checked
protected boolean checked -
decimalFormat000
-
-
Constructor Details
-
Folder
-
Folder
-
Folder
-
Folder
public Folder(String name, String childrenName, AbstractUnit parent, Class<T> childClass, boolean ordered)
-
-
Method Details
-
getChildClass
-
getByName
Returns the child with the specified name. First return case sensitive, if no case sensitive found return case insensitive -
getByKey
-
isWrongName
-
getChildrenCount
public int getChildrenCount()- Specified by:
getChildrenCount
in interfaceTreeUnit
-
getChildAt
- Specified by:
getChildAt
in interfaceTreeUnit
-
getParent
-
moveUp
public boolean moveUp(int idx) -
moveDown
public boolean moveDown(int idx) -
moveUp
-
moveFirst
-
moveDown
-
getEntity
-
getParentEntity
- Specified by:
getParentEntity
in interfaceUnit
-
isChecked
public boolean isChecked() -
exchangePosition
-
toString
- Overrides:
toString
in classCopyOnWriteArrayList<T extends AbstractUnit>
-
sameWith
-
proposeName
-
add
- Specified by:
add
in interfaceCollection<T extends AbstractUnit>
- Specified by:
add
in interfaceList<T extends AbstractUnit>
- Overrides:
add
in classCopyOnWriteArrayList<T extends AbstractUnit>
-
add
- Specified by:
add
in interfaceList<T extends AbstractUnit>
- Overrides:
add
in classCopyOnWriteArrayList<T extends AbstractUnit>
-
addAll
- Specified by:
addAll
in interfaceCollection<T extends AbstractUnit>
- Specified by:
addAll
in interfaceList<T extends AbstractUnit>
- Overrides:
addAll
in classCopyOnWriteArrayList<T extends AbstractUnit>
-
remove
- Specified by:
remove
in interfaceCollection<T extends AbstractUnit>
- Specified by:
remove
in interfaceList<T extends AbstractUnit>
- Overrides:
remove
in classCopyOnWriteArrayList<T extends AbstractUnit>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T extends AbstractUnit>
- Specified by:
removeAll
in interfaceList<T extends AbstractUnit>
- Overrides:
removeAll
in classCopyOnWriteArrayList<T extends AbstractUnit>
-
remove
- Specified by:
remove
in interfaceList<T extends AbstractUnit>
- Overrides:
remove
in classCopyOnWriteArrayList<T extends AbstractUnit>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T extends AbstractUnit>
- Specified by:
clear
in interfaceList<T extends AbstractUnit>
- Overrides:
clear
in classCopyOnWriteArrayList<T extends AbstractUnit>
-
getName
-
equals
- Specified by:
equals
in interfaceCollection<T extends AbstractUnit>
- Specified by:
equals
in interfaceList<T extends AbstractUnit>
- Overrides:
equals
in classCopyOnWriteArrayList<T extends AbstractUnit>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<T extends AbstractUnit>
- Specified by:
hashCode
in interfaceList<T extends AbstractUnit>
- Overrides:
hashCode
in classCopyOnWriteArrayList<T extends AbstractUnit>
-
getSymbolicName
- Specified by:
getSymbolicName
in interfaceUnit
-
markForDeletion
public void markForDeletion()- Specified by:
markForDeletion
in interfaceUnit
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletion
in interfaceUnit
-
setComment
- Specified by:
setComment
in interfaceUnit
-
getChildrenName
-
getComment
- Specified by:
getComment
in interfaceUnit
-
refresh
public void refresh() -
rename
-
getTickId
public int getTickId() -
orderAlphabetically
public void orderAlphabetically() -
setTouchId
public void setTouchId(int id) - Specified by:
setTouchId
in interfaceTreeUnit
-
getTouchId
public int getTouchId()- Specified by:
getTouchId
in interfaceTreeUnit
-
getUnitProperty
- Specified by:
getUnitProperty
in interfaceTreeUnit
-
is
-
ref
-
getCommentTags
- Specified by:
getCommentTags
in interfaceUnit
-
setCommentTags
- Specified by:
setCommentTags
in interfaceUnit
-
setCommentTag
- Specified by:
setCommentTag
in interfaceUnit
-
getCommentTag
- Specified by:
getCommentTag
in interfaceUnit
-
getDisplayName
- Specified by:
getDisplayName
in interfaceUnit
-
isLoaded
public boolean isLoaded() -
hasComments
public boolean hasComments()
-