Package org.nuiton.i18n.plugin.bundle
Class I18nArtifact
java.lang.Object
org.nuiton.i18n.plugin.bundle.I18nArtifact
public class I18nArtifact
extends java.lang.Object
- Since:
- 0.12
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.artifact.Artifactartifactprotected I18nBundle[]bundlesprotected java.net.URLurl -
Constructor Summary
Constructors Constructor Description I18nArtifact(org.apache.maven.artifact.Artifact artifact)I18nArtifact(org.apache.maven.artifact.Artifact artifact, java.io.File file) -
Method Summary
Modifier and Type Method Description booleandetectBundles()Detects the i18n bundles for this artifacts, says in i18n directory.org.apache.maven.artifact.ArtifactgetArtifact()I18nBundleEntry[]getBundleEntries(java.util.Locale l, java.util.Locale defaultLocale)java.net.URLgetUrl()java.lang.StringtoString()
-
Field Details
-
Constructor Details
-
I18nArtifact
public I18nArtifact(org.apache.maven.artifact.Artifact artifact) throws java.net.MalformedURLException- Throws:
java.net.MalformedURLException
-
I18nArtifact
public I18nArtifact(org.apache.maven.artifact.Artifact artifact, java.io.File file) throws java.net.MalformedURLException- Throws:
java.net.MalformedURLException
-
-
Method Details
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact() -
getUrl
public java.net.URL getUrl() -
getBundleEntries
-
detectBundles
public boolean detectBundles() throws java.io.IOExceptionDetects the i18n bundles for this artifacts, says in i18n directory.- Returns:
trueif artifact has some i18n bunbles,falseotherwise.- Throws:
java.io.IOException- if any IO error.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-