public class ClientObject extends Object
Modifier | Constructor and Description |
---|---|
protected |
ClientObject(LocalAdapterFactory factory)
Creates a basic client adapter that uses the given factory
to create new adapters.
|
Modifier and Type | Method and Description |
---|---|
protected LocalAdapterFactory |
getFactory()
Returns the local adapter factory used to create new adapters.
|
protected Item |
getItem(Session session,
RemoteItem remote)
Utility method to create a local adapter for a remote item.
|
protected Node |
getNode(Session session,
RemoteNode remote)
Utility method to create a local adapter for a remote node.
|
protected NodeType[] |
getNodeTypeArray(RemoteNodeType[] remotes)
Utility method for creating an array of local node type adapters
for an array of remote node types.
|
protected ClientObject(LocalAdapterFactory factory)
factory
- local adapter factoryprotected LocalAdapterFactory getFactory()
protected Item getItem(Session session, RemoteItem remote)
Property
,
a Node
, or an Item
adapter using
the local adapter factory.
If the remote item is a RemoteNode
, this method delegates
to getNode(Session, RemoteNode)
.
session
- current sessionremote
- remote itemprotected Node getNode(Session session, RemoteNode remote)
Node
,
a VersionHistory
, or a
Version
adapter using
the local adapter factory.session
- current sessionremote
- remote nodeprotected NodeType[] getNodeTypeArray(RemoteNodeType[] remotes)
A null
input is treated as an empty array.
remotes
- remote node typesCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.