001/* 002 * Copyright (c) 2006-2012 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 * Bogdan Stefanescu 011 * Florent Guillaume 012 * Nicolas Chapurlat <nchapurlat@nuxeo.com> 013 */ 014package org.nuxeo.ecm.core.schema.types; 015 016/** 017 * Simple Type. 018 * <p> 019 * May be primitive or not (in which case it has additional constraints over a primitive type). 020 */ 021public interface SimpleType extends Type { 022 023 /** 024 * Tests whether this type is a primitive type. 025 * 026 * @return true if this type is a primitive type, false otherwise 027 */ 028 boolean isPrimitive(); 029 030 PrimitiveType getPrimitiveType(); 031 032}