
com.beimin.eveapi.handler.shared.BlueprintsHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eveapi Show documentation
Show all versions of eveapi Show documentation
Parsers for the eve online api
The newest version!
package com.beimin.eveapi.handler.shared;
import org.xml.sax.Attributes;
import com.beimin.eveapi.handler.AbstractContentListHandler;
import com.beimin.eveapi.model.shared.Blueprint;
import com.beimin.eveapi.response.shared.BlueprintsResponse;
public class BlueprintsHandler extends AbstractContentListHandler {
public BlueprintsHandler() {
super(new BlueprintsResponse());
}
@Override
protected Blueprint getItem(final Attributes attrs) {
final Blueprint blueprint = new Blueprint();
saveAttributes(Blueprint.class, attrs);
blueprint.setItemID(getLong(attrs, "itemID"));
blueprint.setLocationID(getLong(attrs, "locationID"));
blueprint.setTypeID(getInt(attrs, "typeID"));
blueprint.setTypeName(getString(attrs, "typeName"));
blueprint.setFlagID(getInt(attrs, "flagID"));
blueprint.setQuantity(getInt(attrs, "quantity"));
blueprint.setTimeEfficiency(getInt(attrs, "timeEfficiency"));
blueprint.setMaterialEfficiency(getInt(attrs, "materialEfficiency"));
blueprint.setRuns(getInt(attrs, "runs"));
return blueprint;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy