Tabnine Logo
GenericComposite
Code IndexAdd Tabnine to your IDE (free)

How to use
GenericComposite
in
ca.uhn.hl7v2.model

Best Java code snippets using ca.uhn.hl7v2.model.GenericComposite (Showing top 6 results out of 315)

origin: ca.uhn.hapi/hapi-base

try {
  final Varies varies = (Varies) type;
  final GenericComposite comp2 = new GenericComposite(type.getMessage());
  varies.setData(comp2);
  comp = getComponent(type, component);
origin: ca.uhn.hapi/hapi-osgi-base

try {
  final Varies varies = (Varies) type;
  final GenericComposite comp2 = new GenericComposite(type.getMessage());
  varies.setData(comp2);
  comp = getComponent(type, component);
origin: ca.uhn.hapi/hapi-base

try {
  if (comp > 1 && GenericPrimitive.class.isAssignableFrom(v.getData().getClass()))
    v.setData(new GenericComposite(v.getMessage()));
} catch (DataTypeException e) {
  throw new RuntimeException("Unexpected exception copying data to generic composite: " + e.getMessage(),
origin: ca.uhn.hapi/hapi-osgi-base

try {
  if (comp > 1 && GenericPrimitive.class.isAssignableFrom(v.getData().getClass()))
    v.setData(new GenericComposite(v.getMessage()));
} catch (DataTypeException e) {
  throw new RuntimeException("Unexpected exception copying data to generic composite: " + e.getMessage(),
origin: ca.uhn.hapi/hapi-base

/**
 * Parses an XML element into a Varies by determining whether the element is primitive or
 * composite, calling setData() on the Varies with a new generic primitive or composite as
 * appropriate, and then calling parse again with the new Type object.
 */
private void parseVaries(Varies datatypeObject, Element datatypeElement)
    throws HL7Exception {
  // figure out what data type it holds
  // short nodeType = datatypeElement.getFirstChild().getNodeType();
  if (!hasChildElement(datatypeElement)) {
    // it's a primitive
    datatypeObject.setData(new GenericPrimitive(datatypeObject.getMessage()));
  } else {
    // it's a composite ... almost know what type, except that we don't have the version
    // here
    datatypeObject.setData(new GenericComposite(datatypeObject.getMessage()));
  }
  parse(datatypeObject.getData(), datatypeElement);
}
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Parses an XML element into a Varies by determining whether the element is primitive or
 * composite, calling setData() on the Varies with a new generic primitive or composite as
 * appropriate, and then calling parse again with the new Type object.
 */
private void parseVaries(Varies datatypeObject, Element datatypeElement)
    throws HL7Exception {
  // figure out what data type it holds
  // short nodeType = datatypeElement.getFirstChild().getNodeType();
  if (!hasChildElement(datatypeElement)) {
    // it's a primitive
    datatypeObject.setData(new GenericPrimitive(datatypeObject.getMessage()));
  } else {
    // it's a composite ... almost know what type, except that we don't have the version
    // here
    datatypeObject.setData(new GenericComposite(datatypeObject.getMessage()));
  }
  parse(datatypeObject.getData(), datatypeElement);
}
ca.uhn.hl7v2.modelGenericComposite

Javadoc

An unspecified Composite datatype that has an undefined number of components, each of which is a Varies. This is used to store Varies data, when the data type is unknown. It is also used to store unrecognized message constituents.

Most used methods

  • <init>
    Creates a generic composite

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • getSystemService (Context)
  • getApplicationContext (Context)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • BoxLayout (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now