EffectiveNodeTypeImpl( NodeTypeImpl primary, NodeTypeImpl[] mixins, ReadOnlyNodeTypeManager ntMgr) { this.ntMgr = ntMgr; addNodeType(checkNotNull(primary)); for (NodeTypeImpl mixin : checkNotNull(mixins)) { addNodeType(mixin); } if (!nodeTypes.containsKey(NT_BASE)) { try { nodeTypes.put( NT_BASE, (NodeTypeImpl) ntMgr.getNodeType(NT_BASE)); // FIXME } catch (RepositoryException e) { // TODO: ignore/warning/error? } } }
private void addNodeType(NodeTypeImpl type) { String name = type.getName(); if (!nodeTypes.containsKey(name)) { nodeTypes.put(name, type); NodeType[] supertypes = type.getDeclaredSupertypes(); for (NodeType supertype : supertypes) { addNodeType((NodeTypeImpl) supertype); // FIXME } } }
private void addNodeType(NodeTypeImpl type) { String name = type.getName(); if (!nodeTypes.containsKey(name)) { nodeTypes.put(name, type); NodeType[] supertypes = type.getDeclaredSupertypes(); for (NodeType supertype : supertypes) { addNodeType((NodeTypeImpl) supertype); // FIXME } } }
private void addNodeType(NodeTypeImpl type) { String name = type.getName(); if (!nodeTypes.containsKey(name)) { nodeTypes.put(name, type); NodeType[] supertypes = type.getDeclaredSupertypes(); for (NodeType supertype : supertypes) { addNodeType((NodeTypeImpl) supertype); // FIXME } } }
EffectiveNodeTypeImpl( NodeTypeImpl primary, NodeTypeImpl[] mixins, ReadOnlyNodeTypeManager ntMgr) { this.ntMgr = ntMgr; this.valueFactory = new PartialValueFactory(ntMgr.getNamePathMapper()); addNodeType(checkNotNull(primary)); for (NodeTypeImpl mixin : checkNotNull(mixins)) { addNodeType(mixin); } if (!nodeTypes.containsKey(NT_BASE)) { try { nodeTypes.put( NT_BASE, (NodeTypeImpl) ntMgr.getNodeType(NT_BASE)); // FIXME } catch (RepositoryException e) { // TODO: ignore/warning/error? } } }
EffectiveNodeTypeImpl( NodeTypeImpl primary, NodeTypeImpl[] mixins, ReadOnlyNodeTypeManager ntMgr) { this.ntMgr = ntMgr; this.valueFactory = new PartialValueFactory(ntMgr.getNamePathMapper()); addNodeType(checkNotNull(primary)); for (NodeTypeImpl mixin : checkNotNull(mixins)) { addNodeType(mixin); } if (!nodeTypes.containsKey(NT_BASE)) { try { nodeTypes.put( NT_BASE, (NodeTypeImpl) ntMgr.getNodeType(NT_BASE)); // FIXME } catch (RepositoryException e) { // TODO: ignore/warning/error? } } }