On Monday 23 June 2008 00:52, bombe at freenetproject.org wrote:
> Author: bombe
> Date: 2008-06-22 23:52:45 +0000 (Sun, 22 Jun 2008)
> New Revision: 20627
>
> Modified:
> trunk/apps/jSite/src/de/todesbaum/jsite/application/FileOption.java
>
trunk/apps/jSite/src/de/todesbaum/jsite/application/Freenet7Interface.java
> trunk/apps/jSite/src/de/todesbaum/jsite/application/InsertListener.java
> trunk/apps/jSite/src/de/todesbaum/jsite/application/Node.java
> trunk/apps/jSite/src/de/todesbaum/jsite/application/Project.java
> trunk/apps/jSite/src/de/todesbaum/jsite/application/ProjectInserter.java
> trunk/apps/jSite/src/de/todesbaum/jsite/gui/FileScanner.java
> trunk/apps/jSite/src/de/todesbaum/jsite/gui/FileScannerListener.java
> trunk/apps/jSite/src/de/todesbaum/jsite/gui/NodeManagerListener.java
> trunk/apps/jSite/src/de/todesbaum/jsite/gui/NodeManagerPage.java
> trunk/apps/jSite/src/de/todesbaum/jsite/gui/ProjectFilesPage.java
> trunk/apps/jSite/src/de/todesbaum/jsite/gui/ProjectInsertPage.java
> trunk/apps/jSite/src/de/todesbaum/jsite/gui/ProjectPage.java
> trunk/apps/jSite/src/de/todesbaum/jsite/i18n/I18n.java
> trunk/apps/jSite/src/de/todesbaum/jsite/i18n/I18nContainer.java
> trunk/apps/jSite/src/de/todesbaum/jsite/main/CLI.java
> trunk/apps/jSite/src/de/todesbaum/jsite/main/Configuration.java
> trunk/apps/jSite/src/de/todesbaum/jsite/main/Main.java
> trunk/apps/jSite/src/de/todesbaum/jsite/main/Version.java
> Log:
> version 0.4.12.2:
> forgot to increase version
> add lots of javadoc
> more small code cleanups
>
> Modified:
trunk/apps/jSite/src/de/todesbaum/jsite/application/FileOption.java
> ===================================================================
> --- trunk/apps/jSite/src/de/todesbaum/jsite/application/FileOption.java
2008-06-22 20:49:33 UTC (rev 20626)
> +++ trunk/apps/jSite/src/de/todesbaum/jsite/application/FileOption.java
2008-06-22 23:52:45 UTC (rev 20627)
> @@ -19,22 +19,55 @@
>
> package de.todesbaum.jsite.application;
>
> +/**
> + * Container for various file options.
> + *
> + * @author David ?Bombe? Roden <bombe at freenetproject.org>
> + */
> public class FileOption {
>
> + /** The default for the insert state. */
> private static final boolean DEFAULT_INSERT = true;
> +
> + /** The default for the custom key. */
> private static final String DEFAULT_CUSTOM_KEY = "CHK@";
> +
> + /** The default container. */
> private static final String DEFAULT_CONTAINER = "";
> +
> + /** The default edition range. */
> private static final int DEFAULT_EDITION_RANGE = 3;
> +
> + /** The default for the replace edition state. */
> private static final boolean DEFAULT_REPLACE_EDITION = false;
>
> + /** The insert state. */
> private boolean insert;
> +
> + /** The custom key. */
> private String customKey;
> +
> + /** The default MIME type. */
> private final String defaultMimeType;
> +
> + /** The current MIME type. */
> private String mimeType;
> +
> + /** The container. */
> private String container;
> +
> + /** The edition range. */
> private int editionRange;
> +
> + /** The replace edition state. */
> private boolean replaceEdition;
>
> + /**
> + * Creates new file options.
> + *
> + * @param defaultMimeType
> + * The default MIME type of the file
> + */
> public FileOption(String defaultMimeType) {
> insert = DEFAULT_INSERT;
> customKey = DEFAULT_CUSTOM_KEY;
> @@ -46,15 +79,21 @@
> }
>
> /**
> - * @return Returns the customKey.
> + * Returns the custom key. The custom key is only used when
> + * {@link #isInsert()} returns <code>true</code>.
You mean when it returns false??
> /**
> - * @return Returns the insert.
> + * Returns whether the file should be inserted. If a file is not
> inserted,
a
> + * custom key has to be specified for it.
> + *
> + * @see #setCustomKey(String)
> + * @return <code>true</code> if the file should be inserted,
> + * <code>false</code> otherwise
> */
> public boolean isInsert() {
> return insert;
> }
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20080805/2ce3a54b/attachment.pgp>