de.rowa.posps.client.data
Class PersonSearchResultTemplate

java.lang.Object
  extended by de.rowa.posps.client.data.PersonSearchResultTemplate

public abstract class PersonSearchResultTemplate
extends java.lang.Object

Factory class for creating person search result templates for several template types and countries. For each type and country there is only one instance, which can be accessed by calling get(de.rowa.posps.client.data.PersonSearchResultTemplate.Template, PospsCountryCode). To create a new template type, add its name to PersonSearchResultTemplate.Template and create a subclass of this class called (TemplateName)PersonSearchResultTemplate, and implement createTemplateElement(). Country-specific elements are added by a subclass ending with the country code.

Author:
Michael Koch

Nested Class Summary
static class PersonSearchResultTemplate.Template
           
 
Field Summary
protected  javax.xml.datatype.DatatypeFactory DATATYPE_FACTORY
           
protected static de.rowa.wsdl.posps.types.ObjectFactory PPTYPES
          Instance which can be used by subclasses to create posps JAXB elements.
 
Constructor Summary
PersonSearchResultTemplate()
           
 
Method Summary
protected abstract  T createTemplateElement()
           
static de.rowa.wsdl.posps.types.PersonSearchResultElement get(PersonSearchResultTemplate.Template template, PospsCountryCode country)
          Returns the template element for the given template type and country.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PPTYPES

protected static final de.rowa.wsdl.posps.types.ObjectFactory PPTYPES
Instance which can be used by subclasses to create posps JAXB elements.


DATATYPE_FACTORY

protected final javax.xml.datatype.DatatypeFactory DATATYPE_FACTORY
Constructor Detail

PersonSearchResultTemplate

public PersonSearchResultTemplate()
Method Detail

get

public static de.rowa.wsdl.posps.types.PersonSearchResultElement get(PersonSearchResultTemplate.Template template,
                                                                     PospsCountryCode country)
Returns the template element for the given template type and country. There is only a single application-wide instance of this element. The method will create and cache the instance.

Parameters:
template - Type of the template which should be accessed.
country -
Returns:

createTemplateElement

protected abstract T createTemplateElement()
Returns:
New instance of the template element.


Copyright © 2007-2016 Becton Dickinson. All Rights Reserved.