/* * Copyright (c) 2006-2012 Nuxeo SA (http://nuxeo.com/) and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Bogdan Stefanescu * Florent Guillaume */ package org.nuxeo.ecm.core.schema.types; /** * A marker interface for schemas. * <p> * A schema is a complex type that can be used used to create composite types - * such as document types. * <p> * Schemas have no super types and must not be used as field types. */ public interface Schema extends ComplexType { /** * Gets the types declared by this schema. */ Type[] getTypes(); /** * Gets a schema local type given its name. * * @param typeName * @return the type or null if no such type */ Type getType(String typeName); /** * Registers a new type in that schema context. * * @param type */ void registerType(Type type); }