public class ClientNodeType extends ClientObject implements NodeType
RemoteNodeType
interface. This class makes a remote node type locally available using
the JCR NodeType interface.NodeType,
RemoteNodeTypeMIX_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.
|
getFactory, getItem, getNode, getNodeTypeArraypublic ClientNodeType(RemoteNodeType remote, LocalAdapterFactory factory)
remote - remote node typefactory - local adapter factoryprotected PropertyDefinition[] getPropertyDefArray(RemotePropertyDefinition[] remotes)
A null input is treated as an empty array.
remotes - remote property definitionspublic String getName()
getName in interface NodeTypeDefinitionpublic boolean isMixin()
isMixin in interface NodeTypeDefinitionpublic boolean hasOrderableChildNodes()
hasOrderableChildNodes in interface NodeTypeDefinitionpublic NodeType[] getSupertypes()
getSupertypes in interface NodeTypepublic NodeType[] getDeclaredSupertypes()
getDeclaredSupertypes in interface NodeTypepublic boolean isNodeType(String type)
isNodeType in interface NodeTypepublic PropertyDefinition[] getPropertyDefinitions()
getPropertyDefinitions in interface NodeTypepublic PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions in interface NodeTypeDefinitionpublic NodeDefinition[] getChildNodeDefinitions()
getChildNodeDefinitions in interface NodeTypepublic NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions in interface NodeTypeDefinitionpublic boolean canSetProperty(String name, Value value)
canSetProperty in interface NodeTypepublic boolean canSetProperty(String name, Value[] values)
canSetProperty in interface NodeTypepublic boolean canAddChildNode(String name)
canAddChildNode in interface NodeTypepublic boolean canAddChildNode(String name, String type)
canAddChildNode in interface NodeTypepublic boolean canRemoveItem(String name)
canRemoveItem in interface NodeTypepublic String getPrimaryItemName()
getPrimaryItemName in interface NodeTypeDefinitionpublic boolean canRemoveNode(String nodeName)
canRemoveNode in interface NodeTypepublic boolean canRemoveProperty(String propertyName)
canRemoveProperty in interface NodeTypepublic NodeTypeIterator getDeclaredSubtypes()
getDeclaredSubtypes in interface NodeTypepublic NodeTypeIterator getSubtypes()
getSubtypes in interface NodeTypepublic String[] getDeclaredSupertypeNames()
getDeclaredSupertypeNames in interface NodeTypeDefinitionpublic boolean isAbstract()
isAbstract in interface NodeTypeDefinitionpublic boolean isQueryable()
isQueryable in interface NodeTypeDefinitionCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.