/*$************************************************************************************************
 **
 ** $Id: ValueInBytePacking.java 831 2006-05-01 00:27:23Z Desruisseaux $
 **
 ** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/coverage/grid/ValueInBytePacking.java $
 **
 ** Copyright (C) 2003-2005 Open GIS Consortium, Inc.
 ** All Rights Reserved. http://www.opengis.org/legal/
 **
 *************************************************************************************************/
package org.opengis.coverage.grid;

// J2SE directdependencies
import java.util.List;
import java.util.ArrayList;

//OpenGIS direct dependencies
import org.opengis.util.CodeList;
import org.opengis.coverage.SampleDimensionType; // For Javadoc

// Annotations
import org.opengis.annotation.UML;
import static org.opengis.annotation.Obligation.*;
import static org.opengis.annotation.Specification.*;


/**
 * Order of values packed in a byte for sample dimensions with less than 8 bits.
 * This include
 * {@link SampleDimensionType#UNSIGNED_1BIT UNSIGNED_1BIT},
 * {@link SampleDimensionType#UNSIGNED_2BITS UNSIGNED_2BITS} and
 * {@link SampleDimensionType#UNSIGNED_4BITS UNSIGNED_4BITS} data types.
 *
 * 

 

* * *
*

WARNING: THIS CLASS WILL CHANGE. Current API is derived from OGC * Grid Coverages Implementation specification 1.0. * We plan to replace it by new interfaces derived from ISO 19123 (Schema for coverage geometry * and functions). Current interfaces should be considered as legacy and are included in this * distribution only because they were part of GeoAPI 1.0 release. We will try to preserve as much * compatibility as possible, but no migration plan has been determined yet.

*
* * @version Grid Coverage specification 1.0 * @author Martin Desruisseaux (IRD) * @since GeoAPI 1.0 * * @see GridPacking * @see ByteInValuePacking */ @UML(identifier="GC_ValueInBytePacking", specification=OGC_01004) public final class ValueInBytePacking extends CodeList { /** * Serial number for compatibility with different versions. */ private static final long serialVersionUID = 6895036289489868770L; /** * List of all enumerations of this type. * Must be declared before any enum declaration. */ private static final List VALUES = new ArrayList(2); /** * Low bit firts (little endian order). */ @UML(identifier="GC_LoBitFirst", obligation=CONDITIONAL, specification=OGC_01004) public static final ValueInBytePacking LO_BIT_FIRST = new ValueInBytePacking("LO_BIT_FIRST"); /** * High bit first (big endian order). */ @UML(identifier="GC_HiBitFirst", obligation=CONDITIONAL, specification=OGC_01004) public static final ValueInBytePacking HI_BIT_FIRST = new ValueInBytePacking("HI_BIT_FIRST"); /** * Constructs an enum with the given name. The new enum is * automatically added to the list returned by {@link #values}. * * @param name The enum name. This name must not be in use by an other enum of this type. */ public ValueInBytePacking(final String name) { super(name, VALUES); } /** * Returns the list of {@code ValueInBytePacking}s. */ public static ValueInBytePacking[] values() { synchronized (VALUES) { return (ValueInBytePacking[]) VALUES.toArray(new ValueInBytePacking[VALUES.size()]); } } /** * Returns the list of enumerations of the same kind than this enum. */ public /*{ValueInBytePacking}*/ CodeList[] family() { return values(); } }

Ads help maintain this website.