/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2011, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotools.feature.type;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.opengis.feature.type.AttributeType;
import org.opengis.feature.type.Name;
import org.opengis.filter.Filter;
import org.opengis.util.InternationalString;
/**
* A replacement for {@link AttributeTypeImpl} with lazy evaluation of super type, so types can be
* defined in any order. Note that type equality is defined by name, so do not allow different types
* with the same name to be put in any Collection.
*
*
*
* Inspired by {@link AttributeTypeImpl} and {@link PropertyTypeImpl}.
*
* @author Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
* @see AttributeTypeImpl
* @see PropertyTypeImpl
*
* @source $URL$
*/
public abstract class AbstractLazyAttributeTypeImpl implements AttributeType {
private final Name name;
private final Class> binding;
private final boolean identified;
private final boolean isAbstract;
private final List restrictions;
private final InternationalString description;
private final Map