public class I18nArtifact extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.artifact.Artifact |
artifact |
protected I18nBundle[] |
bundles |
protected URL |
url |
| Constructor and Description |
|---|
I18nArtifact(org.apache.maven.artifact.Artifact artifact) |
I18nArtifact(org.apache.maven.artifact.Artifact artifact,
File file) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
detectBundles()
Detects the i18n bundles for this artifacts, says in i18n directory.
|
org.apache.maven.artifact.Artifact |
getArtifact() |
I18nBundleEntry[] |
getBundleEntries(Locale l,
Locale defaultLocale) |
URL |
getUrl() |
String |
toString() |
protected final org.apache.maven.artifact.Artifact artifact
protected final URL url
protected I18nBundle[] bundles
public I18nArtifact(org.apache.maven.artifact.Artifact artifact)
throws MalformedURLException
MalformedURLExceptionpublic I18nArtifact(org.apache.maven.artifact.Artifact artifact,
File file)
throws MalformedURLException
MalformedURLExceptionpublic org.apache.maven.artifact.Artifact getArtifact()
public URL getUrl()
public I18nBundleEntry[] getBundleEntries(Locale l, Locale defaultLocale)
public boolean detectBundles()
throws IOException
true if artifact has some i18n bunbles, false
otherwise.IOException - if any IO error.Copyright © 2007–2014 CodeLutin. All rights reserved.