Package org.silverpeas.core.node.model
Class NodePath
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- org.silverpeas.core.util.ContributionPath<NodeDetail>
-
- org.silverpeas.core.node.model.NodePath
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<NodeDetail>
,Collection<NodeDetail>
,List<NodeDetail>
,RandomAccess
,ResourcePath<NodeDetail>
- Direct Known Subclasses:
PublicationPath
public class NodePath extends ContributionPath<NodeDetail>
List ofNodeDetail
which represents a path.- Author:
- silveryocha
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.silverpeas.core.util.ResourcePath
ResourcePath.Constants
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.util.ContributionPath
lastPathByLanguage
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description NodePath()
NodePath(int initialCapacity)
NodePath(Collection<? extends NodeDetail> c)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getLabel(NodeDetail node, String language)
static NodePath
getPath(ContributionIdentifier nodeId)
Gets the path of the specified node.protected boolean
isRoot(NodeDetail node)
protected boolean
rootIsComponentInstance()
-
Methods inherited from class org.silverpeas.core.util.ContributionPath
equals, format, hashCode
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Methods inherited from interface org.silverpeas.core.util.ResourcePath
format, format
-
-
-
-
Constructor Detail
-
NodePath
public NodePath()
-
NodePath
public NodePath(int initialCapacity)
-
NodePath
public NodePath(Collection<? extends NodeDetail> c)
-
-
Method Detail
-
getPath
public static NodePath getPath(ContributionIdentifier nodeId)
Gets the path of the specified node.- Parameters:
nodeId
- the unique identifier of the node.- Returns:
- a
NodePath
instance.
-
isRoot
protected boolean isRoot(NodeDetail node)
- Specified by:
isRoot
in classContributionPath<NodeDetail>
-
rootIsComponentInstance
protected boolean rootIsComponentInstance()
- Overrides:
rootIsComponentInstance
in classContributionPath<NodeDetail>
-
getLabel
protected String getLabel(NodeDetail node, String language)
- Specified by:
getLabel
in classContributionPath<NodeDetail>
-
-