Subversion Repository Public Repository

WOX2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package wox.serial.tests;

import ClaimPortal.Requests.*;

/**
 * Version: 1.0
 * Author: Carlos R. Jaimez Gonzalez
 * Author: Simon M. Lucas
 * Site: http://woxserializer.sourceforge.net/
 *
 * Version: 1.5
 * Author: Steven M Lewis
 *
 * Version: 2.0
 * Author: George Smith
 * SVN: http://svn.xp-dev.com/svn/WOX2/
 * Note: XML form for vs 2 is more compact and therefor incompatible with vs 1
 */

public class PatientIdentifierStringifier extends AbstractCompositeIDStringifier
{
    public PatientIdentifierStringifier()
    {
        super( PatientIdentifier.class );
    }

    @Override
    protected String getTypeString( Object pInput )
    {
        return ((PatientIdentifier) pInput).getType().toString();
    }

    @Override
    protected String getIdString( Object pInput )
    {
        return ((PatientIdentifier) pInput).getValue();
    }

    @Override
    protected Object buildObject( String pType, String pID )
    {
        return new PatientIdentifier( PatientIDType.valueOf( pType ), pID );
    }
}

Commits for WOX2/trunk/Java/tests/wox/serial/tests/PatientIdentifierStringifier.java

Diff revisions: vs.
Revision Author Commited Message
15 Diff Diff GeorgeS picture GeorgeS Fri 19 Feb, 2010 22:29:49 +0000
3 GeorgeS picture GeorgeS Thu 04 Feb, 2010 23:53:47 +0000