public class ClientNodeType extends ClientObject implements javax.jcr.nodetype.NodeType
RemoteNodeType
interface. This class makes a remote node type locally available using
the JCR NodeType
interface.NodeType
,
RemoteNodeType
MIX_CREATED, MIX_LANGUAGE, MIX_LAST_MODIFIED, MIX_LIFECYCLE, MIX_LOCKABLE, MIX_MIMETYPE, MIX_REFERENCEABLE, MIX_SHAREABLE, MIX_SIMPLE_VERSIONABLE, MIX_TITLE, MIX_VERSIONABLE, NT_ACTIVITY, NT_ADDRESS, NT_BASE, NT_CHILD_NODE_DEFINITION, NT_CONFIGURATION, NT_FILE, NT_FOLDER, NT_FROZEN_NODE, NT_HIERARCHY_NODE, NT_LINKED_FILE, NT_NODE_TYPE, NT_PROPERTY_DEFINITION, NT_QUERY, NT_RESOURCE, NT_UNSTRUCTURED, NT_VERSION, NT_VERSION_HISTORY, NT_VERSIONED_CHILD
Constructor and Description |
---|
ClientNodeType(RemoteNodeType remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote node type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAddChildNode(String name) |
boolean |
canAddChildNode(String name,
String type) |
boolean |
canRemoveItem(String name) |
boolean |
canRemoveNode(String nodeName) |
boolean |
canRemoveProperty(String propertyName) |
boolean |
canSetProperty(String name,
javax.jcr.Value value) |
boolean |
canSetProperty(String name,
javax.jcr.Value[] values) |
javax.jcr.nodetype.NodeDefinition[] |
getChildNodeDefinitions() |
javax.jcr.nodetype.NodeDefinition[] |
getDeclaredChildNodeDefinitions() |
javax.jcr.nodetype.PropertyDefinition[] |
getDeclaredPropertyDefinitions() |
javax.jcr.nodetype.NodeTypeIterator |
getDeclaredSubtypes() |
String[] |
getDeclaredSupertypeNames() |
javax.jcr.nodetype.NodeType[] |
getDeclaredSupertypes() |
String |
getName() |
String |
getPrimaryItemName() |
protected javax.jcr.nodetype.PropertyDefinition[] |
getPropertyDefArray(RemotePropertyDefinition[] remotes)
Utility method for creating an array of local property definition
adapters for an array of remote property definitions.
|
javax.jcr.nodetype.PropertyDefinition[] |
getPropertyDefinitions() |
javax.jcr.nodetype.NodeTypeIterator |
getSubtypes() |
javax.jcr.nodetype.NodeType[] |
getSupertypes() |
boolean |
hasOrderableChildNodes() |
boolean |
isAbstract() |
boolean |
isMixin() |
boolean |
isNodeType(String type) |
boolean |
isQueryable() |
getFactory, getItem, getNode, getNodeTypeArray
public ClientNodeType(RemoteNodeType remote, LocalAdapterFactory factory)
remote
- remote node typefactory
- local adapter factoryprotected javax.jcr.nodetype.PropertyDefinition[] getPropertyDefArray(RemotePropertyDefinition[] remotes)
A null
input is treated as an empty array.
remotes
- remote property definitionspublic String getName()
getName
in interface javax.jcr.nodetype.NodeTypeDefinition
public boolean isMixin()
isMixin
in interface javax.jcr.nodetype.NodeTypeDefinition
public boolean hasOrderableChildNodes()
hasOrderableChildNodes
in interface javax.jcr.nodetype.NodeTypeDefinition
public javax.jcr.nodetype.NodeType[] getSupertypes()
getSupertypes
in interface javax.jcr.nodetype.NodeType
public javax.jcr.nodetype.NodeType[] getDeclaredSupertypes()
getDeclaredSupertypes
in interface javax.jcr.nodetype.NodeType
public boolean isNodeType(String type)
isNodeType
in interface javax.jcr.nodetype.NodeType
public javax.jcr.nodetype.PropertyDefinition[] getPropertyDefinitions()
getPropertyDefinitions
in interface javax.jcr.nodetype.NodeType
public javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions
in interface javax.jcr.nodetype.NodeTypeDefinition
public javax.jcr.nodetype.NodeDefinition[] getChildNodeDefinitions()
getChildNodeDefinitions
in interface javax.jcr.nodetype.NodeType
public javax.jcr.nodetype.NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions
in interface javax.jcr.nodetype.NodeTypeDefinition
public boolean canSetProperty(String name, javax.jcr.Value value)
canSetProperty
in interface javax.jcr.nodetype.NodeType
public boolean canSetProperty(String name, javax.jcr.Value[] values)
canSetProperty
in interface javax.jcr.nodetype.NodeType
public boolean canAddChildNode(String name)
canAddChildNode
in interface javax.jcr.nodetype.NodeType
public boolean canAddChildNode(String name, String type)
canAddChildNode
in interface javax.jcr.nodetype.NodeType
public boolean canRemoveItem(String name)
canRemoveItem
in interface javax.jcr.nodetype.NodeType
public String getPrimaryItemName()
getPrimaryItemName
in interface javax.jcr.nodetype.NodeTypeDefinition
public boolean canRemoveNode(String nodeName)
canRemoveNode
in interface javax.jcr.nodetype.NodeType
public boolean canRemoveProperty(String propertyName)
canRemoveProperty
in interface javax.jcr.nodetype.NodeType
public javax.jcr.nodetype.NodeTypeIterator getDeclaredSubtypes()
getDeclaredSubtypes
in interface javax.jcr.nodetype.NodeType
public javax.jcr.nodetype.NodeTypeIterator getSubtypes()
getSubtypes
in interface javax.jcr.nodetype.NodeType
public String[] getDeclaredSupertypeNames()
getDeclaredSupertypeNames
in interface javax.jcr.nodetype.NodeTypeDefinition
public boolean isAbstract()
isAbstract
in interface javax.jcr.nodetype.NodeTypeDefinition
public boolean isQueryable()
isQueryable
in interface javax.jcr.nodetype.NodeTypeDefinition
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.