jaxws/src/java.xml.bind/share/classes/com/sun/istack/internal/localization/NullLocalizable.java
changeset 43852 93a527059d8a
parent 25871 b80b84e87032
equal deleted inserted replaced
43752:3c68ef249093 43852:93a527059d8a
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package com.sun.istack.internal.localization;
    26 package com.sun.istack.internal.localization;
    27 
    27 
       
    28 import java.util.Locale;
       
    29 import java.util.ResourceBundle;
       
    30 
    28 /**
    31 /**
    29  * {@link Localizable} that wraps a non-localizable string.
    32  * {@link Localizable} that wraps a non-localizable string.
    30  *
    33  *
    31  * @author WS Development Team
    34  * @author WS Development Team
    32  */
    35  */
    37         if(msg==null)
    40         if(msg==null)
    38             throw new IllegalArgumentException();
    41             throw new IllegalArgumentException();
    39         this.msg = msg;
    42         this.msg = msg;
    40     }
    43     }
    41 
    44 
       
    45     @Override
    42     public String getKey() {
    46     public String getKey() {
    43         return Localizable.NOT_LOCALIZABLE;
    47         return Localizable.NOT_LOCALIZABLE;
    44     }
    48     }
       
    49     @Override
    45     public Object[] getArguments() {
    50     public Object[] getArguments() {
    46         return new Object[]{msg};
    51         return new Object[]{msg};
    47     }
    52     }
       
    53     @Override
    48     public String getResourceBundleName() {
    54     public String getResourceBundleName() {
    49         return "";
    55         return "";
    50     }
    56     }
       
    57     @Override
       
    58     public ResourceBundle getResourceBundle(Locale locale) {
       
    59         return null;
       
    60     }
    51 }
    61 }