Class I18nArtifact

java.lang.Object
org.nuiton.i18n.plugin.bundle.I18nArtifact

public class I18nArtifact extends Object
Since:
0.12
Author:
Tony Chemit - chemit@codelutin.com
  • Field Details

    • artifact

      protected final org.apache.maven.artifact.Artifact artifact
    • url

      protected final URL url
    • bundles

      protected I18nBundle[] bundles
  • Constructor Details

  • Method Details

    • 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