Top Description Inners Fields Constructors Methods
org.freedesktop.dbus.messages

public Class ObjectTree

extends Object
Class Inheritance
Imports
org.slf4j.Logger, .LoggerFactory, java.util.regex.Pattern

Keeps track of the exported objects for introspection data

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final Logger
private ObjectTree.TreeNode
public static final Pattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized void
add(String _path, ExportedObject _object, String _data)

public String
private ObjectTree.TreeNode
recursiveAdd(ObjectTree.TreeNode _current, String _path, ExportedObject _object, String _data)

private ObjectTree.TreeNode
private String
private ObjectTree.TreeNode
public synchronized void
remove(String _path)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

loggerback to summary
private final Logger logger
rootback to summary
private ObjectTree.TreeNode root
SLASH_PATTERNback to summary
public static final Pattern SLASH_PATTERN

Constructor Detail

ObjectTreeback to summary
public ObjectTree()

Method Detail

addback to summary
public synchronized void add(String _path, ExportedObject _object, String _data)
Introspectback to summary
public String Introspect(String _path)
recursiveAddback to summary
private ObjectTree.TreeNode recursiveAdd(ObjectTree.TreeNode _current, String _path, ExportedObject _object, String _data)
recursiveFindback to summary
private ObjectTree.TreeNode recursiveFind(ObjectTree.TreeNode _current, String _path)
recursivePrintback to summary
private String recursivePrint(ObjectTree.TreeNode _current)
recursiveRemoveback to summary
private ObjectTree.TreeNode recursiveRemove(ObjectTree.TreeNode _current, String _path)
removeback to summary
public synchronized void remove(String _path)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
org.freedesktop.dbus.messages back to summary

pack-priv Class ObjectTree.TreeNode

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv ObjectTree.TreeNode
pack-priv String
pack-priv ExportedObject
pack-priv ObjectTree.TreeNode

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
TreeNode(String _name, ExportedObject _object, String _data)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databack to summary
pack-priv String data
downback to summary
pack-priv ObjectTree.TreeNode down
nameback to summary
pack-priv String name
objectback to summary
pack-priv ExportedObject object
rightback to summary
pack-priv ObjectTree.TreeNode right

Constructor Detail

TreeNodeback to summary
pack-priv TreeNode(String _name)
TreeNodeback to summary
pack-priv TreeNode(String _name, ExportedObject _object, String _data)