public class BasicNode extends DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
BasicNode(org.forgerock.opendj.ldap.Dn dn)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Returns the label that will be used to display the entry.
|
org.forgerock.opendj.ldap.Dn |
getDN()
Returns the DN of the local entry.
|
BasicNodeError |
getError()
Returns the error that occurred when updating the node.
|
int |
getFontStyle()
Returns the font style to be used to render this node.
|
Icon |
getIcon()
Returns the icon associated with this node.
|
int |
getNumSubOrdinates()
Returns the number of subordinates of the entry.
|
String[] |
getObjectClassValues()
Returns the object class values associated with the entry.
|
String |
getRDN()
Returns the RDN value of the local entry.
|
String |
getRDNWithAttributeName()
Returns the RDN (with the attribute name) of the local entry.
|
String[] |
getReferral()
Returns the referrals of the entry.
|
String |
getRemoteRDN()
Returns the RDN value of the remote entry.
|
String |
getRemoteRDNWithAttributeName()
Returns the RDN value of the remote entry (with the name of the attribute).
|
LDAPURL |
getRemoteUrl()
Returns the URL of the remote entry (if the node does not represent a
referral it will be
null ). |
boolean |
hasSubOrdinates()
Returns whether the entry has subordinates or not.
|
boolean |
isLeaf()
Returns
true if the node is a leaf and false
otherwise. |
boolean |
isObsolete()
Returns whether the node is obsolete (and must be refreshed) or not.
|
boolean |
isRefreshNeededOnExpansion()
Returns
true if the node must be refreshed when it is expanded
and false otherwise. |
boolean |
isSizeLimitReached()
Returns
true if the size limit was reached updating this node
(and searching its children) and false otherwise. |
void |
setDisplayName(String name)
Sets the label that will be used to display the entry.
|
void |
setError(BasicNodeError error)
Sets the error that occurred when updating the node.
|
void |
setFontStyle(int style)
Sets the font style to be used to render this node.
|
void |
setHasSubOrdinates(boolean hasSubOrdinates)
Sets the whether the entry has subordinates or not.
|
void |
setIcon(Icon icon)
Sets the icon associated with this node.
|
void |
setLeaf(boolean isLeaf)
Sets whether the node is a leaf or not.
|
void |
setNumSubOrdinates(int number)
Sets the number of subordinates of the entry.
|
void |
setObjectClassValues(String[] objectClassValues)
Sets the object class values associated with the entry.
|
void |
setObsolete(boolean obsolete)
Sets whether this is node is obsolete (and must be refreshed) or not.
|
void |
setReferral(String[] referral)
Sets the referrals of the entry.
|
void |
setRefreshNeededOnExpansion(boolean refreshNeededOnExpansion)
Sets whether the node must be refreshed when it is expanded or not.
|
void |
setRemoteUrl(LDAPURL url)
Sets the remote URL of the node.
|
void |
setRemoteUrl(String url)
Sets the remote URL of the node.
|
void |
setSizeLimitReached(boolean sizeLimitReached)
Sets whether the size limit was reached updating this node
(and searching its children).
|
String |
toString() |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
public BasicNode(org.forgerock.opendj.ldap.Dn dn)
dn
- the DN of the entry.public org.forgerock.opendj.ldap.Dn getDN()
public String getRDN()
public String getRDNWithAttributeName()
public LDAPURL getRemoteUrl()
null
).null
).public void setRemoteUrl(LDAPURL url)
url
- the remote URL of the node.public void setRemoteUrl(String url)
url
- the remote URL of the node.public String getRemoteRDN()
null
.public String getRemoteRDNWithAttributeName()
null
.public void setLeaf(boolean isLeaf)
isLeaf
- whether the node is a leaf or not.public boolean isLeaf()
true
if the node is a leaf and false
otherwise.isLeaf
in interface TreeNode
isLeaf
in class DefaultMutableTreeNode
true
if the node is a leaf and false
otherwise.public boolean isRefreshNeededOnExpansion()
true
if the node must be refreshed when it is expanded
and false
otherwise.true
if the node must be refreshed when it is expanded
and false
otherwise.public void setRefreshNeededOnExpansion(boolean refreshNeededOnExpansion)
refreshNeededOnExpansion
- whether the node must be refreshed when it
is expanded or not.public boolean isObsolete()
true
if the node is obsolete and false
otherwise.public void setObsolete(boolean obsolete)
obsolete
- whether this is node is obsolete (and must be refreshed) or
not.public BasicNodeError getError()
null
if no error occurred.null
if no error occurred.public void setError(BasicNodeError error)
error
- the error.public int getNumSubOrdinates()
public void setNumSubOrdinates(int number)
number
- the number of subordinates of the entry.public boolean hasSubOrdinates()
true
if the entry has subordinates and false
otherwise.public void setHasSubOrdinates(boolean hasSubOrdinates)
hasSubOrdinates
- whether the entry has subordinates or not.public String[] getReferral()
null
if this node
is not a referral.null
if this node
is not a referral.public void setReferral(String[] referral)
referral
- the referrals of the entry.public String toString()
toString
in class DefaultMutableTreeNode
public String getDisplayName()
public void setDisplayName(String name)
name
- the label that will be used to display the entry.public Icon getIcon()
public void setIcon(Icon icon)
icon
- the icon associated with this node.public int getFontStyle()
public void setFontStyle(int style)
style
- the font style to be used to render this node.public String[] getObjectClassValues()
public void setObjectClassValues(String[] objectClassValues)
objectClassValues
- the object class values associated with the entry.public boolean isSizeLimitReached()
true
if the size limit was reached updating this node
(and searching its children) and false
otherwise.true
if the size limit was reached updating this node
(and searching its children) and false
otherwise.public void setSizeLimitReached(boolean sizeLimitReached)
sizeLimitReached
- whether the size limit was reached updating this
node (and searching its children).Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.