/** {@inheritDoc} */ public VirtualPropertyState createPropertyState( VirtualNodeState parent, Name name, int type, boolean multiValued) throws RepositoryException { PropertyId id = new PropertyId(parent.getNodeId(), name); VirtualPropertyState prop = new VirtualPropertyState(id); prop.setType(type); prop.setMultiValued(multiValued); return prop; }
/** {@inheritDoc} */ public VirtualNodeState createNodeState( VirtualNodeState parent, Name name, NodeId id, Name nodeTypeName) throws RepositoryException { assert id != null; // create a new node state VirtualNodeState state = new VirtualNodeState(this, parent.getNodeId(), id, nodeTypeName, Name.EMPTY_ARRAY); cache(state); return state; }