001: /*
002: * (c) Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
003: * All rights reserved.
004: *
005: * Redistribution and use in source and binary forms, with or without
006: * modification, are permitted provided that the following conditions
007: * are met:
008: * 1. Redistributions of source code must retain the above copyright
009: * notice, this list of conditions and the following disclaimer.
010: * 2. Redistributions in binary form must reproduce the above copyright
011: * notice, this list of conditions and the following disclaimer in the
012: * documentation and/or other materials provided with the distribution.
013: * 3. The name of the author may not be used to endorse or promote products
014: * derived from this software without specific prior written permission.
015:
016: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
017: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
018: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
019: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
020: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
021: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
022: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
023: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
024: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
025: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
026:
027: * * $Id: LanguageTagCodes.java,v 1.6 2008/01/02 12:10:06 andy_seaborne Exp $
028:
029: AUTHOR: Jeremy J. Carroll
030: */
031: /*
032: * LanguageTagCodes.java
033: *
034: * Created on July 25, 2001, 10:09 AM
035: */
036:
037: package com.hp.hpl.jena.rdf.arp.lang;
038:
039: /** Informational values about language codes.
040: * Values to be OR-ed together.
041: *
042: * @author jjc
043: */
044: public interface LanguageTagCodes {
045:
046: /** The special tag <CODE>i-default</CODE>.
047: */
048: public static final int LT_DEFAULT = 0x0100;
049:
050: /** A tag with non-standard extra subtags.
051: * Set for langauge tags with
052: * additional subtags over their
053: * IANA registration, or a third subtag
054: * for unregistered tags of the form
055: * ISO639Code-ISO3166Code.
056: */
057: public static final int LT_EXTRA = 0x0080;
058:
059: /** A tag in the IANA registry.
060: */
061: public static final int LT_IANA = 0x1024;
062:
063: /** An illegal tag.
064: * Some rule of RFC3066 failed, or
065: * the tag is not in IANA, or ISO639 or ISO3166.
066: */
067: public static final int LT_ILLEGAL = 0x8000;
068:
069: /** The second subtag is from ISO3166 and identifies
070: * a country.
071: */
072: public static final int LT_ISO3166 = 0x0010;
073:
074: /** The first subtag is from ISO639-1 or ISO639-2
075: * and identifies a language,
076: */
077: public static final int LT_ISO639 = 0x0001;
078:
079: /** A special ISO639-2 local use language tag.
080: * A three letter code 'q[a-t][a-z]'.
081: */
082: public static final int LT_LOCAL_USE = 0x0800;
083:
084: /** The special ISO639-2 language tag <CODE>mul</CODE>.
085: * This indicates multiple langauges.
086: */
087: public static final int LT_MULTIPLE = 0x0400;
088:
089: /** An RFC3066 private use tag.
090: * A language tag of the form <CODE>x-????</CODE>.
091: */
092: public static final int LT_PRIVATE_USE = 0x0002;
093:
094: /** The undetermined ISO639-2 lanaguge <CODE>und</CODE>.
095: */
096: public static final int LT_UNDETERMINED = 0x0200;
097:
098: /** A langauge tag that is deprecated in the IANA registry.
099: */
100: public static final int LT_IANA_DEPRECATED = 0x2000;
101:
102: }
|