Lines Matching defs:resource

18     protected final String resource;
26 * Constructs a new LocalizedMessage using <code>resource</code> as the base name for the
27 * RessourceBundle and <code>id</code> as the message bundle id the resource file.
28 * @param resource base name of the resource file
29 * @param id the id of the corresponding bundle in the resource file
30 * @throws NullPointerException if <code>resource</code> or <code>id</code> is <code>null</code>
32 public LocalizedMessage(String resource,String id) throws NullPointerException
34 if (resource == null || id == null)
39 this.resource = resource;
45 * Constructs a new LocalizedMessage using <code>resource</code> as the base name for the
46 * RessourceBundle and <code>id</code> as the message bundle id the resource file.
47 * @param resource base name of the resource file
48 * @param id the id of the corresponding bundle in the resource file
50 * @throws NullPointerException if <code>resource</code> or <code>id</code> is <code>null</code>
52 public LocalizedMessage(String resource, String id, Object[] arguments) throws NullPointerException
54 if (resource == null || id == null || arguments == null)
59 this.resource = resource;
65 * Reads the entry <code>id + "." + key</code> from the resource file and returns a
71 * @throws MissingEntryException if the resource file is not available or the entry does not exist.
79 ResourceBundle bundle = ResourceBundle.getBundle(resource,loc);
92 throw new MissingEntryException("Can't find entry " + entry + " in resource file " + resource + ".",
93 resource,
161 * Returns the id of the message in the resource bundle.
170 * Returns the name of the resource bundle for this message
171 * @return name of the resource file
175 return resource;