com.beimin.eveapi.handler.eve.CharacterLookupHandler 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
package com.beimin.eveapi.handler.eve;
import org.xml.sax.Attributes;
import com.beimin.eveapi.handler.AbstractContentListHandler;
import com.beimin.eveapi.model.eve.CharacterLookup;
import com.beimin.eveapi.response.eve.CharacterLookupResponse;
public class CharacterLookupHandler extends AbstractContentListHandler {
public CharacterLookupHandler() {
super(CharacterLookupResponse.class);
}
@Override
protected CharacterLookup getItem(Attributes attrs) {
CharacterLookup lookup = new CharacterLookup();
lookup.setCharacterID(getLong(attrs, "characterID"));
lookup.setName(getString(attrs, "name"));
return lookup;
}
}