private void setOptionType( String aString ) { if ( aString.equals( "String" ) ) this.optionType = EnumTagType.STRING; else if ( aString.equals( "Ip List" ) ) this.optionType = EnumTagType.IP_LIST; else if ( aString.equals( "Int") ) this.optionType = EnumTagType.INT; else if ( aString.equals( "Bool" ) ) this.optionType = EnumTagType.BOOL; else if ( aString.equals( "Ip" ) ) this.optionType = EnumTagType.IP; else if ( aString.equals( "Addr" ) ) this.optionType = EnumTagType.ADDR; else if ( aString.equals( "Integer" ) ) this.optionType = EnumTagType.INT; else if ( aString.equals( "Float" ) ) this.optionType = EnumTagType.FLOAT; else if ( aString.equals( "Md4" ) ) this.optionType = EnumTagType.MD4; else if ( aString.equals( "Sha1" ) ) this.optionType = EnumTagType.SHA1; else { this.optionType = EnumTagType.STRING; System.out.println( "Unknown EnumTagType: " + aString ); }
private void setOptionType( byte optionType ) { if ( optionType == 0 ) this.optionType = EnumTagType.STRING; else if ( optionType == 1 ) this.optionType = EnumTagType.BOOL; else if ( optionType == 2 ) this.optionType = EnumTagType.FILE;
	private void setOptionType( String aString ) {		if ( aString.equals( "String" ) )			this.optionType = EnumTagType.STRING;		else if ( aString.equals( "Ip List" ) )			this.optionType = EnumTagType.IP_LIST;		else if ( aString.equals( "Int") )			this.optionType = EnumTagType.INT;		else if ( aString.equals( "Bool" ) )			this.optionType = EnumTagType.BOOL;		else if ( aString.equals( "Ip" ) )			this.optionType = EnumTagType.IP;			else if ( aString.equals( "Addr" ) )			this.optionType = EnumTagType.ADDR;		else if ( aString.equals( "Integer" ) )			this.optionType = EnumTagType.INT;		else if ( aString.equals( "Float" ) )			this.optionType = EnumTagType.FLOAT;		else if ( aString.equals( "Md4" ) )			this.optionType = EnumTagType.MD4;		else if ( aString.equals( "Sha1" ) )						this.optionType = EnumTagType.SHA1;		else {			this.optionType = EnumTagType.STRING;									System.out.println( "Unknown EnumTagType: " + aString );							}	}