Revision 25791 branches/v2_0_0_prep/libraries/libTools/src/org/gvsig/tools/dynobject/impl/DefaultDynField.java

View differences:

DefaultDynField.java
112 112
	}
113 113

  
114 114
	public DynField setTheTypeOfAvailableValues(int type) {
115
		if (type == DynField.SINGLE || type == DynField.RANGE
116
				|| type == DynField.CHOICE) {
115 117
		this.typeOfAvailableValues = type;
118
		} else {
119
			// FIXME
120
			throw new IllegalArgumentException();
121
		}
116 122
		return this;
117 123
	}
118 124

  
......
126 132
        }
127 133
        return false;
128 134
    }
129
    
135

  
130 136
    public String toString() {
131 137
        return "name: ".concat(getName()) + ", description: "
132 138
                + getDescription() + ", type: " + Integer.toString(getType())

Also available in: Unified diff