code: /*
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements. See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership. The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the  "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  /*
   * $Id$
   */
  package org.apache.xml.res;
  
  
  /**
   * Set up error messages.
   * We build a two dimensional array of message keys and
   * message strings. In order to add a new message here,
   * you need to first add a String constant. And you need
   * to enter key, value pair as part of the contents
   * array. You also need to update MAX_CODE for error strings
   * and MAX_WARNING for warnings ( Needed for only information
   * purpose )
   */
  public class XMLErrorResources_sv extends XMLErrorResources
  {
  
    /** Maximum error messages, this is needed to keep track of the number of messages.    */
    public static final int MAX_CODE = 61;
  
    /** Maximum warnings, this is needed to keep track of the number of warnings.          */
    public static final int MAX_WARNING = 0;
  
    /** Maximum misc strings.   */
    public static final int MAX_OTHERS = 4;
  
    /** Maximum total warnings and error messages.          */
    public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
  
    
    // Error messages...
  
    /**
     * Get the lookup table for error messages
     *
     * @return The association list.
     */
    public Object[][] getContents()
    {
      return new Object[][] {
  
    /** Error message ID that has a null message, but takes in a single object.    */
      {"ER0000" , "{0}" },
  
    /** ER_FUNCTION_NOT_SUPPORTED          */
    //public static final int ER_FUNCTION_NOT_SUPPORTED = 80;
  
  
    {
      ER_FUNCTION_NOT_SUPPORTED, "Funktion inte underst\u00f6dd:"},
  
    
    /** Can't overwrite cause         */
    //public static final int ER_CANNOT_OVERWRITE_CAUSE = 115;
  
  
    {
      ER_CANNOT_OVERWRITE_CAUSE,
  			"Kan inte skriva \u00f6ver orsak"},
  
    
     /**  No default implementation found */
    //public static final int ER_NO_DEFAULT_IMPL = 156;
  
  
    {
      ER_NO_DEFAULT_IMPL,
           "Standardimplementering saknas i:"},
  
    
     /**  ChunkedIntArray({0}) not currently supported */
    //public static final int ER_CHUNKEDINTARRAY_NOT_SUPPORTED = 157;
  
  
    {
      ER_CHUNKEDINTARRAY_NOT_SUPPORTED,
         "ChunkedIntArray({0}) underst\u00f6ds f\u00f6r n\u00e4rvarande inte"},
  
    
     /**  Offset bigger than slot */
    //public static final int ER_OFFSET_BIGGER_THAN_SLOT = 158;
  
  
    {
      ER_OFFSET_BIGGER_THAN_SLOT,
         "Offset st\u00f6rre \u00e4n fack"},
  
    
     /**  Coroutine not available, id= */
    //public static final int ER_COROUTINE_NOT_AVAIL = 159;
  
  
    {
      ER_COROUTINE_NOT_AVAIL,
         "Sidorutin inte tillg\u00e4nglig, id={0}"},
  
    
     /**  CoroutineManager recieved co_exit() request */
    //public static final int ER_COROUTINE_CO_EXIT = 160;
  
  
    {
      ER_COROUTINE_CO_EXIT,
         "CoroutineManager mottog co_exit()-f\u00f6rfr\u00e5gan"},
  
    
     /**  co_joinCoroutineSet() failed */
    //public static final int ER_COJOINROUTINESET_FAILED = 161;
  
  
    {
      ER_COJOINROUTINESET_FAILED,
         "co_joinCoroutineSet() misslyckades"},
  
    
     /**  Coroutine parameter error () */
    //public static final int ER_COROUTINE_PARAM = 162;
  
  
    {
      ER_COROUTINE_PARAM,
         "Sidorutin fick parameterfel ({0})"},
  
    
     /**  UNEXPECTED: Parser doTerminate answers  */
    //public static final int ER_PARSER_DOTERMINATE_ANSWERS = 163;
  
  
    {
      ER_PARSER_DOTERMINATE_ANSWERS,
         "\nOV\u00c4NTAT: Parser doTerminate-svar {0}"},
  
    
     /**  parse may not be called while parsing */
    //public static final int ER_NO_PARSE_CALL_WHILE_PARSING = 164;
  
  
    {
      ER_NO_PARSE_CALL_WHILE_PARSING,
         "parse f\u00e5r inte anropas medan tolkning sker"},
  
    
     /**  Error: typed iterator for axis  {0} not implemented  */
    //public static final int ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = 165;
  
  
    {
      ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,
         "Fel: typad upprepare f\u00f6r axel {0} inte implementerad"},
  
    
     /**  Error: iterator for axis {0} not implemented  */
    //public static final int ER_ITERATOR_AXIS_NOT_IMPLEMENTED = 166;
  
  
    {
      ER_ITERATOR_AXIS_NOT_IMPLEMENTED,
         "Fel: upprepare f\u00f6r axel {0} inte implementerad"},
  
    
     /**  Iterator clone not supported  */
    //public static final int ER_ITERATOR_CLONE_NOT_SUPPORTED = 167;
  
  
    {
      ER_ITERATOR_CLONE_NOT_SUPPORTED,
         "Uppreparklon underst\u00f6ds inte"},
  
    
     /**  Unknown axis traversal type  */
    //public static final int ER_UNKNOWN_AXIS_TYPE = 168;
  
  
    {
      ER_UNKNOWN_AXIS_TYPE,
         "Ok\u00e4nd axeltraverstyp: {0}"},
  
    
     /**  Axis traverser not supported  */
    //public static final int ER_AXIS_NOT_SUPPORTED = 169;
  
  
    {
      ER_AXIS_NOT_SUPPORTED,
         "Axeltravers underst\u00f6ds inte: {0}"},
  
    
     /**  No more DTM IDs are available  */
    //public static final int ER_NO_DTMIDS_AVAIL = 170;
  
  
    {
      ER_NO_DTMIDS_AVAIL,
         "Inga fler DTM-IDs \u00e4r tillg\u00e4ngliga"},
  
    
     /**  Not supported  */
    //public static final int ER_NOT_SUPPORTED = 171;
  
  
    {
      ER_NOT_SUPPORTED,
         "Underst\u00f6ds inte: {0}"},
  
    
     /**  node must be non-null for getDTMHandleFromNode  */
    //public static final int ER_NODE_NON_NULL = 172;
  
  
    {
      ER_NODE_NON_NULL,
         "Nod m\u00e5ste vara icke-null f\u00f6r getDTMHandleFromNode"},
  
    
     /**  Could not resolve the node to a handle  */
    //public static final int ER_COULD_NOT_RESOLVE_NODE = 173;
  
  
    {
      ER_COULD_NOT_RESOLVE_NODE,
         "Kunde inte l\u00f6sa nod till ett handtag"},
  
    
     /**  startParse may not be called while parsing */
    //public static final int ER_STARTPARSE_WHILE_PARSING = 174;
  
  
    {
      ER_STARTPARSE_WHILE_PARSING,
         "startParse f\u00e5r inte anropas medan tolkning sker"},
  
    
     /**  startParse needs a non-null SAXParser  */
    //public static final int ER_STARTPARSE_NEEDS_SAXPARSER = 175;
  
  
    {
      ER_STARTPARSE_NEEDS_SAXPARSER,
         "startParse beh\u00f6ver en SAXParser som \u00e4r icke-null"},
  
    
     /**  could not initialize parser with */
    //public static final int ER_COULD_NOT_INIT_PARSER = 176;
  
  
    {
      ER_COULD_NOT_INIT_PARSER,
         "kunde inte initialisera tolk med"},
  
    
     /**  exception creating new instance for pool  */
    //public static final int ER_EXCEPTION_CREATING_POOL = 178;
  
  
    {
      ER_EXCEPTION_CREATING_POOL,
         "undantag skapar ny instans f\u00f6r pool"},
  
    
     /**  Path contains invalid escape sequence  */
    //public static final int ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 179;
  
  
    {
      ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
         "V\u00e4g inneh\u00e5ller ogiltig flyktsekvens"},
  
    
     /**  Scheme is required!  */
    //public static final int ER_SCHEME_REQUIRED = 180;
  
  
    {
      ER_SCHEME_REQUIRED,
         "Schema kr\u00e4vs!"},
  
    
     /**  No scheme found in URI  */
    //public static final int ER_NO_SCHEME_IN_URI = 181;
  
  
    {
      ER_NO_SCHEME_IN_URI,
         "Schema saknas i URI: {0}"},
  
    
     /**  No scheme found in URI  */
    //public static final int ER_NO_SCHEME_INURI = 182;
  
  
    {
      ER_NO_SCHEME_INURI,
         "Schema saknas i URI"},
  
    
     /**  Path contains invalid character:   */
    //public static final int ER_PATH_INVALID_CHAR = 183;
  
  
    {
      ER_PATH_INVALID_CHAR,
         "V\u00e4g inneh\u00e5ller ogiltigt tecken: {0}"},
  
    
     /**  Cannot set scheme from null string  */
    //public static final int ER_SCHEME_FROM_NULL_STRING = 184;
  
  
    {
      ER_SCHEME_FROM_NULL_STRING,
         "Kan inte s\u00e4tta schema fr\u00e5n null-str\u00e4ng"},
  
    
     /**  The scheme is not conformant. */
    //public static final int ER_SCHEME_NOT_CONFORMANT = 185;
  
  
    {
      ER_SCHEME_NOT_CONFORMANT,
         "Schemat \u00e4r inte likformigt."},
  
    
     /**  Host is not a well formed address  */
    //public static final int ER_HOST_ADDRESS_NOT_WELLFORMED = 186;
  
  
    {
      ER_HOST_ADDRESS_NOT_WELLFORMED,
         "V\u00e4rd \u00e4r inte en v\u00e4lformulerad adress"},
  
    
     /**  Port cannot be set when host is null  */
    //public static final int ER_PORT_WHEN_HOST_NULL = 187;
  
  
    {
      ER_PORT_WHEN_HOST_NULL,
         "Port kan inte s\u00e4ttas n\u00e4r v\u00e4rd \u00e4r null"},
  
    
     /**  Invalid port number  */
    //public static final int ER_INVALID_PORT = 188;
  
  
    {
      ER_INVALID_PORT,
         "Ogiltigt portnummer"},
  
    
     /**  Fragment can only be set for a generic URI  */
    //public static final int ER_FRAG_FOR_GENERIC_URI = 189;
  
  
    {
      ER_FRAG_FOR_GENERIC_URI,
         "Fragment kan bara s\u00e4ttas f\u00f6r en allm\u00e4n URI"},
  
    
     /**  Fragment cannot be set when path is null  */
    //public static final int ER_FRAG_WHEN_PATH_NULL = 190;
  
  
    {
      ER_FRAG_WHEN_PATH_NULL,
         "Fragment kan inte s\u00e4ttas n\u00e4r v\u00e4g \u00e4r null"},
  
    
     /**  Fragment contains invalid character  */
    //public static final int ER_FRAG_INVALID_CHAR = 191;
  
  
    {
      ER_FRAG_INVALID_CHAR,
         "Fragment inneh\u00e5ller ogiltigt tecken"},
  
    
   
    
     /** Parser is already in use  */
    //public static final int ER_PARSER_IN_USE = 192;
  
  
    {
      ER_PARSER_IN_USE,
          "Tolk anv\u00e4nds redan"},
  
    
     /** Parser is already in use  */
    //public static final int ER_CANNOT_CHANGE_WHILE_PARSING = 193;
  
  
    {
      ER_CANNOT_CHANGE_WHILE_PARSING,
          "Kan inte \u00e4ndra {0} {1} medan tolkning sker"},
  
    
     /** Self-causation not permitted  */
    //public static final int ER_SELF_CAUSATION_NOT_PERMITTED = 194;
  
  
    {
      ER_SELF_CAUSATION_NOT_PERMITTED,
          "Sj\u00e4lvorsakande inte till\u00e5ten"},
  
    
     /** Userinfo may not be specified if host is not specified   */
    //public static final int ER_NO_USERINFO_IF_NO_HOST = 198;
  
  
    {
      ER_NO_USERINFO_IF_NO_HOST,
          "Userinfo f\u00e5r inte anges om v\u00e4rden inte \u00e4r angiven"},
  
    
     /** Port may not be specified if host is not specified   */
    //public static final int ER_NO_PORT_IF_NO_HOST = 199;
  
  
    {
      ER_NO_PORT_IF_NO_HOST,
          "Port f\u00e5r inte anges om v\u00e4rden inte \u00e4r angiven"},
  
    
     /** Query string cannot be specified in path and query string   */
    //public static final int ER_NO_QUERY_STRING_IN_PATH = 200;
  
  
    {
      ER_NO_QUERY_STRING_IN_PATH,
          "F\u00f6rfr\u00e5gan-str\u00e4ng kan inte anges i v\u00e4g och f\u00f6rfr\u00e5gan-str\u00e4ng"},
  
    
     /** Fragment cannot be specified in both the path and fragment   */
    //public static final int ER_NO_FRAGMENT_STRING_IN_PATH = 201;
  
  
    {
      ER_NO_FRAGMENT_STRING_IN_PATH,
          "Fragment kan inte anges i b\u00e5de v\u00e4gen och fragmentet"},
  
    
     /** Cannot initialize URI with empty parameters   */
    //public static final int ER_CANNOT_INIT_URI_EMPTY_PARMS = 202;
  
  
    {
      ER_CANNOT_INIT_URI_EMPTY_PARMS,
          "Kan inte initialisera URI med tomma parametrar"},
  
    
    /**  Method not yet supported    */
    //public static final int ER_METHOD_NOT_SUPPORTED = 210;
  
  
    {
      ER_METHOD_NOT_SUPPORTED,
          "Metod \u00e4nnu inte underst\u00f6dd "},
  
  
    /** IncrementalSAXSource_Filter not currently restartable   */
    //public static final int ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 214;
  
  
    {
      ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,
       "IncrementalSAXSource_Filter kan f\u00f6r n\u00e4rvarande inte startas om"},
  
    
    /** IncrementalSAXSource_Filter not currently restartable   */
    //public static final int ER_XMLRDR_NOT_BEFORE_STARTPARSE = 215;
  
  
    {
      ER_XMLRDR_NOT_BEFORE_STARTPARSE,
       "XMLReader inte innan startParse-beg\u00e4ran"},
  
  
  // Axis traverser not supported: {0}
    //public static final int ER_AXIS_TRAVERSER_NOT_SUPPORTED = 235;
  
    {
      ER_AXIS_TRAVERSER_NOT_SUPPORTED,
       "Det g\u00e5r inte att v\u00e4nda axeln: {0}"},
  
  
  // ListingErrorHandler created with null PrintWriter!
    //public static final int ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = 236;
  
    {
      ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,
       "ListingErrorHandler skapad med null PrintWriter!"},
  
  
    //public static final int ER_SYSTEMID_UNKNOWN = 240;
  
    {
      ER_SYSTEMID_UNKNOWN,
       "SystemId ok\u00e4nt"},
  
  
    // Location of error unknown
    //public static final int ER_LOCATION_UNKNOWN = 241;
  
    {
      ER_LOCATION_UNKNOWN,
       "Platsen f\u00f6r felet \u00e4r ok\u00e4nd"},
  
  
    /** Field ER_PREFIX_MUST_RESOLVE          */
    //public static final int ER_PREFIX_MUST_RESOLVE = 52;
  
  
    {
      ER_PREFIX_MUST_RESOLVE,
        "Prefix must resolve to a namespace: {0}"},
  
  
    /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */
    //public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
  
  
    {
      ER_CREATEDOCUMENT_NOT_SUPPORTED,
        "createDocument() underst\u00f6ds inte av XPathContext!"},
  
  
    /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */
    //public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
  
  
    {
      ER_CHILD_HAS_NO_OWNER_DOCUMENT,
        "Attributbarn saknar \u00e4gardokument!"},
  
  
    /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */
    //public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
  
  
    {
      ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
        "Attributbarn saknar \u00e4gardokumentelement!"},
  
  
    /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */
    //public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
  
  
    {
      ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
        "Varning: kan inte skriva ut text innan dokumentelement!  Ignorerar..."},
  
  
    /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */
    //public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
  
  
    {
      ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
        "Kan inte ha mer \u00e4n en rot p\u00e5 en DOM!"},
  
    
     /**  Argument 'localName' is null  */
    //public static final int ER_ARG_LOCALNAME_NULL = 70;
  
  
    {
      ER_ARG_LOCALNAME_NULL,
         "Argument 'localName' \u00e4r null"},
  
  
    // Note to translators:  A QNAME has the syntactic form [NCName:]NCName
    // The localname is the portion after the optional colon; the message indicates
    // that there is a problem with that part of the QNAME.
  
    /** localname in QNAME should be a valid NCName */
    //public static final int ER_ARG_LOCALNAME_INVALID = 101;
  
  
    {
      ER_ARG_LOCALNAME_INVALID,
         "Localname i QNAME b\u00f6r vara ett giltigt NCName"},
  
    
    // Note to translators:  A QNAME has the syntactic form [NCName:]NCName
    // The prefix is the portion before the optional colon; the message indicates
    // that there is a problem with that part of the QNAME.
  
    /** prefix in QNAME should be a valid NCName */
    //public static final int ER_ARG_PREFIX_INVALID = 102;
  
  
    {
      ER_ARG_PREFIX_INVALID,
         "Prefixet i QNAME b\u00f6r vara ett giltigt NCName"},
  
    { "BAD_CODE",
        "Parameter till createMessage ligger utanf\u00f6r till\u00e5tet intervall"},
    { "FORMAT_FAILED",
        "Undantag utl\u00f6st vid messageFormat-anrop"},
    { "line",  "Rad #"},
    { "column", "Kolumn #"}
           
    };
    }
   
  }
  