/**
* An override is used to enter other information about a file than the defaults
* would have yielded. It is also used to add redirects to a project.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
*/
public class FileOverride {
/**
* Checks whether this override has any content.
- *
+ *
* @return <code>true</code> if this override does not have any effects,
* <code>false</code> otherwise
*/
/**
* Returns the insert override.
- *
+ *
* @return <code>true</code> if the entry should be inserted,
* <code>false</code> if it should not be inserted,
* <code>null</code> if the default should not be overridden
/**
* Sets the insert override.
- *
+ *
* @param insert
* <code>true</code> if the entry should be inserted,
* <code>false</code> if it should not be inserted,
/**
* Returns the override content type.
- *
+ *
* @return The override content type, or <code>null</code> to not override
* the default
*/
/**
* Sets the override content type.
- *
+ *
* @param contentType
* The override content type, or <code>null</code> to not
* override the default
/**
* Returns the target of a redirect.
- *
+ *
* @return The target URI of the redirect, or <code>null</code> if no
* redirect should be created
*/
/**
* Sets the target of a redirect.
- *
+ *
* @param redirectTarget
* The target URI of the redirect, or <code>null</code> if no
* redirect should be created
/**
* @see java.lang.Object#toString()
*/
- @java.lang.Override
+ @Override
public String toString() {
return ((insert != null) ? String.valueOf(insert) : "") + "|" + ((contentType != null) ? contentType : "") + "|" + ((redirectTarget != null) ? redirectTarget : "");
}
/**
* Converts an override string created by {@link #toString()} back to an
* {@link FileOverride} object.
- *
+ *
* @param overrideString
* The textual representation of the override
* @return The parsed override, or <code>null</code> if the string could