Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package com.sporniket.libre.javabeans.generator.core;
  
Extended information for a property type starting with "coll:..."

© Copyright 2012-2013 David Sporn


This file is part of The Sporniket Javabeans Library – core.

The Sporniket Javabeans Library – core is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Sporniket Javabeans Library – core is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with The Sporniket Javabeans Library – core. If not, see http://www.gnu.org/licenses/. 2


Author(s):
David SPORN
Version:
13.01.01
Since:
13.01.01
 
 public class PropertyTypeColl extends PropertyType
 {
 
 
 	private String myInterface;
 
 	private String myMode;
 

Returns:
the implementation
 
 	{
 		return ;
 	}

Returns:
the instanciationParameters
 
 	{
 	}

Returns:
the interface
 
 	public String getInterface()
 	{
 		return ;
 	}

Returns:
the mode
 
 	public String getMode()
 	{
 		return ;
 	}

Returns:
the parametrization
 
 	{
 	}
 
 	/*
 	 * (non-Javadoc)
 	 * 
 	 * @see com.sporniket.javabeans.generator.core.PropertyType#setDescription(java.lang.String)
 	 */
 	public void setDescription(String description)
	{
		super.setDescription(description);
		// extract other infos
		// sanity check
		if (StringTools.isEmptyString(description))
		{
			String message = (null == description) ? "description must be not null" : "description must be not empty";
			throw new IllegalArgumentException(message);
		}
		// ok
	}

Parameters:
description
	private void setDescription__extractInformations(String description)
	{
		String[] _tokens = description.split();
		if (4 != _tokens.length && 5 != _tokens.length)
		{
					"description is surely incorrect for enum, should be 'coll:Interface:ImplementationType:ItemType:(notNull|isolated):Instanciation parameters', got : '"
description + "'.");
		}
		setInterface(_tokens[0]);
		setImplementation(_tokens[1]);
		setParametrization(_tokens[2]);
		setMode(_tokens[3]);
		setInstanciationParameters((4 == _tokens.length) ? "" : _tokens[4]);
	}

Parameters:
implementation the implementation to set
	public void setImplementation(String implementation)
	{
		 = implementation;
	}

Parameters:
instanciationParameters the instanciationParameters to set
	public void setInstanciationParameters(String instanciationParameters)
	{
		 = instanciationParameters;
	}

Parameters:
interface1 the interface to set
	public void setInterface(String interface1)
	{
		 = interface1;
	}

Parameters:
mode the mode to set
	public void setMode(String mode)
	{
		 = mode;
	}

Parameters:
parametrization the parametrization to set
	public void setParametrization(String parametrization)
	{
		 = parametrization;
	}

	{
	}
New to GrepCode? Check out our FAQ X