Code Search for Developers
 
 
  

FlagDescription.java from GridBlocks at Krugle


Show FlagDescription.java syntax highlighted

/*
 * Copyright (c) 2005
 * Helsinki Institute of Physics
 * see LICENSE file for details
 *
 * FlagDescription.java
 * Created on 27.7.2005
 */
package fi.hip.gb.portlet.jobs;

/**
 * @author Antti Ahvenlampi
 * @version $Id: FlagDescription.java 475 2005-08-15 14:14:04Z ahvenlam $
 */
public class FlagDescription {

	private String name;
	private String[] examples;
	private String description;
	
	/**
	 * Default contructor. Shouldn't be used. 
	 */
	public FlagDescription() {
		name = null;
		examples = null;
		description = null;
	}
	
	/**
	 * Contructs flag description
	 * 
	 * examples = example values
	 * description = textual explanation what the flag means
	 * 
	 * @param name
	 * @param examples
	 * @param description
	 */
	public FlagDescription(String name, String[] examples, String description) {
		this.name = name.toLowerCase();
		this.examples = new String[examples.length];
		for(int i = 0; i < examples.length; i++)
			if(examples[i] != null)
				this.examples[i] = new String(examples[i]);
		this.description = new String(description);
	}
	
	/**
	 * @return Returns the description.
	 */
	public String getDescription() {
		return description;
	}
	
	/**
	 * @return Returns the examples.
	 */
	public String[] getExamples() {
		return examples;
	}
	
	/**
	 * @return Returns the name of the flag.
	 */
	public String getName() {
		return name;
	}
	
	
}




See more files for this project here

GridBlocks

GridBlocks builds a grid application framework via easy-to-use building blocks in distributed environment. The framework offers components for Grid security, distributed storage, computing, and Portlet web interfaces.

Project homepage: http://sourceforge.net/projects/gridblocks
Programming language(s): Java,JSP,XML
License: other

  agent/
    AgentJob.java
  FlagDescription.java
  Job.java