notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2170 - in development/planet/users/niclas/iso8583: . elements/src/main/net/dpml/iso8583/data/elements
- From: niclas AT hedhman.org
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2170 - in development/planet/users/niclas/iso8583: . elements/src/main/net/dpml/iso8583/data/elements
- Date: Mon, 28 Mar 2005 15:16:17 -0500
Author: niclas AT hedhman.org
Date: Mon Mar 28 15:16:16 2005
New Revision: 2170
Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java
development/planet/users/niclas/iso8583/iso8583.iws
Log:
Starting to look into the subelements of constructed fields.
Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java
Mon Mar 28 15:16:16 2005
@@ -19,6 +19,8 @@
import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.ConstructedDataElement;
+import net.dpml.iso8583.data.DataElement;
import net.dpml.iso8583.data.representation.N;
import net.dpml.logging.Logger;
import net.dpml.parameters.Parameters;
@@ -35,12 +37,14 @@
* @metro.service type="net.dpml.iso8583.data.DataElement"
*/
public class AmountTransaction extends AbstractDataElement
+ implements ConstructedDataElement
{
/** The ISO8583 bit number */
static private int ISO8583_BIT_NUMBER = 4;
/** ISO8583 Representation formatter and validator. */
static private Representation m_Representation;
+ private DataElement[] m_subelements;
/** Sets up the element type in a generic fashion. */
static
@@ -58,6 +62,10 @@
super( logger );
String value = params.getParameter( "value", "" );
set( value );
+ m_subelements = new DataElement[ 3 ];
+ m_subelements[ 0 ] = new GenericDataElement( logger, new N(3),
"CurrencyCodeAmountTransaction", 1 );
+ m_subelements[ 1 ] = new GenericDataElement( logger, new N(1),
"CurrencyMinorUnitAmountTransaction", 2 );
+ m_subelements[ 2 ] = new GenericDataElement( logger, new N(12),
"ValueAmountTransaction", 3 );
}
public Representation getRepresentation()
@@ -69,4 +77,9 @@
{
return ISO8583_BIT_NUMBER;
}
+
+ public DataElement[] getSubElements()
+ {
+ return m_subelements;
+ }
}
Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java
Mon Mar 28 15:16:16 2005
@@ -21,6 +21,9 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.logging.Logger;
+/** Generic data elements are used for ConstructedDataElements.
+ *
+ */
public class GenericDataElement extends AbstractDataElement
{
private Representation m_rep;
Modified: development/planet/users/niclas/iso8583/iso8583.iws
==============================================================================
--- development/planet/users/niclas/iso8583/iso8583.iws (original)
+++ development/planet/users/niclas/iso8583/iso8583.iws Mon Mar 28 15:16:16
2005
@@ -146,7 +146,7 @@
<option name="HIDE_WARNINGS" value="false" />
</component>
<component name="FileEditorManager" split-orientation="vertical"
split-proportion="0.5">
- <first-group
selected-file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java">
+ <first-group
selected-file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java">
<entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PosCapability.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="620"
vertical-scroll-proportion="0.0">
@@ -156,13 +156,6 @@
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PrimaryAccountNumber.java"
pinned="false">
- <provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1960"
selection-end="1960" vertical-scroll-proportion="0.80551904">
- <folding />
- </state>
- </provider>
- </entry>
<entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/ProcessingCode.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="60" column="0" selection-start="1915"
selection-end="1915" vertical-scroll-proportion="0.80551904">
@@ -211,13 +204,20 @@
</entry>
<entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="23" column="27" selection-start="768"
selection-end="768" vertical-scroll-proportion="0.13797635">
+ <state line="56" column="1" selection-start="1407"
selection-end="1407" vertical-scroll-proportion="0.7884363">
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java"
pinned="false">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="67" column="78" selection-start="2451"
selection-end="2451" vertical-scroll-proportion="0.60578185">
+ <folding />
+ </state>
+ </provider>
+ </entry>
<entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/MerchantCategoryCode.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="36" column="13" selection-start="1209"
selection-end="1209" vertical-scroll-proportion="0.33508542">
@@ -465,13 +465,6 @@
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/DateSettlement.java">
- <provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1914"
selection-end="1914" vertical-scroll-proportion="0.80551904">
- <folding />
- </state>
- </provider>
- </entry>
<entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/FunctionCode.java">
<provider selected="true" editor-type-id="text-editor">
<state line="60" column="0" selection-start="1904"
selection-end="1904" vertical-scroll-proportion="0.80551904">
@@ -562,18 +555,25 @@
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AbstractDataElement.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="23" column="27" selection-start="768"
selection-end="768" vertical-scroll-proportion="0.13797635">
+ <state line="147" column="7" selection-start="5136"
selection-end="5136" vertical-scroll-proportion="0.9605782">
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AbstractDataElement.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="147" column="7" selection-start="5136"
selection-end="5136" vertical-scroll-proportion="0.9605782">
+ <state line="67" column="78" selection-start="2451"
selection-end="2451" vertical-scroll-proportion="0.60578185">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="56" column="1" selection-start="1407"
selection-end="1407" vertical-scroll-proportion="0.7884363">
<folding>
<element signature="imports" expanded="true" />
</folding>
- svn commit: r2170 - in development/planet/users/niclas/iso8583: . elements/src/main/net/dpml/iso8583/data/elements, niclas, 03/28/2005
Archive powered by MHonArc 2.6.24.