/*
 *  DynNode.java v0.10 20-DEC-1999
 *  Copyright (c) TKK/TLM/Calypso
 *  Author: Alexey Mednonogov
 */

package codec.adapt;

import java.io.*;
import java.util.*;

import codec.*;
import codec.adapt.*;
import codec.convert.*;
import codec.debug.*;
import codec.dyntree.*;
import codec.export.*;
import codec.orb.*;
import codec.pco.*;
import codec.server.*;
import codec.client.*;
import codec.visit.*;
import codec.build.*;

/** Declaration of objects created by CorbaTtcnAdapter. */
final public class DynNode {

   	private String name_;
   	private org.omg.CORBA.Any value_;
   	private int flags_;

   	/** Name of the element as it is defined in Interface Repository.
   	 *  Note that Visitor will not make any check for correspondence of
     *  element name in TTCN PDU and in Interface Repository if and only
     *  if "name" field contains blank (that is, "") string.  Pointer to
     *  <code>null</code> is prohibited. */
   	public String name() { return name_; }

   	/** Currently introspected value. */
   	public org.omg.CORBA.Any value() { return value_; }

   	/** Flags for supporting OpenTTCN-oriented model of introspection.
     *  Structured data under introspection is viewed as a tree with nodes
     *  and leaves and is serialized into a sequence of DynNode's, each
     *  having "flags" set according to the state of tree navigation. */
   	public int flags() { return flags_; }

   	public static final int FLAGS_BEG_OF_NODE = 0;
   	public static final int FLAGS_END_OF_NODE = 1;
   	public static final int FLAGS_LEAF = 2;

   	public DynNode(String _name, org.omg.CORBA.Any _value, int _flags) {

		name_ = _name;
		value_ = _value;
		flags_ = _flags;
	}
}
