public abstract class ResourceFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
comment
The optional comment.
|
protected java.lang.String |
id
The identifier for the resource file.
|
protected java.lang.String |
path
The desired configuration path.
|
protected javax.activation.MimeType |
type
The optional MIME type of the resource file.
|
Constructor and Description |
---|
ResourceFile()
Constructor method for i18n purposes only.
|
ResourceFile(java.lang.String id,
javax.activation.MimeType type,
java.lang.String comment,
java.lang.String path)
Constructs a text file resource.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment()
Provides the optional comment for the resource file helping the wetware.
|
java.lang.String |
getDesiredPath()
Provides the relative path used for the configuration directory like "/cache/file1.txt".
|
java.lang.String |
getIdentifier()
Provides the resource file identifier like "com/lf/commons/file1.txt".
|
javax.activation.MimeType |
getMimeType()
Provides the optional MIME type for the resource like "text/plain".
|
protected java.lang.String id
protected javax.activation.MimeType type
protected java.lang.String comment
protected java.lang.String path
public ResourceFile() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic ResourceFile(java.lang.String id, javax.activation.MimeType type, java.lang.String comment, java.lang.String path)
id
- The identifier for the resource filetype
- The MIME type of the filecomment
- The optional commentpath
- The desired configuration pathjava.lang.NullPointerException
- If parameters are null
public java.lang.String getIdentifier()
getDesiredPath()
method but it must not necessarily be used by the
application model.
public javax.activation.MimeType getMimeType()
public java.lang.String getComment()
public java.lang.String getDesiredPath()
Copyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.