Package org.nuiton.i18n.plugin.bundle
Class I18nArtifact
java.lang.Object
org.nuiton.i18n.plugin.bundle.I18nArtifact
- Since:
- 0.12
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.maven.artifact.Artifactprotected I18nBundle[]protected final URL -
Constructor Summary
ConstructorsConstructorDescriptionI18nArtifact(org.apache.maven.artifact.Artifact artifact) I18nArtifact(org.apache.maven.artifact.Artifact artifact, File file) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetects the i18n bundles for this artifacts, says in i18n directory.org.apache.maven.artifact.ArtifactgetBundleEntries(Locale l, Locale defaultLocale) getUrl()toString()
-
Field Details
-
artifact
protected final org.apache.maven.artifact.Artifact artifact -
url
-
bundles
-
-
Constructor Details
-
I18nArtifact
- Throws:
MalformedURLException
-
I18nArtifact
public I18nArtifact(org.apache.maven.artifact.Artifact artifact, File file) throws MalformedURLException - Throws:
MalformedURLException
-
-
Method Details
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact() -
getUrl
-
getBundleEntries
-
detectBundles
Detects the i18n bundles for this artifacts, says in i18n directory.- Returns:
trueif artifact has some i18n bunbles,falseotherwise.- Throws:
IOException- if any IO error.
-
toString
-