code: public NodeTypeIterator getAllNodeTypes()
     {
        EntityCollection ec = new EntityCollection();
        List<NodeTypeData> allNts = typesManager.getAllNodeTypes();
  
        for (NodeTypeData ntdata : allNts)
        {
           ec.add(new NodeTypeImpl(ntdata, typesManager, this, locationFactory, valueFactory, dataManager));
        }
        return ec;
     }
docs: {@inheritDoc}