org.nuiton.i18n.plugin.bundle
Class I18nArtifact
java.lang.Object
org.nuiton.i18n.plugin.bundle.I18nArtifact
public class I18nArtifact
- extends Object
- Since:
- 0.12
- Author:
- tchemit
|
Constructor Summary |
I18nArtifact(org.apache.maven.artifact.Artifact artifact)
|
I18nArtifact(org.apache.maven.artifact.Artifact artifact,
File file)
|
artifact
protected final org.apache.maven.artifact.Artifact artifact
url
protected final URL url
bundles
protected I18nBundle[] bundles
I18nArtifact
public I18nArtifact(org.apache.maven.artifact.Artifact artifact)
throws MalformedURLException
- Throws:
MalformedURLException
I18nArtifact
public I18nArtifact(org.apache.maven.artifact.Artifact artifact,
File file)
throws MalformedURLException
- Throws:
MalformedURLException
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()
getUrl
public URL getUrl()
getBundleEntries
public I18nBundleEntry[] getBundleEntries(Locale l,
Locale defaultLocale)
detectBundles
public boolean detectBundles()
throws IOException
- Detects the i18n bundles for this artifacts, says in i18n directory.
- Returns:
true if artifact has some i18n bunbles, false
otherwise.
- Throws:
IOException - if any IO error.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2007-2011 CodeLutin. All Rights Reserved.