Code example for AttributeList

Methods: getValue

0
		return retVal;
	} 
 
	private int parseInterpolationType(AttributeList attrs) {
		int retVal = INTERPOLATION_LINEAR;
		if ("hermite".equals(attrs.getValue("i"))) {
			retVal = INTERPOLATION_HERMITE;
		} 
		return retVal;
	} 
 
	private StructVector parseVector(AttributeList attrs) {
		StructVector vector = new StructVector();
		vector.mId = parseInt(attrs.getValue("id"));
		vector.mInterpolationType = parseInterpolationType(attrs);
		vector.mTimeStart = parseFloat(attrs.getValue("t0"));
		vector.mTimeEnd = parseFloat(attrs.getValue("t1"));
		vector.mCtrl0 = parseFloatArray(attrs.getValue("c0"));
		vector.mCtrl1 = parseFloatArray(attrs.getValue("c1"));
		vector.mCtrl2 = parseFloatArray(attrs.getValue("c2"));
		return vector;