public class SMSFlatFileTreeNode extends Object
SMSEnhancedFlatFileObject
class holds to track the
directory structure of the data.Constructor and Description |
---|
SMSFlatFileTreeNode(String dn)
Creates a new instance of SMSFlatFileTreeNode
|
Modifier and Type | Method and Description |
---|---|
boolean |
addChild(SMSFlatFileTreeNode child)
Adds child.
|
static SMSFlatFileTreeNode |
createTree(String xml,
Debug debug)
Creates directory tree from a XML.
|
boolean |
equals(Object o)
Returns
true if this node is identical to other. |
String |
getAttributeFilename(String baseDir)
Returns the attribute file name of this node.
|
String |
getAttributeFilename(String dn,
String baseDir)
Returns the attribute file name of a node.
|
SMSFlatFileTreeNode |
getChild(String dn)
Returns the node of a given distinguished name.
|
String |
getDN()
Returns distinguished name.
|
String |
getName()
Returns name.
|
SMSFlatFileTreeNode |
getParentNode()
Returns parent node.
|
int |
hashCode()
Returns hash code.
|
boolean |
isExists(String baseDir,
String dn)
Returns
true is a node of a given dn exists. |
boolean |
removeChild(SMSFlatFileTreeNode node,
String baseDir)
Removes a child node from the tree.
|
Set |
searchChildren(NodeNameFilter filter,
boolean recursive)
Searches for nodes that matches with a given filter.
|
String |
toXML()
Returns XML String of this tree.
|
public SMSFlatFileTreeNode(String dn)
public SMSFlatFileTreeNode getParentNode()
public boolean addChild(SMSFlatFileTreeNode child)
child
- Child node.true
if child is added to the tree.SMSException
- if the dn of the child is not prefix with
this node.public boolean removeChild(SMSFlatFileTreeNode node, String baseDir)
node
- Node of to be removed.baseDir
- Base directory where data files are stored.public String getAttributeFilename(String dn, String baseDir)
dn
- Distinguished Name of the node.baseDir
- Base Directory.public String getAttributeFilename(String baseDir)
baseDir
- Base Directory.public boolean isExists(String baseDir, String dn)
true
is a node of a given dn
exists.baseDir
- Base Directory.dn
- Distinguished name of the node.true
is a node of a given dn
exists.public SMSFlatFileTreeNode getChild(String dn)
dn
- Distinguished Name of the node.public Set searchChildren(NodeNameFilter filter, boolean recursive)
filter
- Search filter.recursive
- true
to perform search recursively.SMSFlatFileTreeNode
.public String getDN()
public String getName()
public boolean equals(Object o)
true
if this node is identical to other.public int hashCode()
public String toXML()
public static SMSFlatFileTreeNode createTree(String xml, Debug debug) throws Exception
xml
- XML string.debug
- Debugger.Exception
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.