public class ServerNodeType extends ServerObject implements RemoteNodeType
NodeType
interface. This class makes a local node type available as an RMI service
using the
RemoteNodeType
interface.NodeType
,
RemoteNodeType
,
Serialized Formref
Constructor and Description |
---|
ServerNodeType(NodeType type,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local node type.
|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerNodeType(NodeType type, RemoteAdapterFactory factory) throws RemoteException
type
- local node typefactory
- remote adapter factoryRemoteException
- on RMI errorspublic String getName() throws RemoteException
NodeType.getName()
method.getName
in interface RemoteNodeType
RemoteException
- on RMI errorspublic boolean isMixin() throws RemoteException
NodeType.isMixin()
method.isMixin
in interface RemoteNodeType
true
if this is a mixin type,
false
otherwiseRemoteException
- on RMI errorspublic boolean isAbstract() throws RemoteException
NodeType.isAbstract()
method.isAbstract
in interface RemoteNodeType
true
if this is an abstract type,
false
otherwiseRemoteException
- on RMI errorspublic boolean hasOrderableChildNodes() throws RemoteException
NodeType.hasOrderableChildNodes()
method.hasOrderableChildNodes
in interface RemoteNodeType
true
if nodes of this type has orderable
child nodes, false
otherwiseRemoteException
- on RMI errorspublic RemoteNodeType[] getSupertypes() throws RemoteException
NodeType.getSupertypes()
method.getSupertypes
in interface RemoteNodeType
RemoteException
- on RMI errorspublic RemoteNodeType[] getDeclaredSupertypes() throws RemoteException
NodeType.getDeclaredSupertypes()
method.getDeclaredSupertypes
in interface RemoteNodeType
RemoteException
- on RMI errorspublic boolean isNodeType(String type) throws RemoteException
NodeType.isNodeType(String)
method.isNodeType
in interface RemoteNodeType
type
- node type nametrue
if this node type is or extends the
given node type, false
otherwiseRemoteException
- on RMI errorspublic RemotePropertyDefinition[] getPropertyDefs() throws RemoteException
NodeType.getPropertyDefinitions()
method.getPropertyDefs
in interface RemoteNodeType
RemoteException
- on RMI errorspublic RemotePropertyDefinition[] getDeclaredPropertyDefs() throws RemoteException
NodeType.getDeclaredPropertyDefinitions()
method.getDeclaredPropertyDefs
in interface RemoteNodeType
RemoteException
- on RMI errorspublic RemoteNodeDefinition[] getChildNodeDefs() throws RemoteException
NodeType.getChildNodeDefinitions()
method.getChildNodeDefs
in interface RemoteNodeType
RemoteException
- on RMI errorspublic RemoteNodeDefinition[] getDeclaredChildNodeDefs() throws RemoteException
NodeType.getDeclaredChildNodeDefinitions()
method.getDeclaredChildNodeDefs
in interface RemoteNodeType
RemoteException
- on RMI errorspublic boolean canSetProperty(String name, Value value) throws RemoteException
NodeType.canSetProperty(String,Value)
method.canSetProperty
in interface RemoteNodeType
name
- property namevalue
- property valuetrue
if the property can be set,
false
otherwiseRemoteException
- on RMI errorspublic boolean canSetProperty(String name, Value[] values) throws RemoteException
NodeType.canSetProperty(String,Value[])
method.canSetProperty
in interface RemoteNodeType
name
- property namevalues
- property valuestrue
if the property can be set,
false
otherwiseRemoteException
- on RMI errorspublic boolean canAddChildNode(String name) throws RemoteException
NodeType.canAddChildNode(String)
method.canAddChildNode
in interface RemoteNodeType
name
- child node nametrue
if the child node can be added,
false
otherwiseRemoteException
- on RMI errorspublic boolean canAddChildNode(String name, String type) throws RemoteException
NodeType.canAddChildNode(String,String)
method.canAddChildNode
in interface RemoteNodeType
name
- child node nametype
- child node typetrue
if the child node can be added,
false
otherwiseRemoteException
- on RMI errorspublic boolean canRemoveItem(String name) throws RemoteException
NodeType.canRemoveItem(String)
method.canRemoveItem
in interface RemoteNodeType
name
- item nametrue
if the item can be removed,
false
otherwiseRemoteException
- on RMI errorspublic String getPrimaryItemName() throws RemoteException
NodeType.getPrimaryItemName()
method.getPrimaryItemName
in interface RemoteNodeType
RemoteException
- on RMI errorspublic boolean canRemoveNode(String nodeName)
NodeType.canRemoveNode()
method.canRemoveNode
in interface RemoteNodeType
public boolean canRemoveProperty(String propertyName)
NodeType.canRemoveProperty()
method.canRemoveProperty
in interface RemoteNodeType
public String[] getDeclaredSupertypeNames()
NodeType.getDeclaredSupertypeNames()
method.getDeclaredSupertypeNames
in interface RemoteNodeType
public boolean isQueryable()
NodeType.isQueryable()
method.isQueryable
in interface RemoteNodeType
public RemoteIterator getDeclaredSubtypes() throws RemoteException
NodeType.getDeclaredSubtypes()
method.getDeclaredSubtypes
in interface RemoteNodeType
RemoteException
- on RMI errorspublic RemoteIterator getSubtypes() throws RemoteException
NodeType.getSubtypes()
method.getSubtypes
in interface RemoteNodeType
RemoteException
- on RMI errorsCopyright © 2004–2023 The Apache Software Foundation. All rights reserved.