/* $Id: GVRWPStammData.java,v 1.1 2011/05/04 22:37:48 willuhn Exp $ This file is part of HBCI4Java Copyright (C) 2001-2008 Stefan Palme HBCI4Java is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. HBCI4Java is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package org.kapott.hbci.GV_Result; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.kapott.hbci.structures.Value; import org.kapott.hbci.structures.WPRef; /** Diese Klasse kann noch nicht benutzt werden, fuer die Abfrage von WP-Stammdaten muss noch der Lowlevel-Job WPStammList verwendet werden. */ public class GVRWPStammData extends HBCIJobResultImpl { public final static class Entry { /** Einheit: St�ck */ public static final int EINHEIT_STCK=1; /** Einheit: Prozent */ public static final int EINHEIT_PRCT=2; /** Einheit: Promille */ public static final int EINHEIT_PRML=3; /** Einheit: Punkte */ public static final int EINHEIT_PNKT=4; /** Einheit: Sonstiges */ public static final int EINHEIT_ELSE=9; /** Region: beliebig */ public static final int REGION_BOTH=0; /** Region: nur Inland */ public static final int REGION_ONLYHOME=1; /** Region: nur Ausland */ public static final int REGION_ONLYFORGN=2; /** Orderart: kann nur gekauft werden */ public static final int ORDER_ONLYBUY=1; /** Orderart: kann nur verkauft werden */ public static final int ORDER_ONLYSELL=2; /** Orderart: kann sowohl ge- als auch verkauft werden */ public static final int ORDER_BOTH=3; /** Orderart: kann nur �ber XETRA gehandelt werden */ public static final int ORDER_ONLYXETRA=4; /** Wertpapierreferenz. */ WPRef wpref; /** Wertpapierbezeichnung (kurzer Name) (optional) */ String shortname; /** Wertpapierbezeichnung (langer Name) (optional) */ String longname; /** Bezeichnung der Wertpapiergattung, unter der das Papier beim Kreditinstitut gef�hrt wird (optional) */ String gattung; /** Region der G�ltigkeit des Wertpapiers (optional): <ul> <li>{@link #REGION_BOTH}</li> <li>{@link #REGION_ONLYHOME}</li> <li>{@link #REGION_ONLYFORGN}</li> <li>-1 wenn nicht gesetzt</li> </ul> */ int region; /** B�rsencode der Heimatb�rse (optional) */ String homemarket; /** Depotw�hrung (ISO-W�hrungscode) (optional) */ String depotcurr; /** Nominalzinssatz (optional) */ double zinssatz; /** Einheit der Effektennotiz (optional). M�gliche Werte sind <ul> <li>{@link #EINHEIT_STCK}</li> <li>{@link #EINHEIT_PRCT}</li> <li>{@link #EINHEIT_PRML}</li> <li>{@link #EINHEIT_PNKT}</li> <li>{@link #EINHEIT_ELSE}</li> </ul> */ int effekteinheit; /** M�gliche Orderarten (0 wenn nicht belegt) (optional). <ul> <li>{@link #ORDER_ONLYBUY}</li> <li>{@link #ORDER_ONLYSELL}</li> <li>{@link #ORDER_BOTH}</li> <li>{@link #ORDER_ONLYXETRA}</li> </ul> */ int canorder; /** Nennwert (optional) */ Value nennwert; /** Emissionsdatum (optional) */ Date date_of_emission; } private List<Entry[]> entries; public GVRWPStammData() { entries=new ArrayList<Entry[]>(); } public Entry[] getEntries() { return entries.toArray(new Entry[entries.size()]); } }