index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/Fifo.java | package org.apache.yoko.util;
/** A first-in, first-out holder of stuff */
public interface Fifo<T> extends Sequential<T> {
Object remove();
}
| 5,300 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/Sequential.java | package org.apache.yoko.util;
/** A holder of stuff */
public interface Sequential<T> {
int size();
Place<T> put(T elem);
interface Place<T> {
/**
* Relinquish this place in the sequence.
*
* @return the element if it is successfully removed from the sequence<br>
* or <code>null</code> if the element has already been removed by another operation
*/
T relinquish();
}
}
| 5,301 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/Factory.java | package org.apache.yoko.util;
public interface Factory<V> {
V create();
}
| 5,302 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/Cache.java | package org.apache.yoko.util;
import java.util.Map;
public interface Cache<K, V> {
/** Get the number of cached values */
int size();
/** Get the number of cached values not currently in use */
int idleCount();
/**
* Retrieve the value for the given key.
* The caller must ensure the returned reference is closed
*/
Reference<V> get(K key);
/**
* Retrieve or compute the value for the given key.
* The caller must ensure that the returned reference is closed.
* @return an auto-closeable reference to the cached value
*/
Reference<V> getOrCreate(K key, KeyedFactory<K, V> keyedFactory);
/**
* Retrieve or compute the value for the given key.
* The caller must ensure that the returned reference is closed.
* @return an auto-closeable reference to the cached value
*/
Reference<V> getOrCreate(K key, Factory<V> factory);
/**
* Uncache an item. No cleanup will be performed.
* @throws IllegalStateException if valueRef has already been closed
*/
void remove(Reference<V> ref);
/**
* Uncache an item. No cleanup will be performed.
* @return true iff the item was removed
*/
boolean remove(K key, V value);
/**
* Remove some idle entries.
* @return the number of entries removed
*/
int clean();
Map<K, V> snapshot();
interface Cleaner<V> {void clean(V value);}
}
| 5,303 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/Reference.java | package org.apache.yoko.util;
public interface Reference<T> extends AutoCloseable {
/** Get the referent, which is guaranteed to be non-null */
T get();
/** Finish using the reference */
@Override
void close();
}
| 5,304 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/KeyedFactory.java | package org.apache.yoko.util;
public interface KeyedFactory<K, V> {
V create(K key);
}
| 5,305 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/Fifa.java | package org.apache.yoko.util;
/** A first-in, first-accessed holder of stuff */
public interface Fifa<T> extends Sequential<T> {
T peek();
}
| 5,306 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/yasf/Yasf.java | package org.apache.yoko.util.yasf;
import java.util.BitSet;
import java.util.Collections;
import java.util.EnumSet;
import java.util.Set;
public enum Yasf {
ENUM_FIXED(0);
// TODO - Get ids from OMG assigned for these values
public static final int TAG_YOKO_AUXILLIARY_STREAM_FORMAT = 0xeeeeeeee;
public static final int YOKO_AUXIllIARY_STREAM_FORMAT_SC = 0xeeeeeeee;
public final int itemIndex;
private Yasf(int itemIndex) {
this.itemIndex = itemIndex;
}
public static Set<Yasf> supported() {
return Collections.unmodifiableSet(EnumSet.of(ENUM_FIXED));
}
public static Set<Yasf> toSet(byte[] data) {
if (data == null) return null;
final EnumSet<Yasf> set = EnumSet.noneOf(Yasf.class);
BitSet items = BitSet.valueOf(data);
for (Yasf yasf : values()) {
if (items.get(yasf.itemIndex)) set.add(yasf);
}
return Collections.unmodifiableSet(set);
}
public static byte[] toData(Set<Yasf> yasfSet) {
if (null == yasfSet) return null;
final BitSet bits = new BitSet();
for (Yasf yasf : yasfSet) {
bits.set(yasf.itemIndex);
}
return bits.toByteArray();
}
}
| 5,307 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/yasf/YasfThreadLocal.java | package org.apache.yoko.util.yasf;
import java.util.BitSet;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
public final class YasfThreadLocal {
private static final Logger LOGGER = Logger.getLogger(YasfThreadLocal.class.getName());
private static final ThreadLocal<YasfInfo> yasfInfo = new ThreadLocal<YasfInfo>() {
@Override protected YasfInfo initialValue() {
return new YasfInfo();
}
};
private YasfThreadLocal() {}
private static final class YasfInfo {
public Frame head = Frame.DEFAULT;
public boolean override = false;
}
private static final class Frame {
static final Frame DEFAULT = new Frame();
public final Set<Yasf> value;
public final Frame prev;
private Frame() {
this.value = null;
this.prev = this;
}
Frame(Set<Yasf> value, Frame prev) {
this.value = value;
this.prev = prev;
}
}
public static final class YasfOverride implements AutoCloseable {
private final YasfInfo info;
YasfOverride(YasfInfo info) {
this.info = info;
info.override = true;
}
@Override
public void close() {
info.override = false;
}
}
public static YasfOverride override() {
return new YasfOverride(yasfInfo.get());
}
public static void push(Set<Yasf> items) {
final YasfInfo info = yasfInfo.get();
if (LOGGER.isLoggable(Level.FINER))
LOGGER.finer(String.format("YASF thread local version pushed onto stack: %s", items));
info.head = new Frame(items, info.head);
}
public static Set<Yasf> get() {
final YasfInfo info = yasfInfo.get();
final boolean override = info.override;
final Set<Yasf> items = (override) ? null : info.head.value;
if (LOGGER.isLoggable(Level.FINER))
LOGGER.finer(String.format("YASF thread local version retrieved: %s, override is %b", items, override));
return items;
}
public static Set<Yasf> pop() {
final YasfInfo info = yasfInfo.get();
final Set<Yasf> items = info.head.value;
if (LOGGER.isLoggable(Level.FINER))
LOGGER.finer(String.format("YASF thread local version popped from stack: %s", items));
info.head = info.head.prev;
return items;
}
public static void reset() {
if (LOGGER.isLoggable(Level.FINER))
LOGGER.finer("YASF thread local stack reset");
yasfInfo.remove();
}
}
| 5,308 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/VNode.java | package org.apache.yoko.util.concurrent;
public interface VNode<T> extends PNode<T>, NNode<T> {
T get();
void insertAfter(PNode<T> pnode);
void delete();
}
| 5,309 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/ReferenceCountedCache.java | package org.apache.yoko.util.concurrent;
import org.apache.yoko.util.*;
import java.lang.ref.ReferenceQueue;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
public class ReferenceCountedCache<K, V> implements Cache<K,V> {
private final ConcurrentMap<K, CountedEntry<K, V>> map = new ConcurrentHashMap<>();
private final Fifa<CountedEntry<K, V>> idleEntries = new ConcurrentFifo<>();
private volatile int threshold;
private volatile int sweep;
private final Cleaner<V> cleaner;
private final ReferenceQueue<Reference<V>> gcQueue;
/**
* Create a new cache
* @param cleaner the object to use to clean entries
* @param threshold the number of values above which to start cleaning up
* @param sweep the number of unused values to clear up
*/
public ReferenceCountedCache(Cleaner<V> cleaner, int threshold, int sweep) {
this.threshold = threshold;
this.sweep = sweep;
this.cleaner = cleaner;
gcQueue = new ReferenceQueue<>();
}
@Override
public int size() {
return map.size();
}
@Override
public int idleCount() {
return idleEntries.size();
}
@Override
public Reference<V> get(K key) {
CountedEntry<K, V> entry = map.get(key);
if (entry == null) return null;
return entry == null ? null : track(entry.obtain());
}
@Override
public Reference<V> getOrCreate(K key, KeyedFactory<K, V> valueFactory) {
CountedEntry<K,V>.ValueReference result;
do {
CountedEntry<K, V> entry = map.get(key);
if (entry == null) {
// try putting a new entry in the map
CountedEntry<K, V> newEntry = new CountedEntry<>(key, idleEntries);
entry = map.putIfAbsent(key, newEntry);
if (entry == null) {
// this thread won the race to create the new entry
V value = null;
try {
value = valueFactory.create(key);
return track(newEntry.setValue(value));
} finally {
if (value == null) {
// create() threw an exception, so clean up
// and make sure no-one else tries to use this entry
newEntry.abort();
map.remove(key, newEntry);
}
}
}
}
result = entry.obtain();
} while (result == null); // the entry was cleared - try again
return track(result);
}
protected CountedEntry<K,V>.ValueReference track(CountedEntry<K,V>.ValueReference ref) {return ref;}
@Override
public final Reference<V> getOrCreate(K key, final Factory<V> factory) {
return getOrCreate(key, new KeyedFactory<K, V>() {
@Override
public V create(K key) {
return factory.create();
}
});
}
@Override
public void remove(Reference<V> ref) {remove(((CountedEntry<K,V>.ValueReference) ref).invalidateAndGetEntry());}
@Override
public boolean remove(K key, V value) {
if (key == null) return false;
CountedEntry<K, V> entry = map.get(key);
try (Reference ref = entry.obtain();) {
if (ref == null) return false;
if (ref.get() != value) return false;
remove(ref);
return true;
}
}
protected void remove(CountedEntry<K,V> entry) {if (entry != null) map.remove(entry.key, entry);}
@Override
public int clean() {
if (size() <= threshold) return 0;
int removed = 0;
while (removed < sweep) {
CountedEntry<K, V> e = idleEntries.peek();
if (e == null) break;
V clearedValue = e.clear();
if (clearedValue == null) continue;
if (!!!map.remove(e.key, e))
throw new IllegalStateException("Entry already removed");
cleaner.clean(clearedValue);
removed++;
}
return removed;
}
@Override
public Map<K, V> snapshot() {
Map<K, V> result = new HashMap<>();
for (Map.Entry<K,CountedEntry<K, V>> entry : map.entrySet()) {
try (Reference<V> ref = entry.getValue().obtain()){
result.put(entry.getKey(), ref.get());
} catch (NullPointerException ignored) {}
}
return result;
}
}
| 5,310 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/ConcurrentFifo.java | package org.apache.yoko.util.concurrent;
import org.apache.yoko.util.Fifa;
import org.apache.yoko.util.Fifo;
import java.util.concurrent.atomic.AtomicInteger;
import static java.util.Objects.requireNonNull;
/**
* A thread-safe queue that allows concurrent modification of non-adjacent elements.
*/
class ConcurrentFifo<T> implements Fifo<T>, Fifa<T> {
/*
* This class relies on consistent lock ordering. Locks are ALWAYS obtained
* in the order of elements in the queue. The locks used are the monitors
* of the node elements, and each node's monitor guards the relationship
* between that node and its successor. By implication, it guards the other
* node's back reference as well.
*
* So, for a delete operation, two nodes must be locked: the node to be
* deleted, and the previous node, but NOT IN THAT ORDER! Moreover, after
* the previous node is locked, the relationship must be checked to ensure
* it is still current. The convention observed is that next() is only
* accessed while the lock is held, and it is cross-checked against any
* unguarded calls to prev().
*
* NOTE: this is not double-check locking (DCL) because the early access
* never obviates a synchronized block, and results are always checked
* within the guarded section. Therefore, it is not necessary for any of
* the non-final fields to be volatile.
*
* DCL: https://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html#dcl
*
* If inconsistency is detected, all locks are to be released and the
* operation restarted from scratch, unless it can be determined the
* operation has definitively failed due to concurrent modification.
*
* Operations on non-adjacent nodes are concurrent. Concurrent operations
* on a node or on adjacent nodes will contend for monitors, but never
* deadlock.
*/
private final Head<T> head = new Head<>();
private final Foot<T> foot = new Foot<>(head);
protected final AtomicInteger size = new AtomicInteger(0);
@Override
public int size() { return size.get(); }
/**
* Get, without removing it, the oldest remaining element from this FIFO.
* This method does not block and returns an answer consistent with the state of the FIFO at some point.
*
* @return the oldest remaining element or <code>null</code> if the FIFO was empty
*/
@Override
public T peek() {
return recursivePeek(head);
}
/**
* Find the first non-null value.
*/
private T recursivePeek(PNode<T> start) {
synchronized (start) {
NNode<T> nn = start.next();
if (nn == foot) return null;
VNode<T> node = (VNode<T>) nn;
T result = node.get();
return (result == null) ? recursivePeek(node) : result;
}
}
/**
* Add an element to the end of this FIFO.
*
* @param elem must not be <code>null</code>
* @return an object representing the place in the queue
*/
@Override
public Place<T> put(T elem) {
do {
final PNode<T> pnode = foot.prev();
// lock penultimate node
synchronized (pnode) {
// RETRY if structure changed
if (pnode.next() != foot) continue;
// create a new node
final VNode<T> node = createNode(elem);
// insert new node
synchronized (node) {
node.insertAfter(pnode);
size.incrementAndGet();
}
// return place in queue
return new Place<T>() {
@Override
public T relinquish() {
return remove(node);
}
};
}
} while (true);
}
protected VNode<T> createNode(T elem) {
return new StrongNode<>(requireNonNull(elem));
}
/**
* Remove the least recently added element.
*
* @return the removed element, or <code>null</code> if the FIFO was empty.
*/
@Override
public T remove() {
return recursiveRemove(head);
}
/**
* Find and remove the first non-null value
*/
private T recursiveRemove(PNode<T> start) {
synchronized (start) {
NNode<T> nn = start.next();
if (nn == foot) return null;
VNode<T> node = (VNode<T>) nn;
T result = node.get();
if (result == null)
return recursiveRemove(node);
synchronized (node) {
node.delete();
size.decrementAndGet();
return result;
}
}
}
/**
* Remove the specified node from the FIFO, if present.
* @return the element if it was successfully removed,
* otherwise <code>null</code>
*/
protected T remove(VNode<T> node) {
do {
// retrieve previous node
final PNode<T> pNode = node.prev();
// FAIL if node already deleted
if (pNode == null) return null;
// lock previous node
synchronized (pNode) {
// RETRY if structure has changed
if (pNode.next() != node) continue;
// Remove node from chain and report success
synchronized (node) {
node.delete();
size.decrementAndGet();
}
return node.get();
}
} while (true);
}
}
| 5,311 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/Foot.java | package org.apache.yoko.util.concurrent;
import static java.util.Objects.requireNonNull;
final class Foot<T> implements NNode<T> {
private PNode<T> prev;
public PNode<T> prev() {return prev;}
public void prev(PNode<T> pnode) {prev = pnode;}
Foot(Head<T> head) {
this.prev = requireNonNull(head);
head.next(this);
}
} | 5,312 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/CountedEntry.java | package org.apache.yoko.util.concurrent;
import org.apache.yoko.util.Reference;
import org.apache.yoko.util.Sequential;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicInteger;
/**
* A thread-safe, reference-counting entry for use in a cache.
* If threads race to call @link{#clear} and @link{#obtain},
* one or other method will return <code>null</code>.
* <br>
* Entries with a reference count of zero will be put onto the
* provided @link{Sequential} object, and removed on successful
* calls to either @link{#clear} or @link{#obtain}.
*/
class CountedEntry<K, V> {
private static final int CLEANED = Integer.MIN_VALUE;
private static final int NOT_READY = -1;
private static final int IDLE = -2;
private final AtomicInteger refCount = new AtomicInteger(NOT_READY);
private final Sequential<CountedEntry<K, V>> idleEntries;
private Sequential.Place<?> idlePlace;
private V value;
final K key;
/** Create a not-yet-ready CountedEntry - the next operation must be to call setValue() or abort() */
CountedEntry(K key, Sequential<CountedEntry<K, V>> idleEntries) {
this.key = key;
this.idleEntries = idleEntries;
}
ValueReference setValue(V value) {
this.value = Objects.requireNonNull(value);
notifyReady(1);
return new ValueReference();
}
void abort() {
assert value == null;
notifyReady(CLEANED);
}
private synchronized void notifyReady(int newCount) {
boolean success = refCount.compareAndSet(NOT_READY, newCount);
assert success;
this.notifyAll();
}
private synchronized void blockWhileNotReady() {
while (refCount.get() == NOT_READY) {
try {
this.wait();
} catch (InterruptedException ignored) {
}
}
}
// Acquire a reference to this entry.
private boolean acquire() {
RESPIN: do {
int oldCount = refCount.get();
switch (oldCount) {
case CLEANED:
// terminal state - must fail
return false;
case NOT_READY:
blockWhileNotReady();
continue RESPIN;
case IDLE:
// grab the ref while it's idle or start again
if (!!!refCount.compareAndSet(IDLE, NOT_READY)) continue RESPIN;
// remove from the idle list
Object self = idlePlace.relinquish();
assert this == self;
idlePlace = null;
// let other threads know this entry is accessible again
notifyReady(1);
return true;
default:
// increment the value retrieved or start again
if (!!!refCount.compareAndSet(oldCount, oldCount + 1)) continue RESPIN;
return true;
}
} while (true);
}
// Release a reference to this entry. Only the owner of the reference should call this method.
private boolean release() {
int newCount = refCount.decrementAndGet();
if (newCount != 0) return true;
// try to IDLE this entry
if (!!!refCount.compareAndSet(0, NOT_READY))
// some other thread revived or purged this entry, so no need to IDLE it now
return true;
idlePlace = idleEntries.put(this);
notifyReady(IDLE);
return true;
}
// Mark this entry unusable. Return value if entry is modified, null otherwise.
V clear() {
if (!!! refCount.compareAndSet(IDLE, CLEANED)) return null;
// safe to read/update idlePlace since this is the only thread that has moved it from IDLE
try {
Object self = idlePlace.relinquish();
assert self == this;
return value;
} finally {
value = null;
idlePlace = null;
}
}
ValueReference obtain() {return acquire() ? new ValueReference() : null;}
/** Clear an entry that still has valid references */
private CountedEntry<K, V> purge() {
RESPIN: do {
int oldCount = refCount.get();
if (oldCount == CLEANED) return null;
if (oldCount < 1) throw new IllegalStateException();
if (!!! refCount.compareAndSet(oldCount, CLEANED)) continue RESPIN;
return this;
} while (true);
}
final class ValueReference implements Reference<V> {
private final ReferenceCloserTask closer = new ReferenceCloserTask();
public V get() {return value;}
public void close() {closer.run();}
CountedEntry<K, V> invalidateAndGetEntry() {return closer.purge();}
Runnable getCloserTask() {return closer;}
}
/**
* In order to drive cleanup after a ValueReference becomes unreachable,
* we need to store the clean up details in a separate object that holds
* no strong reference back to the ValueReference object
*/
final class ReferenceCloserTask implements Runnable {
boolean closed;
public synchronized void run() {closed = closed || release();}
synchronized CountedEntry<K,V> purge() {
if (closed) throw new IllegalStateException();
closed = true;
return CountedEntry.this.purge();
}
}
}
| 5,313 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/NNode.java | package org.apache.yoko.util.concurrent;
interface NNode<T> {
PNode<T> prev();
void prev(PNode<T> pnode);
} | 5,314 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/WeakConcurrentFifo.java | package org.apache.yoko.util.concurrent;
import org.apache.yoko.util.KeyedFactory;
import java.lang.ref.ReferenceQueue;
import static java.util.Objects.requireNonNull;
public class WeakConcurrentFifo<T> extends ConcurrentFifo<T> {
private final ReferenceQueue<T> refQueue = new ReferenceQueue<>();
private final KeyedFactory<? super T, Runnable> cleanupFactory;
WeakConcurrentFifo(KeyedFactory<? super T, Runnable> cleanupFactory) {
this.cleanupFactory = requireNonNull(cleanupFactory);
}
@Override
public int size() {
cleanup();
return super.size();
}
@Override
public T peek() {
cleanup();
return super.peek();
}
@Override
public Place<T> put(T elem) {
cleanup();
return super.put(elem);
}
@Override
public T remove() {
cleanup();
return super.remove();
}
@Override
protected VNode<T> createNode(T elem) {
return new WeakNode<>(elem, refQueue, cleanupFactory.create(elem));
}
private void cleanup() {
do {
@SuppressWarnings("unchecked")
WeakNode<T> wn = (WeakNode<T>) refQueue.poll();
if (wn == null) return;
cleanup(wn);
} while (true);
}
private void cleanup(WeakNode<T> wn) {
RESPIN: do {
PNode<T> prev = wn.prev();
if (prev == null) return; // this node is already removed
synchronized (prev) {
if (wn.prev() != prev) continue RESPIN; // something changed!
synchronized (wn) {
wn.delete();
size.decrementAndGet();
wn.cleanup.run();
return;
}
}
} while (true);
}
}
| 5,315 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/PNode.java | package org.apache.yoko.util.concurrent;
interface PNode<T> {
NNode<T> next();
void next(NNode<T> nnode);
} | 5,316 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/StrongNode.java | package org.apache.yoko.util.concurrent;
final class StrongNode<T> implements VNode<T> {
private final T value;
private PNode<T> prev;
private NNode<T> next;
StrongNode(T value) {this.value = value;}
public PNode<T> prev() {return prev;}
public NNode<T> next() {return next;}
public void prev(PNode<T> pnode) {prev = pnode;}
public void next(NNode<T> nnode) {next = nnode;}
public T get() {return value;}
public void insertAfter(PNode<T> pnode) {
NNode<T> nnode = pnode.next();
this.next = nnode;
this.prev = pnode;
nnode.prev(this);
pnode.next(this);
}
public void delete() {
this.prev.next(this.next);
this.next.prev(this.prev);
this.prev = null;
this.next = null;
}
} | 5,317 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/Head.java | package org.apache.yoko.util.concurrent;
final class Head<T> implements PNode<T> {
private NNode<T> next;
public NNode<T> next() {return next;}
public void next(NNode<T> nnode) {next = nnode;}
} | 5,318 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/WeakCountedCache.java | package org.apache.yoko.util.concurrent;
import org.apache.yoko.util.KeyedFactory;
public class WeakCountedCache<K, V> extends ReferenceCountedCache<K, V> {
private final WeakConcurrentFifo<CountedEntry<K,V>.ValueReference> referenceTracker
= new WeakConcurrentFifo<>(new CleanupFactory());
/**
* Create a new cache
*
* @param cleaner the object to use to clean entries
* @param threshold the number of values above which to start cleaning up
* @param sweep the number of unused values to clear up
*/
public WeakCountedCache(Cleaner<V> cleaner, int threshold, int sweep) {
super(cleaner, threshold, sweep);
}
@Override
protected CountedEntry<K,V>.ValueReference track(CountedEntry<K,V>.ValueReference ref) {
if (ref != null)
referenceTracker.put(ref);
return ref;
}
private final class CleanupFactory implements KeyedFactory<CountedEntry<K,V>.ValueReference, Runnable> {
public Runnable create(CountedEntry<K, V>.ValueReference key) {
// Do NOT keep the key around, since this must only be held weakly.
// Instead, keep the closer task so we can clean up after the key is collected.
// Subsequent calls to close do nothing, so it's safe to run this multiple times.
return key.getCloserTask();
}
}
}
| 5,319 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/concurrent/WeakNode.java | package org.apache.yoko.util.concurrent;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
final class WeakNode<T> extends WeakReference<T> implements VNode<T> {
final Runnable cleanup;
private PNode<T> prev;
private NNode<T> next;
WeakNode(T value, ReferenceQueue<T> q, Runnable cleanup) {
super(value, q);
this.cleanup = cleanup;
}
public PNode<T> prev() {return prev;}
public NNode<T> next() {return next;}
public void prev(PNode<T> pnode) {prev = pnode;}
public void next(NNode<T> nnode) {next = nnode;}
public void insertAfter(PNode<T> pnode) {
NNode<T> nnode = pnode.next();
this.next = nnode;
this.prev = pnode;
nnode.prev(this);
pnode.next(this);
}
public void delete() {
this.prev.next(this.next);
this.next.prev(this.prev);
this.prev = null;
this.next = null;
}
} | 5,320 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/cmsf/CmsfThreadLocal.java | package org.apache.yoko.util.cmsf;
import java.util.logging.Level;
import java.util.logging.Logger;
public final class CmsfThreadLocal {
private static final Logger LOGGER = Logger.getLogger(CmsfThreadLocal.class.getName());
private static final ThreadLocal<CmsfInfo> cmsfInfo = new ThreadLocal<CmsfInfo>() {
@Override protected CmsfInfo initialValue() {
return new CmsfInfo();
}
};
private CmsfThreadLocal() {}
private static final class CmsfInfo {
public Frame head = Frame.DEFAULT;
public boolean override = false;
}
private static final class Frame {
static final Frame DEFAULT = new Frame();
public final Version version;
public final Frame prev;
private Frame() {
this.version = Version.CMSFv1;
this.prev = this;
}
Frame(Version version, Frame prev) {
this.version = version;
this.prev = prev;
}
}
private enum Version {
CMSFv1(1), CMSFv2(2);
public final byte value;
private Version(int value) {
this.value = (byte)(value & 0xff);
}
static Version get(byte value) {
return (value >= 2) ? CMSFv2 : CMSFv1;
}
}
public static final class CmsfOverride implements AutoCloseable {
private final CmsfInfo info;
CmsfOverride(CmsfInfo info) {
this.info = info;
info.override = true;
}
@Override
public void close() {
info.override = false;
}
}
public static CmsfOverride override() {
return new CmsfOverride(cmsfInfo.get());
}
public static void push(byte cmsfv) {
final CmsfInfo info = cmsfInfo.get();
final Version version = Version.get(cmsfv);
if (LOGGER.isLoggable(Level.FINER))
LOGGER.finer(String.format("CMSF thread local version pushed onto stack: %s", version));
info.head = new Frame(version, info.head);
}
public static byte get() {
final CmsfInfo info = cmsfInfo.get();
final boolean override = info.override;
final Version version = (override) ? Version.CMSFv1 : info.head.version;
if (LOGGER.isLoggable(Level.FINER))
LOGGER.finer(String.format("CMSF thread local version retrieved: %s, override is %b", version, override));
return version.value;
}
public static byte pop() {
final CmsfInfo info = cmsfInfo.get();
final Version version = info.head.version;
if (LOGGER.isLoggable(Level.FINER))
LOGGER.finer(String.format("CMSF thread local version popped from stack: %s", version));
info.head = info.head.prev;
return version.value;
}
public static void reset() {
if (LOGGER.isLoggable(Level.FINER))
LOGGER.finer("CMSF thread local stack reset");
cmsfInfo.remove();
}
}
| 5,321 |
0 | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/main/java/org/apache/yoko/util/cmsf/RepIds.java | package org.apache.yoko.util.cmsf;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Pattern;
import javax.rmi.CORBA.Util;
public enum RepIds {
;
public interface Query {
public Query suffix(String suffix);
public Query codebase(String codebase);
public Class<?> toClass();
public String toClassName();
}
private static final class QueryImpl implements Query {
public final String repid;
public final String suffix;
public final String codebase;
private QueryImpl(String repid) {
this(Objects.requireNonNull(repid), "", null);
}
private QueryImpl(String repid, String suffix, String codebase) {
this.repid = repid;
this.suffix = suffix;
this.codebase = codebase;
}
@Override
public QueryImpl suffix(String suffix) {
return new QueryImpl(repid, Objects.requireNonNull(suffix), codebase);
}
@Override
public QueryImpl codebase(String codebase) {
return new QueryImpl(repid, suffix, codebase);
}
@Override
public Class<?> toClass() {
return RepIds.toClass(this);
}
@Override
public String toClassName() {
return RepIds.toClassName(this);
}
}
private static final Logger LOGGER = Logger.getLogger(RepIds.class.getName());
public static Query query(String repid) {
return new QueryImpl(repid);
}
private static Class<?> toClass(final QueryImpl query) {
final String repid = query.repid;
final String suffix = query.suffix;
final String codebase = query.codebase;
if (LOGGER.isLoggable(Level.FINE))
LOGGER.fine(String.format("Searching for class from repid \"%s\" using suffix \"%s\"", repid, suffix));
Class<?> result = null;
//Special case IDL:omg.org/CORBA/WStringValue:1.0
if ("IDL:omg.org/CORBA/WStringValue:1.0".equals(repid) && "".equals(suffix)) return String.class;
final String className = toClassName(query);
if (LOGGER.isLoggable(Level.FINE))
LOGGER.fine(String.format("Class name from repid \"%s\" using suffix \"%s\" is \"%s\"", repid, suffix, className));
if (className != null) {
try {
// get the appropriate class for the loading.
ClassLoader loader = Thread.currentThread().getContextClassLoader();
result = Util.loadClass(className, codebase, loader);
} catch (ClassNotFoundException ex) {
if (LOGGER.isLoggable(Level.FINE))
LOGGER.fine(String.format("Class \"%s\" not found", className));
// ignore
}
}
return result;
}
private static final Pattern dotPattern = Pattern.compile(Pattern.quote("."));
private static final Pattern slashPattern = Pattern.compile(Pattern.quote("/"));
private static String toClassName(QueryImpl query) {
final String repid = query.repid;
final String suffix = query.suffix;
//Special case IDL:omg.org/CORBA/WStringValue:1.0
if ("IDL:omg.org/CORBA/WStringValue:1.0".equals(repid) && "".equals(suffix)) return String.class.getName();
String result = null;
if (repid.startsWith("IDL:")) {
result = idlToClassName(repid);
} else if (repid.startsWith("RMI:")) {
result = rmiToClassName(repid);
}
if (result != null) {
result += suffix;
result = removeUnicodeEscapes(result);
}
return result;
}
private static String rmiToClassName(final String repid) {
String result;
final int end = repid.indexOf (':', 4);
result = end < 0 ? repid.substring (4) : repid.substring (4, end);
return result;
}
private static String idlToClassName(final String repid) {
try {
final StringBuilder sb = new StringBuilder(repid.length());
final int end = repid.lastIndexOf(':');
String s = end < 0 ? repid.substring(4) : repid.substring(4, end);
//
// reverse order of dot-separated name components up
// till the first slash.
//
final int firstSlash = s.indexOf('/');
if (firstSlash > 0) {
String prefix = s.substring(0, firstSlash);
String[] elems = dotPattern.split(prefix);
Collections.reverse(Arrays.asList(elems)); //reverses the order in the underlying array - i.e. 'elems'
for (String elem: elems) {
sb.append(fixName(elem)).append('.');
}
s = s.substring(firstSlash + 1);
}
//
// Append slash-separated name components ...
//
for (String elem: slashPattern.split(s)) {
sb.append(fixName(elem)).append('.');
}
sb.deleteCharAt(sb.length() - 1); // eliminate final '.'
return sb.toString();
} catch (IndexOutOfBoundsException ex) {
// id has bad format
return null;
}
}
private static String removeUnicodeEscapes(String in) {
// if no escape sequences are in the string, this is easy
int escape = in.indexOf("\\U");
if (escape < 0) {
return in;
}
StringBuilder out = new StringBuilder(in.length());
int start = 0;
while (escape >= 0) {
out.append(in.substring(start, escape));
// step over the escape sequence
escape += 2;
int value = 0;
for (int i=0; i<4; i++) {
char ch = in.charAt(escape++);
switch (ch) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
value = (value << 4) + ch - '0';
break;
case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
value = (value << 4) + 10 + ch - 'a';
break;
case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
value = (value << 4) + 10 + ch - 'A';
break;
default:
// not sure what to do here. Just treat it as a 0 nibble
value = (value << 4);
}
}
// now append this as a char value
out.append((char)value);
// now step and find the next one
start = escape;
escape = in.indexOf("\\U", escape);
}
// don't forget the trailing segment
if (start < in.length()) {
out.append(in.substring(start));
}
return out.toString();
}
private static final Set<String> keywords = createStringSet(
"abstract", "assert", "boolean", "break", "byte", "case",
"catch", "char", "class", "clone", "const", "continue",
"default", "do", "double", "else", "equals", "extends",
"false", "final", "finalize", "finally", "float", "for",
"getClass", "goto", "hashCode", "if", "implements", "import",
"instanceof", "int", "interface", "long", "native", "new",
"notify", "notifyAll", "null", "package", "private",
"protected", "public", "return", "short", "static", "super",
"switch", "synchronized", "this", "throw", "throws",
"toString", "transient", "true", "try", "void", "volatile",
"wait", "while");
private static Set<String> createStringSet(String...strings) {
return Collections.unmodifiableSet(new HashSet<String>(Arrays.asList(strings)));
}
private static final List<String> reservedSuffixes = createStringList(
"Helper", "Holder", "Operations", "POA",
"POATie", "Package", "ValueFactory");
private static List<String> createStringList(String...strings) {
return Collections.unmodifiableList(Arrays.asList(strings));
}
private static String fixName(String name) {
assert(name.indexOf('.') == -1); // Not for absolute names
int nameLen = name.length();
if (nameLen == 0)
return name;
if (keywords.contains(name)) return "_" + name;
//
// Prepend an underscore for each of the reserved suffixes
//
String result = name;
String curr = name;
OUTER_LOOP: while (true) {
for (String reservedSuffix: reservedSuffixes) {
if (curr.endsWith(reservedSuffix)) {
result = "_" + result;
int currLength = curr.length();
int resLength = reservedSuffix.length();
if (currLength == resLength)
return result;
curr = curr.substring(0, currLength - resLength);
continue OUTER_LOOP;
}
}
return result;
}
}
}
| 5,322 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbstractSubHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstractSub:1.0
//
final public class TestAbstractSubHelper
{
public static void
insert(org.omg.CORBA.Any any, TestAbstractSub val)
{
any.insert_Object(val, type());
}
public static TestAbstractSub
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return narrow(any.extract_Object());
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_interface_tc(id(), "TestAbstractSub");
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestAbstractSub:1.0";
}
public static TestAbstractSub
read(org.omg.CORBA.portable.InputStream in)
{
org.omg.CORBA.Object _ob_v = in.read_Object();
try
{
return (TestAbstractSub)_ob_v;
}
catch(ClassCastException ex)
{
}
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)_ob_v;
_TestAbstractSubStub _ob_stub = new _TestAbstractSubStub();
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestAbstractSub val)
{
out.write_Object(val);
}
public static TestAbstractSub
narrow(java.lang.Object val)
{
if(val != null)
{
if(val instanceof org.omg.CORBA.Object)
return narrow((org.omg.CORBA.Object)val);
throw new org.omg.CORBA.BAD_PARAM();
}
return null;
}
public static TestAbstractSub
unchecked_narrow(java.lang.Object val)
{
if(val != null)
{
if(val instanceof org.omg.CORBA.Object)
return unchecked_narrow((org.omg.CORBA.Object)val);
throw new org.omg.CORBA.BAD_PARAM();
}
return null;
}
public static TestAbstractSub
narrow(org.omg.CORBA.Object val)
{
if(val != null)
{
try
{
return (TestAbstractSub)val;
}
catch(ClassCastException ex)
{
}
if(val._is_a(id()))
{
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_TestAbstractSubStub _ob_stub = new _TestAbstractSubStub();
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)val;
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
throw new org.omg.CORBA.BAD_PARAM();
}
return null;
}
public static TestAbstractSub
unchecked_narrow(org.omg.CORBA.Object val)
{
if(val != null)
{
try
{
return (TestAbstractSub)val;
}
catch(ClassCastException ex)
{
}
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_TestAbstractSubStub _ob_stub = new _TestAbstractSubStub();
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)val;
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
return null;
}
}
| 5,323 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueAIHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueAI:1.0
//
final public class TestValueAIHelper
{
public static void
insert(org.omg.CORBA.Any any, TestValueAI val)
{
any.insert_Value(val, type());
}
public static TestValueAI
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestValueAI)
return (TestValueAI)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[1];
members[0] = new org.omg.CORBA.ValueMember();
members[0].name = "count";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
members[0].access = org.omg.CORBA.PUBLIC_MEMBER.value;
typeCode_ = orb.create_value_tc(id(), "TestValueAI", org.omg.CORBA.VM_NONE.value, null, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestValueAI:1.0";
}
public static TestValueAI
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestValueAI)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestValueAI val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
public static TestValueAI
create(org.omg.CORBA.ORB orb,
int l)
{
TestValueAIValueFactory _ob_f = _OB_getFactory(orb);
return _ob_f.create(l);
}
private static TestValueAIValueFactory
_OB_getFactory(org.omg.CORBA.ORB orb)
{
org.omg.CORBA.portable.ValueFactory _ob_f = ((org.omg.CORBA_2_3.ORB)orb).lookup_value_factory(id());
if(_ob_f == null)
throw new org.omg.CORBA.MARSHAL(1, org.omg.CORBA.CompletionStatus.COMPLETED_NO);
return (TestValueAIValueFactory)_ob_f;
}
}
| 5,324 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAnonSeqBoxHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAnonSeqBox:1.0
//
final public class TestAnonSeqBoxHelper implements org.omg.CORBA.portable.BoxedValueHelper
{
private static final TestAnonSeqBoxHelper _instance = new TestAnonSeqBoxHelper();
public static void
insert(org.omg.CORBA.Any any, short[] val)
{
any.insert_Value((java.io.Serializable)val, type());
}
public static short[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof short[])
return (short[])_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_value_box_tc(id(), "TestAnonSeqBox", orb.create_sequence_tc(0, orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_short)));
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestAnonSeqBox:1.0";
}
public static short[]
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (short[])((org.omg.CORBA_2_3.portable.InputStream)in).read_value(_instance);
}
public static void
write(org.omg.CORBA.portable.OutputStream out, short[] val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value((java.io.Serializable)val, _instance);
}
public java.io.Serializable
read_value(org.omg.CORBA.portable.InputStream in)
{
short[] _ob_v;
int len0 = in.read_ulong();
_ob_v = new short[len0];
in.read_short_array(_ob_v, 0, len0);
return (java.io.Serializable)_ob_v;
}
public void
write_value(org.omg.CORBA.portable.OutputStream out, java.io.Serializable val)
{
if(!(val instanceof short[]))
throw new org.omg.CORBA.MARSHAL();
short[] _ob_value = (short[])val;
int len0 = _ob_value.length;
out.write_ulong(len0);
out.write_short_array(_ob_value, 0, len0);
}
public String
get_id()
{
return id();
}
}
| 5,325 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTruncBaseHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestTruncBase:1.0
//
final public class TestTruncBaseHelper
{
public static void
insert(org.omg.CORBA.Any any, TestTruncBase val)
{
any.insert_Value(val, type());
}
public static TestTruncBase
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestTruncBase)
return (TestTruncBase)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[1];
members[0] = new org.omg.CORBA.ValueMember();
members[0].name = "cost";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_float);
members[0].access = org.omg.CORBA.PUBLIC_MEMBER.value;
typeCode_ = orb.create_value_tc(id(), "TestTruncBase", org.omg.CORBA.VM_NONE.value, null, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestTruncBase:1.0";
}
public static TestTruncBase
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestTruncBase)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestTruncBase val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
}
| 5,326 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValue:1.0
//
final public class TestValueHelper
{
public static void
insert(org.omg.CORBA.Any any, TestValue val)
{
any.insert_Value(val, type());
}
public static TestValue
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestValue)
return (TestValue)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[1];
members[0] = new org.omg.CORBA.ValueMember();
members[0].name = "count";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
members[0].access = org.omg.CORBA.PUBLIC_MEMBER.value;
typeCode_ = orb.create_value_tc(id(), "TestValue", org.omg.CORBA.VM_NONE.value, null, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestValue:1.0";
}
public static TestValue
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestValue)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestValue val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
public static TestValue
create(org.omg.CORBA.ORB orb,
int l)
{
TestValueValueFactory _ob_f = _OB_getFactory(orb);
return _ob_f.create(l);
}
private static TestValueValueFactory
_OB_getFactory(org.omg.CORBA.ORB orb)
{
org.omg.CORBA.portable.ValueFactory _ob_f = ((org.omg.CORBA_2_3.ORB)orb).lookup_value_factory(id());
if(_ob_f == null)
throw new org.omg.CORBA.MARSHAL(1, org.omg.CORBA.CompletionStatus.COMPLETED_NO);
return (TestValueValueFactory)_ob_f;
}
}
| 5,327 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTrunc1_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestTrunc1_impl extends TestTrunc1 {
}
| 5,328 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBV:1.0
//
final public class TestOBVHolder implements org.omg.CORBA.portable.Streamable
{
public TestOBV value;
public
TestOBVHolder()
{
}
public
TestOBVHolder(TestOBV initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestOBVHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestOBVHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestOBVHelper.type();
}
}
| 5,329 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestNodeFactory_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestNodeFactory_impl implements TestNodeValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new TestNode_impl(0));
}
public TestNode create(int n) {
return new TestNode_impl(n);
}
public TestNode create_lr(int n, TestNode l, TestNode r) {
TestNode result = new TestNode_impl(n);
result.left = l;
result.right = r;
return result;
}
public static TestNodeValueFactory install(org.omg.CORBA.ORB orb) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
TestNodeValueFactory result = new TestNodeFactory_impl();
orb_2_3.register_value_factory(TestNodeHelper.id(), result);
return result;
}
}
| 5,330 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTruncBaseFactory_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestTruncBaseFactory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new TestTruncBase_impl());
}
public static void install(org.omg.CORBA.ORB orb) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
orb_2_3.register_value_factory(TestTruncBaseHelper.id(),
new TestTruncBaseFactory_impl());
}
}
| 5,331 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueInterface.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueInterface:1.0
//
/***/
public abstract class TestValueInterface implements org.omg.CORBA.portable.StreamableValue,
TestInterfaceOperations
{
//
// IDL:TestValueInterface/count:1.0
//
/***/
public int count;
//
// IDL:TestValueInterface/value_op:1.0
//
/***/
public abstract void
value_op();
private static String[] _OB_truncatableIds_ =
{
TestValueInterfaceHelper.id()
};
public String[]
_truncatable_ids()
{
return _OB_truncatableIds_;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
count = in.read_long();
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
out.write_long(count);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestValueInterfaceHelper.type();
}
}
| 5,332 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestVarStruct.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestVarStruct:1.0
//
/***/
final public class TestVarStruct implements org.omg.CORBA.portable.IDLEntity
{
private static final String _ob_id = "IDL:TestVarStruct:1.0";
public
TestVarStruct()
{
}
public
TestVarStruct(String name,
String email)
{
this.name = name;
this.email = email;
}
public String name;
public String email;
}
| 5,333 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/_TestAbstractStub.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstract:1.0
//
public class _TestAbstractStub extends org.omg.CORBA.portable.ObjectImpl
implements TestAbstract
{
private static final String[] _ob_ids_ =
{
"IDL:TestAbstract:1.0",
};
public String[]
_ids()
{
return _ob_ids_;
}
final public static java.lang.Class _ob_opsClass = TestAbstract.class;
//
// IDL:TestAbstract/abstract_op:1.0
//
public void
abstract_op()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("abstract_op", true);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("abstract_op", _ob_opsClass);
if(_ob_so == null)
continue;
TestAbstract _ob_self = (TestAbstract)_ob_so.servant;
try
{
_ob_self.abstract_op();
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
}
| 5,334 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAnonSeqBoxHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAnonSeqBox:1.0
//
final public class TestAnonSeqBoxHolder implements org.omg.CORBA.portable.Streamable
{
public short[] value;
public
TestAnonSeqBoxHolder()
{
}
public
TestAnonSeqBoxHolder(short[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestAnonSeqBoxHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestAnonSeqBoxHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestAnonSeqBoxHelper.type();
}
}
| 5,335 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTruncBaseHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestTruncBase:1.0
//
final public class TestTruncBaseHolder implements org.omg.CORBA.portable.Streamable
{
public TestTruncBase value;
public
TestTruncBaseHolder()
{
}
public
TestTruncBaseHolder(TestTruncBase initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestTruncBaseHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestTruncBaseHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestTruncBaseHelper.type();
}
}
| 5,336 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/Client.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
import static org.junit.Assert.assertTrue;
import java.util.Properties;
import org.omg.CORBA.*;
import org.omg.PortableServer.*;
import test.obv.TestOBVColoPackage.*;
public class Client extends test.common.TestBase {
static void testValue(ORB orb, TestOBV to) {
java.io.Serializable vb;
TestValue value, v1, v2;
TestValueHolder v1H = new TestValueHolder();
TestValueHolder v2H = new TestValueHolder();
TestValueSub valueSub;
TestValueSub pValueSub;
TestValueSub s1;
TestValueSub s2;
TestAbsValue1 a1;
TestAbsValue2 a2;
TestNode node;
TestNodeHolder nodeH = new TestNodeHolder();
vb = to.get_null_valuebase();
assertTrue(vb == null);
to.set_null_valuebase(null);
valueSub = to.get_null_valuesub();
assertTrue(valueSub == null);
to.set_null_valuesub(null);
a1 = to.get_abs_value1();
assertTrue(a1 != null);
a1.ping1();
to.set_abs_value1(a1);
a2 = to.get_abs_value2();
assertTrue(a2 != null);
a2.ping2();
to.set_abs_value2(a2);
value = to.get_value();
assertTrue(value != null);
value.ping1();
assertTrue(value.count == 500);
to.set_value(value);
valueSub = to.get_valuesub();
assertTrue(valueSub != null);
valueSub.ping1();
valueSub.ping2();
assertTrue(valueSub.count == 501);
assertTrue(valueSub.name.equals("ValueSub"));
to.set_valuesub(valueSub);
value = to.get_valuesub_as_value();
assertTrue(value != null);
value.ping1();
assertTrue(value.count == 501);
pValueSub = (TestValueSub) value;
pValueSub.ping2();
assertTrue(pValueSub.name.equals("ValueSub"));
to.set_valuesub_as_value(value);
to.get_two_values(v1H, v2H);
assertTrue(v1H.value != null);
assertTrue(v2H.value != null);
assertTrue(v1H.value == v2H.value);
v1H.value.ping1();
assertTrue(v1H.value.count == 500);
to.set_two_values(v1H.value, v2H.value);
to.get_two_valuesubs_as_values(v1H, v2H);
assertTrue(v1H.value != null);
assertTrue(v2H.value != null);
v1H.value.ping1();
v2H.value.ping1();
assertTrue(v1H.value.count == v2H.value.count);
s1 = (TestValueSub) v1H.value;
s2 = (TestValueSub) v2H.value;
s1.ping2();
s2.ping2();
assertTrue(s1.name.equals(s2.name));
to.set_two_valuesubs_as_values(v1H.value, v2H.value);
IntHolder count = new IntHolder();
to.get_node(nodeH, count);
assertTrue(count.value == nodeH.value.compute_count());
to.set_node(nodeH.value);
}
static void testCustom(ORB orb, TestOBV to) {
TestCustom cust;
TestCustom pCust;
TestAbsValue1 a1;
cust = to.get_custom();
assertTrue(cust != null);
cust.ping1();
assertTrue(cust.shortVal == -99);
assertTrue(cust.longVal == -123456);
assertTrue(cust.stringVal.equals("CustomVal"));
assertTrue(cust.doubleVal == 100.997);
to.set_custom(cust);
a1 = to.get_abs_custom();
assertTrue(a1 != null);
a1.ping1();
pCust = (TestCustom) a1;
assertTrue(pCust.shortVal == -99);
assertTrue(pCust.longVal == -123456);
assertTrue(pCust.stringVal.equals("CustomVal"));
assertTrue(pCust.doubleVal == 100.997);
to.set_abs_custom(a1);
}
static void testValueBox(ORB orb, TestOBV to) {
int i;
String sb;
sb = to.get_string_box("hi there");
assertTrue(sb != null);
assertTrue(sb.equals("hi there"));
sb = "bye now";
to.set_string_box(sb, "bye now");
TestULongBox ub;
ub = to.get_ulong_box(999);
assertTrue(ub != null);
assertTrue(ub.value == 999);
ub = new TestULongBox(77777);
to.set_ulong_box(ub, 77777);
TestFixStruct fsb;
TestFixStruct fs = new TestFixStruct();
fs.x = 111;
fs.y = 222;
fs.radius = 3.33;
fsb = to.get_fix_struct_box(fs);
assertTrue(fsb != null);
assertTrue(fsb.x == fs.x);
assertTrue(fsb.y == fs.y);
assertTrue(fsb.radius == fs.radius);
fsb = new TestFixStruct(fs.x, fs.y, fs.radius);
to.set_fix_struct_box(fsb, fs);
TestVarStruct vsb;
TestVarStruct vs = new TestVarStruct();
vs.name = "Joe Bob Briggs";
vs.email = "jbb@cheese.com";
vsb = to.get_var_struct_box(vs);
assertTrue(vsb != null);
assertTrue(vsb.name.equals(vs.name));
assertTrue(vsb.email.equals(vs.email));
vsb = new TestVarStruct(vs.name, vs.email);
to.set_var_struct_box(vsb, vs);
TestFixUnion fub;
TestFixUnion fu = new TestFixUnion();
fu.o((byte) 55);
fub = to.get_fix_union_box(fu);
assertTrue(fub != null);
assertTrue(fub.o() == (byte) 55);
fu.d(99.88);
fub = new TestFixUnion();
fub.d(fu.d());
to.set_fix_union_box(fub, fu);
TestVarUnion vub;
TestVarUnion vu = new TestVarUnion();
vu.s("howdy");
vub = to.get_var_union_box(vu);
assertTrue(vub != null);
assertTrue(vub.s().equals("howdy"));
vu.fs(fs);
vub = new TestVarUnion();
vub.fs(vu.fs());
to.set_var_union_box(vub, vu);
short[] asb;
asb = to.get_anon_seq_box(10);
assertTrue(asb != null);
assertTrue(asb.length == 10);
for (i = 0; i < asb.length; i++)
assertTrue(asb[i] == (short) i);
to.set_anon_seq_box(asb, 10);
String[] ssb;
String[] ss = new String[5];
for (i = 0; i < 5; i++) {
ss[i] = "s" + i;
}
ssb = to.get_string_seq_box(ss);
assertTrue(ssb != null);
assertTrue(ssb.length == ss.length);
for (i = 0; i < ssb.length; i++)
assertTrue(ssb[i].equals(ss[i]));
to.set_string_seq_box(ssb, ss);
TestStringBoxStruct stringbox_struct = new TestStringBoxStruct();
//
// Different values.
//
stringbox_struct.a = new String("foo");
stringbox_struct.b = new String("bar");
Any test_any = orb.create_any();
TestStringBoxStructHelper.insert(test_any, stringbox_struct);
TestStringBoxStruct ex_stringbox_struct = null;
ex_stringbox_struct = TestStringBoxStructHelper.extract(test_any);
assertTrue(ex_stringbox_struct.a.equals(stringbox_struct.a));
assertTrue(ex_stringbox_struct.b.equals(stringbox_struct.b));
//
// Double check against constant values in case something happened
// to the original instance.
//
assertTrue(ex_stringbox_struct.a.equals("foo"));
assertTrue(ex_stringbox_struct.b.equals("bar"));
//
// Identical values. This tests a bug in ValueReader that
// prevented the proper resolving of indirections within a
// collection of multiple boxed value types that did not involve
// recursive structures.
//
stringbox_struct.a = new String("foo");
stringbox_struct.b = new String("foo");
TestStringBoxStructHelper.insert(test_any, stringbox_struct);
ex_stringbox_struct = TestStringBoxStructHelper.extract(test_any);
assertTrue(ex_stringbox_struct.a.equals(stringbox_struct.a));
assertTrue(ex_stringbox_struct.b.equals(stringbox_struct.b));
//
// Double check against constant values in case something happened
// to the original instance.
//
assertTrue(ex_stringbox_struct.a.equals("foo"));
assertTrue(ex_stringbox_struct.b.equals("foo"));
}
static void testCollocated(ORB orb, TestOBV to)
throws org.omg.CORBA.UserException {
//
// Resolve Root POA
//
POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
//
// Activate the POA manager
//
POAManager manager = poa.the_POAManager();
manager.activate();
TestValue v1, vr;
TestValueHolder v2 = new TestValueHolder(), v3 = new TestValueHolder();
TestOBVColo_impl coloImpl = new TestOBVColo_impl();
TestOBVColo colo = coloImpl._this(orb);
v1 = to.get_value();
assertTrue(v1 != null);
//
// Test: valuetype arguments
//
v1.count = 111;
colo.set_expected_count(111);
colo.test_value_attribute(null);
vr = colo.test_value_attribute();
assertTrue(vr == null);
vr = colo.test_value_op(null, v2, v3);
assertTrue(vr == null);
assertTrue(v2.value == null);
assertTrue(v3.value == null);
colo.test_value_attribute(v1);
assertTrue(v1.count == 111);
v1.count = 222;
colo.set_expected_count(222);
v2.value = v1;
vr = colo.test_value_op(v1, v2, v3);
assertTrue(vr == v2.value);
assertTrue(v3.value == v2.value);
assertTrue(v1.count == 222);
//
// Test: struct arguments containing valuetypes
//
SV s1 = new SV(), sr;
SVHolder s2 = new SVHolder(), s3 = new SVHolder();
s1.str = "hi";
s1.val = v1;
s1.val.count = 111;
colo.set_expected_count(111);
colo.test_value_struct_attribute(s1);
assertTrue(s1.val.count == 111);
sr = colo.test_value_struct_attribute();
assertTrue(sr.val == null);
s1.val = null;
s2.value = new SV(s1.str, s1.val);
sr = colo.test_value_struct_op(s1, s2, s3);
assertTrue(sr.val == null);
assertTrue(s2.value.val == null);
assertTrue(s3.value.val == null);
s1.val = v1;
s1.val.count = 222;
colo.set_expected_count(222);
s2.value = new SV(s1.str, s1.val);
sr = colo.test_value_struct_op(s1, s2, s3);
assertTrue(sr.val == s2.value.val);
assertTrue(s3.value.val == s2.value.val);
assertTrue(s1.val.count == 222);
//
// Test: union arguments containing valuetypes
//
UV u1 = new UV(), ur;
UVHolder u2 = new UVHolder(), u3 = new UVHolder();
u1.val(v1);
u1.val().count = 111;
colo.set_expected_count(111);
colo.test_value_union_attribute(u1);
assertTrue(u1.val().count == 111);
ur = colo.test_value_union_attribute();
assertTrue(ur.val() == null);
u1.val(null);
u2.value = new UV();
u2.value.val(null);
ur = colo.test_value_union_op(u1, u2, u3);
assertTrue(ur.val() == null);
assertTrue(u2.value.val() == null);
assertTrue(u3.value.val() == null);
u1.val(v1);
u1.val().count = 222;
colo.set_expected_count(222);
u2.value = new UV();
u2.value.val(u1.val());
ur = colo.test_value_union_op(u1, u2, u3);
assertTrue(ur.val() == u2.value.val());
assertTrue(u3.value.val() == u2.value.val());
assertTrue(u1.val().count == 222);
//
// Test: sequence arguments containing valuetypes
//
TestValue[] seq1, seqr;
VSeqHolder seq2 = new VSeqHolder(), seq3 = new VSeqHolder();
v1.count = 111;
seq1 = new TestValue[3];
seq1[0] = v1;
seq1[1] = v1;
seq1[2] = v1;
colo.set_expected_count(111);
colo.test_value_seq_attribute(seq1);
assertTrue(v1.count == 111);
seqr = colo.test_value_seq_attribute();
for (int i = 0; i < seqr.length; i++)
assertTrue(seqr[i] == null);
seq1[0] = null;
seq1[1] = null;
seq1[2] = null;
seq2.value = new TestValue[3];
seqr = colo.test_value_seq_op(seq1, seq2, seq3);
for (int i = 0; i < seqr.length; i++)
assertTrue(seqr[i] == null);
for (int i = 0; i < seq2.value.length; i++)
assertTrue(seq2.value[i] == null);
for (int i = 0; i < seq3.value.length; i++)
assertTrue(seq3.value[i] == null);
v1.count = 222;
seq1[0] = v1;
seq1[1] = v1;
seq1[2] = v1;
colo.set_expected_count(222);
seq2.value = new TestValue[3];
System.arraycopy(seq1, 0, seq2.value, 0, seq1.length);
seqr = colo.test_value_seq_op(seq1, seq2, seq3);
assertTrue(v1.count == 222);
assertTrue(seqr.length == seq1.length);
assertTrue(seq2.value.length == seq1.length);
assertTrue(seq3.value.length == seq1.length);
for (int i = 0; i < seq2.value.length; i++) {
assertTrue(seq2.value[i] == seq2.value[0]);
assertTrue(seqr[i] == seq2.value[0]);
assertTrue(seq3.value[i] == seq2.value[0]);
}
//
// Test: abstract interface arguments
//
TestAbstract abstractInterface = to.get_ai_interface();
TestAbstract abstractValue = to.get_ai_value();
TestValueAI vai = (TestValueAI) abstractValue;
assertTrue(vai != null);
colo.test_abstract_attribute(null);
colo.test_abstract_op(null);
colo.test_abstract_attribute(abstractInterface);
colo.test_abstract_op(abstractInterface);
vai.count = 333;
colo.set_expected_count(333);
colo.test_abstract_attribute(abstractValue);
assertTrue(vai.count == 333);
vai.count = 444;
colo.set_expected_count(444);
colo.test_abstract_op(abstractValue);
assertTrue(vai.count == 444);
}
static void testAbstract(ORB orb, TestOBV to) {
org.omg.CORBA.Object obj;
TestAbstract ai;
TestAbstractSub sub;
java.io.Serializable vb;
TestValueAI v;
Any any;
ai = to.get_ai_interface();
assertTrue(ai != null);
obj = (org.omg.CORBA.Object) ai;
ai.abstract_op();
sub = TestAbstractSubHelper.narrow(ai);
sub.sub_op();
to.set_ai_interface(ai);
any = to.get_ai_interface_any();
obj = any.extract_Object();
assertTrue(obj != null);
sub = TestAbstractSubHelper.narrow(obj);
sub.abstract_op();
sub.sub_op();
to.set_ai_interface_any(any);
ai = to.get_ai_value();
vb = (java.io.Serializable) ai;
ai.abstract_op();
v = (TestValueAI) ai;
assertTrue(v.count == 12345);
to.set_ai_value(ai);
}
static void testTruncated(ORB orb, TestOBV to) {
TestTruncBase truncBase;
TestTrunc1 trunc1;
TestTrunc2 trunc2;
TestAbsValue1 a;
TestValue v;
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
//
// With factory installed, we should be able to downcast to TestTrunc1
//
TestTrunc1Factory_impl.install(orb);
truncBase = to.get_trunc1();
trunc1 = (TestTrunc1) truncBase;
assertTrue(trunc1.cost > 1.99 && trunc1.cost < 2.0);
assertTrue(trunc1.boolVal == true);
a = trunc1.v;
assertTrue(a != null);
v = (TestValue) a;
assertTrue(v.count == 999);
assertTrue(trunc1.shortVal == 12667);
//
// With factory removed, we should not be able to downcast to
// TestTrunc1
//
orb_2_3.unregister_value_factory(TestTrunc1Helper.id());
truncBase = to.get_trunc1();
try {
trunc1 = (TestTrunc1) truncBase;
assertTrue(false);
} catch (ClassCastException ex) {
// expected
}
assertTrue(truncBase.cost > 1.99 && truncBase.cost < 2.0);
//
// With factories installed, we should be able to downcast to
// TestTrunc2
//
TestTrunc1Factory_impl.install(orb);
TestTrunc2Factory_impl.install(orb);
truncBase = to.get_trunc2();
trunc2 = (TestTrunc2) truncBase;
assertTrue(trunc2.cost > 5.99 && trunc2.cost < 6.0);
trunc1 = (TestTrunc1) trunc2.t;
assertTrue(trunc1.cost > 1.99 && trunc1.cost < 2.0);
assertTrue(trunc1.boolVal == true);
a = trunc1.v;
assertTrue(a != null);
v = (TestValue) a;
assertTrue(v.count == 999);
assertTrue(trunc1.shortVal == 12667);
a = trunc2.a;
assertTrue(a != null);
v = (TestValue) a;
assertTrue(v.count == 9999);
assertTrue(trunc2.v == trunc1.v); // indirection
assertTrue(trunc2.b == trunc1); // indirection
//
// Without a factory for TestTrunc1, some nested values of TestTrunc2
// will be truncated
//
orb_2_3.unregister_value_factory(TestTrunc1Helper.id());
truncBase = to.get_trunc2();
trunc2 = (TestTrunc2) truncBase;
assertTrue(trunc2.cost > 5.99 && trunc2.cost < 6.0);
assertTrue(trunc2.t != null);
try {
trunc1 = (TestTrunc1) trunc2.t;
assertTrue(false);
} catch (ClassCastException ex) {
// expected
}
assertTrue(trunc2.t.cost > 1.99 && trunc2.t.cost < 2.0);
a = trunc2.a;
assertTrue(a != null);
v = (TestValue) a;
assertTrue(v.count == 9999);
assertTrue(trunc2.v != null); // indirection
assertTrue(trunc2.v.count == 999); // indirection
assertTrue(trunc2.b == trunc2.t); // indirection
//
// With factory removed, we should not be able to downcast to
// TestTrunc2
//
TestTrunc1Factory_impl.install(orb);
orb_2_3.unregister_value_factory(TestTrunc2Helper.id());
truncBase = to.get_trunc2();
try {
trunc2 = (TestTrunc2) truncBase;
assertTrue(false);
} catch (ClassCastException ex) {
// expected
}
assertTrue(truncBase.cost > 5.99 && truncBase.cost < 6.0);
//
// Leave factories in original state
//
orb_2_3.unregister_value_factory(TestTrunc1Helper.id());
}
static void testAny(ORB orb, TestOBV to) {
TestValue v1;
TestValue v2;
TestValueSub sub;
TestCustom cust;
TestTruncBase base;
TestTrunc1 t1;
TestTrunc2 t2;
TestValueAI ai;
Any any = orb.create_any();
Any av;
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
java.lang.Object ab;
java.io.Serializable vb;
TestAbstract tab;
org.omg.CORBA.Object obj;
//
// Test simple valuetype
//
//
// First, remove factory so that the TypeCode is used to
// unmarshal the data. Then send the any back to the server to
// remarshal the data (again using the TypeCode).
//
orb_2_3.unregister_value_factory(TestValueHelper.id());
av = to.get_value_any();
to.remarshal_any(av);
//
// We cannot extract without a factory installed
//
try {
v2 = TestValueHelper.extract(av);
assertTrue(false);
} catch (MARSHAL ex) {
// expected
}
//
// Install the factory, remarshal again, and extract the value
//
TestValueFactory_impl.install(orb);
to.remarshal_any(av); // uses factory instead of TypeCode
v2 = TestValueHelper.extract(av);
assertTrue(v2 != null);
assertTrue(v2.count == 500);
//
// Test simple valuetype inheritance
//
//
// First, remove factory so that the TypeCode is used to
// unmarshal the data. Then send the any back to the server to
// remarshal the data (again using the TypeCode).
//
orb_2_3.unregister_value_factory(TestValueSubHelper.id());
av = to.get_valuesub_any();
to.remarshal_any(av);
//
// Install the factory, remarshal again, and extract the value
//
TestValueSubFactory_impl.install(orb);
to.remarshal_any(av); // uses factory instead of TypeCode
sub = TestValueSubHelper.extract(av);
assertTrue(sub != null);
assertTrue(sub.count == 501);
assertTrue(sub.name.equals("ValueSub"));
//
// Obtain an any whose TypeCode is TestValue, but whose value is
// TestValueSub. This any cannot be unmarshalled unless the
// factory for TestValueSub is present.
//
orb_2_3.unregister_value_factory(TestValueSubHelper.id());
try {
av = to.get_valuesub_as_value_any();
assertTrue(false);
} catch (MARSHAL ex) {
// expected
}
TestValueSubFactory_impl.install(orb);
av = to.get_valuesub_as_value_any();
v2 = TestValueHelper.extract(av);
assertTrue(v2 != null);
sub = (TestValueSub) v2;
assertTrue(sub.count == 501);
assertTrue(sub.name.equals("ValueSub"));
//
// Test custom valuetype
//
//
// A custom valuetype cannot be unmarshalled in an any without
// the factory
//
orb_2_3.unregister_value_factory(TestCustomHelper.id());
try {
av = to.get_custom_any();
assertTrue(false);
} catch (MARSHAL ex) {
// expected
}
TestCustomFactory_impl.install(orb);
av = to.get_custom_any();
to.remarshal_any(av);
cust = TestCustomHelper.extract(av);
assertTrue(cust != null);
assertTrue(cust.shortVal == (short) -99);
assertTrue(cust.longVal == -123456);
assertTrue(cust.stringVal.equals("CustomVal"));
assertTrue(cust.doubleVal == 100.997);
//
// Simple tests for truncatable valuetypes
//
// Note: Factories are not registered yet
//
// orb_2_3.unregister_value_factory(TestTrunc1Helper.id());
// orb_2_3.unregister_value_factory(TestTrunc2Helper.id());
av = to.get_trunc1_any();
to.remarshal_any(av);
//
// The TestTrunc2 value returned by the server cannot be unmarshalled
// without a factory because it uses indirection into a truncated
// portion of another value
//
av = to.get_trunc2_any();
try {
t2 = TestTrunc2Helper.extract(av);
assertTrue(false);
} catch (BAD_OPERATION ex) {
// expected
}
TestTrunc1Factory_impl.install(orb);
TestTrunc2Factory_impl.install(orb);
av = to.get_trunc1_any();
to.remarshal_any(av);
av = to.get_trunc2_any();
to.remarshal_any(av);
//
// Test truncation
//
//
// Request a TestTrunc1 value with the TestTruncBase TypeCode.
// By removing the factories, the value will be truncated to
// TestTruncBase when the any is unmarshalled.
//
orb_2_3.unregister_value_factory(TestTruncBaseHelper.id());
orb_2_3.unregister_value_factory(TestTrunc1Helper.id());
av = to.get_trunc1_as_base_any();
to.remarshal_any(av);
TestTruncBaseFactory_impl.install(orb);
TestTrunc1Factory_impl.install(orb);
base = TestTruncBaseHelper.extract(av);
assertTrue(base != null);
assertTrue(base.cost > 1.99 && base.cost < 2.0);
try {
// this should fail due to truncation
t1 = (TestTrunc1) base;
assertTrue(false);
} catch (ClassCastException ex) {
// expected
}
//
// Things should work fine with the factories installed
//
av = to.get_trunc1_as_base_any();
to.remarshal_any(av);
base = TestTruncBaseHelper.extract(av);
assertTrue(base != null);
t1 = (TestTrunc1) base;
assertTrue(t1.cost > 1.99 && t1.cost < 2.0);
assertTrue(t1.boolVal == true);
assertTrue(t1.shortVal == (short) 12667);
//
// Request a TestTrunc2 value with the TestTruncBase TypeCode.
// By removing the factories, the value will be truncated to
// TestTruncBase when the any is unmarshalled.
//
orb_2_3.unregister_value_factory(TestTruncBaseHelper.id());
orb_2_3.unregister_value_factory(TestTrunc1Helper.id());
orb_2_3.unregister_value_factory(TestTrunc2Helper.id());
av = to.get_trunc2_as_base_any();
to.remarshal_any(av);
TestTruncBaseFactory_impl.install(orb);
TestTrunc1Factory_impl.install(orb);
TestTrunc2Factory_impl.install(orb);
base = TestTruncBaseHelper.extract(av);
assertTrue(base != null);
assertTrue(base.cost > 5.99 && base.cost < 6.0);
try {
// this should fail due to truncation
t2 = (TestTrunc2) base;
assertTrue(false);
} catch (ClassCastException ex) {
// expected
}
//
// Things should work fine with the factories installed
//
av = to.get_trunc2_as_base_any();
to.remarshal_any(av);
base = TestTruncBaseHelper.extract(av);
assertTrue(base != null);
t2 = (TestTrunc2) base;
assertTrue(t2.cost > 5.99 && t2.cost < 6.0);
//
// Request a TestTrunc2 value with the TestTruncBase TypeCode.
// By removing the factory for TestTrunc2, the value will be
// truncated to TestTruncBase (using the factory for TestTruncBase)
// when the any is unmarshalled.
//
orb_2_3.unregister_value_factory(TestTrunc2Helper.id());
av = to.get_trunc2_as_base_any();
to.remarshal_any(av);
base = TestTruncBaseHelper.extract(av);
assertTrue(base != null);
assertTrue(base.cost > 5.99 && base.cost < 6.0);
try {
t2 = (TestTrunc2) base;
assertTrue(false);
} catch (ClassCastException ex) {
// expected
}
//
// Request a TestTrunc2 value with the TestTrunc2 TypeCode.
// Without the factory for TestTrunc2, the value will be
// truncated to TestTruncBase (using the factory for TestTruncBase)
// when the any is unmarshalled. It must be possible to use
// TestTruncBaseHelper.extract() on this any.
//
av = to.get_trunc2_any();
base = TestTruncBaseHelper.extract(av);
assertTrue(base != null);
assertTrue(base.cost > 5.99 && base.cost < 6.0);
try {
t2 = (TestTrunc2) base;
assertTrue(false);
} catch (ClassCastException ex) {
// expected
}
//
// Leave factories in original state
//
orb_2_3.unregister_value_factory(TestTrunc1Helper.id());
//
// Request an abstract interface representing a valuetype
//
av = to.get_ai_value_any();
tab = TestAbstractHelper.extract(av);
assertTrue(tab != null);
tab.abstract_op();
ai = (TestValueAI) tab;
ai.value_op();
to.set_ai_value_any(av);
//
// Ensure that value sharing works across anys
//
AnyHolder a1 = new AnyHolder();
AnyHolder a2 = new AnyHolder();
to.get_two_value_anys(a1, a2);
v1 = TestValueHelper.extract(a1.value);
v2 = TestValueHelper.extract(a2.value);
assertTrue(v1 != null);
assertTrue(v2 != null);
assertTrue(v1 == v2);
to.set_two_value_anys(a1.value, a2.value);
}
static void testSupported(ORB orb, TestOBV to) {
TestValueInterface val = to.get_value_as_value();
val.value_op();
assertTrue(val.get_count() == val.count);
TestInterface i = to.get_value_as_interface();
assertTrue(val.count == i.get_count());
}
public static int run(ORB orb, String[] args)
throws org.omg.CORBA.UserException {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
//
// Get TestOBV
//
org.omg.CORBA.Object obj = orb.string_to_object("relfile:TestOBV.ref");
if (obj == null) {
System.err.println("cannot read IOR from TestOBV.ref");
return 1;
}
TestOBV to = TestOBVHelper.narrow(obj);
assertTrue(to != null);
//
// Install value factories
//
TestValueFactory_impl.install(orb);
TestValueSubFactory_impl.install(orb);
TestTruncBaseFactory_impl.install(orb);
TestCustomFactory_impl.install(orb);
TestNodeFactory_impl.install(orb);
TestValueAIFactory_impl.install(orb);
TestValueInterfaceFactory_impl.install(orb);
//
// Install valuebox factories
//
ValueBoxFactories.install(orb);
//
// Run tests
//
System.out.print("Testing valuetypes... ");
System.out.flush();
testValue(orb, to);
System.out.println("Done!");
System.out.print("Testing custom marshalling... ");
System.out.flush();
testCustom(orb, to);
System.out.println("Done!");
System.out.print("Testing value boxes... ");
System.out.flush();
testValueBox(orb, to);
System.out.println("Done!");
System.out.print("Testing collocated valuetypes... ");
System.out.flush();
testCollocated(orb, to);
System.out.println("Done!");
System.out.print("Testing abstract interfaces... ");
System.out.flush();
testAbstract(orb, to);
System.out.println("Done!");
System.out.print("Testing truncatable valuetypes... ");
System.out.flush();
testTruncated(orb, to);
System.out.println("Done!");
System.out.print("Testing valuetypes with any... ");
System.out.flush();
testAny(orb, to);
System.out.println("Done!");
System.out.print("Testing supported interfaces... ");
System.out.flush();
testSupported(orb, to);
System.out.println("Done!");
to.deactivate();
return 0;
}
public static void main(String args[]) {
java.util.Properties props = new Properties();
props.putAll(System.getProperties());
props.put("org.omg.CORBA.ORBClass", "org.apache.yoko.orb.CORBA.ORB");
props.put("org.omg.CORBA.ORBSingletonClass",
"org.apache.yoko.orb.CORBA.ORBSingleton");
int status = 0;
ORB orb = null;
try {
orb = ORB.init(args, props);
status = run(orb, args);
} catch (Exception ex) {
ex.printStackTrace();
status = 1;
}
if (orb != null) {
try {
orb.destroy();
} catch (Exception ex) {
ex.printStackTrace();
status = 1;
}
}
System.exit(status);
}
}
| 5,337 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBV:1.0
//
final public class TestOBVHelper
{
public static void
insert(org.omg.CORBA.Any any, TestOBV val)
{
any.insert_Object(val, type());
}
public static TestOBV
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return narrow(any.extract_Object());
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_interface_tc(id(), "TestOBV");
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestOBV:1.0";
}
public static TestOBV
read(org.omg.CORBA.portable.InputStream in)
{
org.omg.CORBA.Object _ob_v = in.read_Object();
try
{
return (TestOBV)_ob_v;
}
catch(ClassCastException ex)
{
}
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)_ob_v;
_TestOBVStub _ob_stub = new _TestOBVStub();
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestOBV val)
{
out.write_Object(val);
}
public static TestOBV
narrow(org.omg.CORBA.Object val)
{
if(val != null)
{
try
{
return (TestOBV)val;
}
catch(ClassCastException ex)
{
}
if(val._is_a(id()))
{
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_TestOBVStub _ob_stub = new _TestOBVStub();
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)val;
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
throw new org.omg.CORBA.BAD_PARAM();
}
return null;
}
public static TestOBV
unchecked_narrow(org.omg.CORBA.Object val)
{
if(val != null)
{
try
{
return (TestOBV)val;
}
catch(ClassCastException ex)
{
}
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_TestOBVStub _ob_stub = new _TestOBVStub();
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)val;
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
return null;
}
}
| 5,338 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValue:1.0
//
final public class TestValueHolder implements org.omg.CORBA.portable.Streamable
{
public TestValue value;
public
TestValueHolder()
{
}
public
TestValueHolder(TestValue initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestValueHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestValueHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestValueHelper.type();
}
}
| 5,339 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbstractSubHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstractSub:1.0
//
final public class TestAbstractSubHolder implements org.omg.CORBA.portable.Streamable
{
public TestAbstractSub value;
public
TestAbstractSubHolder()
{
}
public
TestAbstractSubHolder(TestAbstractSub initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestAbstractSubHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestAbstractSubHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestAbstractSubHelper.type();
}
}
| 5,340 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueAIHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueAI:1.0
//
final public class TestValueAIHolder implements org.omg.CORBA.portable.Streamable
{
public TestValueAI value;
public
TestValueAIHolder()
{
}
public
TestValueAIHolder(TestValueAI initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestValueAIHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestValueAIHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestValueAIHelper.type();
}
}
| 5,341 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueAI.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueAI:1.0
//
/***/
public abstract class TestValueAI implements org.omg.CORBA.portable.StreamableValue,
TestAbstract
{
//
// IDL:TestValueAI/count:1.0
//
/***/
public int count;
//
// IDL:TestValueAI/value_op:1.0
//
/***/
public abstract void
value_op();
private static String[] _OB_truncatableIds_ =
{
TestValueAIHelper.id()
};
public String[]
_truncatable_ids()
{
return _OB_truncatableIds_;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
count = in.read_long();
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
out.write_long(count);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestValueAIHelper.type();
}
}
| 5,342 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/_TestOBVStub.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBV:1.0
//
public class _TestOBVStub extends org.omg.CORBA.portable.ObjectImpl
implements TestOBV
{
private static final String[] _ob_ids_ =
{
"IDL:TestOBV:1.0",
};
public String[]
_ids()
{
return _ob_ids_;
}
final public static java.lang.Class _ob_opsClass = TestOBVOperations.class;
//
// IDL:TestOBV/get_null_valuebase:1.0
//
public java.io.Serializable
get_null_valuebase()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_null_valuebase", true);
in = _invoke(out);
java.io.Serializable _ob_r = org.omg.CORBA.ValueBaseHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_null_valuebase", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
java.io.Serializable _ob_r = _ob_self.get_null_valuebase();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
org.omg.CORBA.ValueBaseHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = org.omg.CORBA.ValueBaseHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_null_valuebase:1.0
//
public void
set_null_valuebase(java.io.Serializable _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_null_valuebase", true);
org.omg.CORBA.ValueBaseHelper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_null_valuebase", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
org.omg.CORBA.ValueBaseHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = org.omg.CORBA.ValueBaseHelper.read(_ob_in);
_ob_self.set_null_valuebase(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_null_valuesub:1.0
//
public TestValueSub
get_null_valuesub()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_null_valuesub", true);
in = _invoke(out);
TestValueSub _ob_r = TestValueSubHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_null_valuesub", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestValueSub _ob_r = _ob_self.get_null_valuesub();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueSubHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestValueSubHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_null_valuesub:1.0
//
public void
set_null_valuesub(TestValueSub _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_null_valuesub", true);
TestValueSubHelper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_null_valuesub", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueSubHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestValueSubHelper.read(_ob_in);
_ob_self.set_null_valuesub(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_abs_value1:1.0
//
public TestAbsValue1
get_abs_value1()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_abs_value1", true);
in = _invoke(out);
TestAbsValue1 _ob_r = TestAbsValue1Helper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_abs_value1", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestAbsValue1 _ob_r = _ob_self.get_abs_value1();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbsValue1Helper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestAbsValue1Helper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_abs_value1:1.0
//
public void
set_abs_value1(TestAbsValue1 _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_abs_value1", true);
TestAbsValue1Helper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_abs_value1", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbsValue1Helper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestAbsValue1Helper.read(_ob_in);
_ob_self.set_abs_value1(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_abs_value2:1.0
//
public TestAbsValue2
get_abs_value2()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_abs_value2", true);
in = _invoke(out);
TestAbsValue2 _ob_r = TestAbsValue2Helper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_abs_value2", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestAbsValue2 _ob_r = _ob_self.get_abs_value2();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbsValue2Helper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestAbsValue2Helper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_abs_value2:1.0
//
public void
set_abs_value2(TestAbsValue2 _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_abs_value2", true);
TestAbsValue2Helper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_abs_value2", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbsValue2Helper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestAbsValue2Helper.read(_ob_in);
_ob_self.set_abs_value2(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_value:1.0
//
public TestValue
get_value()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_value", true);
in = _invoke(out);
TestValue _ob_r = TestValueHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_value", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestValue _ob_r = _ob_self.get_value();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestValueHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_value:1.0
//
public void
set_value(TestValue _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_value", true);
TestValueHelper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_value", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestValueHelper.read(_ob_in);
_ob_self.set_value(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_valuesub:1.0
//
public TestValueSub
get_valuesub()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_valuesub", true);
in = _invoke(out);
TestValueSub _ob_r = TestValueSubHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_valuesub", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestValueSub _ob_r = _ob_self.get_valuesub();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueSubHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestValueSubHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_valuesub:1.0
//
public void
set_valuesub(TestValueSub _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_valuesub", true);
TestValueSubHelper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_valuesub", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueSubHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestValueSubHelper.read(_ob_in);
_ob_self.set_valuesub(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_valuesub_as_value:1.0
//
public TestValue
get_valuesub_as_value()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_valuesub_as_value", true);
in = _invoke(out);
TestValue _ob_r = TestValueHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_valuesub_as_value", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestValue _ob_r = _ob_self.get_valuesub_as_value();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestValueHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_valuesub_as_value:1.0
//
public void
set_valuesub_as_value(TestValue _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_valuesub_as_value", true);
TestValueHelper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_valuesub_as_value", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestValueHelper.read(_ob_in);
_ob_self.set_valuesub_as_value(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_two_values:1.0
//
public void
get_two_values(TestValueHolder _ob_ah0,
TestValueHolder _ob_ah1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_two_values", true);
in = _invoke(out);
_ob_ah0.value = TestValueHelper.read(in);
_ob_ah1.value = TestValueHelper.read(in);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_two_values", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
_ob_self.get_two_values(_ob_ah0, _ob_ah1);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_ah0.value);
TestValueHelper.write(_ob_out, _ob_ah1.value);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_ah0.value = TestValueHelper.read(_ob_in);
_ob_ah1.value = TestValueHelper.read(_ob_in);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_two_values:1.0
//
public void
set_two_values(TestValue _ob_a0,
TestValue _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_two_values", true);
TestValueHelper.write(out, _ob_a0);
TestValueHelper.write(out, _ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_two_values", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_a0);
TestValueHelper.write(_ob_out, _ob_a1);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestValueHelper.read(_ob_in);
_ob_a1 = TestValueHelper.read(_ob_in);
_ob_self.set_two_values(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_two_valuesubs_as_values:1.0
//
public void
get_two_valuesubs_as_values(TestValueHolder _ob_ah0,
TestValueHolder _ob_ah1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_two_valuesubs_as_values", true);
in = _invoke(out);
_ob_ah0.value = TestValueHelper.read(in);
_ob_ah1.value = TestValueHelper.read(in);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_two_valuesubs_as_values", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
_ob_self.get_two_valuesubs_as_values(_ob_ah0, _ob_ah1);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_ah0.value);
TestValueHelper.write(_ob_out, _ob_ah1.value);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_ah0.value = TestValueHelper.read(_ob_in);
_ob_ah1.value = TestValueHelper.read(_ob_in);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_two_valuesubs_as_values:1.0
//
public void
set_two_valuesubs_as_values(TestValue _ob_a0,
TestValue _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_two_valuesubs_as_values", true);
TestValueHelper.write(out, _ob_a0);
TestValueHelper.write(out, _ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_two_valuesubs_as_values", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_a0);
TestValueHelper.write(_ob_out, _ob_a1);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestValueHelper.read(_ob_in);
_ob_a1 = TestValueHelper.read(_ob_in);
_ob_self.set_two_valuesubs_as_values(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_custom:1.0
//
public TestCustom
get_custom()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_custom", true);
in = _invoke(out);
TestCustom _ob_r = TestCustomHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_custom", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestCustom _ob_r = _ob_self.get_custom();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestCustomHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestCustomHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_custom:1.0
//
public void
set_custom(TestCustom _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_custom", true);
TestCustomHelper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_custom", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestCustomHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestCustomHelper.read(_ob_in);
_ob_self.set_custom(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_abs_custom:1.0
//
public TestAbsValue1
get_abs_custom()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_abs_custom", true);
in = _invoke(out);
TestAbsValue1 _ob_r = TestAbsValue1Helper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_abs_custom", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestAbsValue1 _ob_r = _ob_self.get_abs_custom();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbsValue1Helper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestAbsValue1Helper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_abs_custom:1.0
//
public void
set_abs_custom(TestAbsValue1 _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_abs_custom", true);
TestAbsValue1Helper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_abs_custom", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbsValue1Helper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestAbsValue1Helper.read(_ob_in);
_ob_self.set_abs_custom(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_node:1.0
//
public void
get_node(TestNodeHolder _ob_ah0,
org.omg.CORBA.IntHolder _ob_ah1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_node", true);
in = _invoke(out);
_ob_ah0.value = TestNodeHelper.read(in);
_ob_ah1.value = in.read_ulong();
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_node", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
_ob_self.get_node(_ob_ah0, _ob_ah1);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestNodeHelper.write(_ob_out, _ob_ah0.value);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_ah0.value = TestNodeHelper.read(_ob_in);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_node:1.0
//
public void
set_node(TestNode _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_node", true);
TestNodeHelper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_node", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestNodeHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestNodeHelper.read(_ob_in);
_ob_self.set_node(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_string_box:1.0
//
public String
get_string_box(String _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_string_box", true);
out.write_string(_ob_a0);
in = _invoke(out);
String _ob_r = TestStringBoxHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_string_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
String _ob_r = _ob_self.get_string_box(_ob_a0);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestStringBoxHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestStringBoxHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_string_box:1.0
//
public void
set_string_box(String _ob_a0,
String _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_string_box", true);
TestStringBoxHelper.write(out, _ob_a0);
out.write_string(_ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_string_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestStringBoxHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestStringBoxHelper.read(_ob_in);
_ob_self.set_string_box(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_ulong_box:1.0
//
public TestULongBox
get_ulong_box(int _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_ulong_box", true);
out.write_ulong(_ob_a0);
in = _invoke(out);
TestULongBox _ob_r = TestULongBoxHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_ulong_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestULongBox _ob_r = _ob_self.get_ulong_box(_ob_a0);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestULongBoxHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestULongBoxHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_ulong_box:1.0
//
public void
set_ulong_box(TestULongBox _ob_a0,
int _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_ulong_box", true);
TestULongBoxHelper.write(out, _ob_a0);
out.write_ulong(_ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_ulong_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestULongBoxHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestULongBoxHelper.read(_ob_in);
_ob_self.set_ulong_box(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_fix_struct_box:1.0
//
public TestFixStruct
get_fix_struct_box(TestFixStruct _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_fix_struct_box", true);
TestFixStructHelper.write(out, _ob_a0);
in = _invoke(out);
TestFixStruct _ob_r = TestFixStructBoxHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_fix_struct_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestFixStruct _ob_r = _ob_self.get_fix_struct_box(_ob_a0);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestFixStructBoxHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestFixStructBoxHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_fix_struct_box:1.0
//
public void
set_fix_struct_box(TestFixStruct _ob_a0,
TestFixStruct _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_fix_struct_box", true);
TestFixStructBoxHelper.write(out, _ob_a0);
TestFixStructHelper.write(out, _ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_fix_struct_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestFixStructBoxHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestFixStructBoxHelper.read(_ob_in);
_ob_self.set_fix_struct_box(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_var_struct_box:1.0
//
public TestVarStruct
get_var_struct_box(TestVarStruct _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_var_struct_box", true);
TestVarStructHelper.write(out, _ob_a0);
in = _invoke(out);
TestVarStruct _ob_r = TestVarStructBoxHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_var_struct_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestVarStruct _ob_r = _ob_self.get_var_struct_box(_ob_a0);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestVarStructBoxHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestVarStructBoxHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_var_struct_box:1.0
//
public void
set_var_struct_box(TestVarStruct _ob_a0,
TestVarStruct _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_var_struct_box", true);
TestVarStructBoxHelper.write(out, _ob_a0);
TestVarStructHelper.write(out, _ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_var_struct_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestVarStructBoxHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestVarStructBoxHelper.read(_ob_in);
_ob_self.set_var_struct_box(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_fix_union_box:1.0
//
public TestFixUnion
get_fix_union_box(TestFixUnion _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_fix_union_box", true);
TestFixUnionHelper.write(out, _ob_a0);
in = _invoke(out);
TestFixUnion _ob_r = TestFixUnionBoxHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_fix_union_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestFixUnion _ob_r = _ob_self.get_fix_union_box(_ob_a0);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestFixUnionBoxHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestFixUnionBoxHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_fix_union_box:1.0
//
public void
set_fix_union_box(TestFixUnion _ob_a0,
TestFixUnion _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_fix_union_box", true);
TestFixUnionBoxHelper.write(out, _ob_a0);
TestFixUnionHelper.write(out, _ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_fix_union_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestFixUnionBoxHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestFixUnionBoxHelper.read(_ob_in);
_ob_self.set_fix_union_box(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_var_union_box:1.0
//
public TestVarUnion
get_var_union_box(TestVarUnion _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_var_union_box", true);
TestVarUnionHelper.write(out, _ob_a0);
in = _invoke(out);
TestVarUnion _ob_r = TestVarUnionBoxHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_var_union_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestVarUnion _ob_r = _ob_self.get_var_union_box(_ob_a0);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestVarUnionBoxHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestVarUnionBoxHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_var_union_box:1.0
//
public void
set_var_union_box(TestVarUnion _ob_a0,
TestVarUnion _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_var_union_box", true);
TestVarUnionBoxHelper.write(out, _ob_a0);
TestVarUnionHelper.write(out, _ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_var_union_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestVarUnionBoxHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestVarUnionBoxHelper.read(_ob_in);
_ob_self.set_var_union_box(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_anon_seq_box:1.0
//
public short[]
get_anon_seq_box(int _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_anon_seq_box", true);
out.write_ulong(_ob_a0);
in = _invoke(out);
short[] _ob_r = TestAnonSeqBoxHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_anon_seq_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
short[] _ob_r = _ob_self.get_anon_seq_box(_ob_a0);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAnonSeqBoxHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestAnonSeqBoxHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_anon_seq_box:1.0
//
public void
set_anon_seq_box(short[] _ob_a0,
int _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_anon_seq_box", true);
TestAnonSeqBoxHelper.write(out, _ob_a0);
out.write_ulong(_ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_anon_seq_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAnonSeqBoxHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestAnonSeqBoxHelper.read(_ob_in);
_ob_self.set_anon_seq_box(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_string_seq_box:1.0
//
public String[]
get_string_seq_box(String[] _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_string_seq_box", true);
TestStringSeqHelper.write(out, _ob_a0);
in = _invoke(out);
String[] _ob_r = TestStringSeqBoxHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_string_seq_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
String[] _ob_r = _ob_self.get_string_seq_box(_ob_a0);
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestStringSeqBoxHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestStringSeqBoxHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_string_seq_box:1.0
//
public void
set_string_seq_box(String[] _ob_a0,
String[] _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_string_seq_box", true);
TestStringSeqBoxHelper.write(out, _ob_a0);
TestStringSeqHelper.write(out, _ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_string_seq_box", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestStringSeqBoxHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestStringSeqBoxHelper.read(_ob_in);
_ob_self.set_string_seq_box(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_ai_interface:1.0
//
public TestAbstract
get_ai_interface()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_ai_interface", true);
in = _invoke(out);
TestAbstract _ob_r = TestAbstractHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_ai_interface", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestAbstract _ob_r = _ob_self.get_ai_interface();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbstractHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestAbstractHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_ai_interface:1.0
//
public void
set_ai_interface(TestAbstract _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_ai_interface", true);
TestAbstractHelper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_ai_interface", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbstractHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestAbstractHelper.read(_ob_in);
_ob_self.set_ai_interface(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_ai_interface_any:1.0
//
public org.omg.CORBA.Any
get_ai_interface_any()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_ai_interface_any", true);
in = _invoke(out);
org.omg.CORBA.Any _ob_r = in.read_any();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_ai_interface_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_ai_interface_any();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_ai_interface_any:1.0
//
public void
set_ai_interface_any(org.omg.CORBA.Any _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_ai_interface_any", true);
out.write_any(_ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_ai_interface_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
_ob_self.set_ai_interface_any(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_ai_value:1.0
//
public TestAbstract
get_ai_value()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_ai_value", true);
in = _invoke(out);
TestAbstract _ob_r = TestAbstractHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_ai_value", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestAbstract _ob_r = _ob_self.get_ai_value();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbstractHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestAbstractHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_ai_value:1.0
//
public void
set_ai_value(TestAbstract _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_ai_value", true);
TestAbstractHelper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_ai_value", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbstractHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestAbstractHelper.read(_ob_in);
_ob_self.set_ai_value(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_ai_value_any:1.0
//
public org.omg.CORBA.Any
get_ai_value_any()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_ai_value_any", true);
in = _invoke(out);
org.omg.CORBA.Any _ob_r = in.read_any();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_ai_value_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_ai_value_any();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_ai_value_any:1.0
//
public void
set_ai_value_any(org.omg.CORBA.Any _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_ai_value_any", true);
out.write_any(_ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_ai_value_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
_ob_self.set_ai_value_any(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_trunc1:1.0
//
public TestTruncBase
get_trunc1()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_trunc1", true);
in = _invoke(out);
TestTruncBase _ob_r = TestTruncBaseHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_trunc1", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestTruncBase _ob_r = _ob_self.get_trunc1();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestTruncBaseHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestTruncBaseHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_trunc2:1.0
//
public TestTruncBase
get_trunc2()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_trunc2", true);
in = _invoke(out);
TestTruncBase _ob_r = TestTruncBaseHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_trunc2", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestTruncBase _ob_r = _ob_self.get_trunc2();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestTruncBaseHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestTruncBaseHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_value_any:1.0
//
public org.omg.CORBA.Any
get_value_any()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_value_any", true);
in = _invoke(out);
org.omg.CORBA.Any _ob_r = in.read_any();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_value_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_value_any();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_valuesub_any:1.0
//
public org.omg.CORBA.Any
get_valuesub_any()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_valuesub_any", true);
in = _invoke(out);
org.omg.CORBA.Any _ob_r = in.read_any();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_valuesub_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_valuesub_any();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_valuesub_as_value_any:1.0
//
public org.omg.CORBA.Any
get_valuesub_as_value_any()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_valuesub_as_value_any", true);
in = _invoke(out);
org.omg.CORBA.Any _ob_r = in.read_any();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_valuesub_as_value_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_valuesub_as_value_any();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_custom_any:1.0
//
public org.omg.CORBA.Any
get_custom_any()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_custom_any", true);
in = _invoke(out);
org.omg.CORBA.Any _ob_r = in.read_any();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_custom_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_custom_any();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_trunc1_any:1.0
//
public org.omg.CORBA.Any
get_trunc1_any()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_trunc1_any", true);
in = _invoke(out);
org.omg.CORBA.Any _ob_r = in.read_any();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_trunc1_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_trunc1_any();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_trunc1_as_base_any:1.0
//
public org.omg.CORBA.Any
get_trunc1_as_base_any()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_trunc1_as_base_any", true);
in = _invoke(out);
org.omg.CORBA.Any _ob_r = in.read_any();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_trunc1_as_base_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_trunc1_as_base_any();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_trunc2_any:1.0
//
public org.omg.CORBA.Any
get_trunc2_any()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_trunc2_any", true);
in = _invoke(out);
org.omg.CORBA.Any _ob_r = in.read_any();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_trunc2_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_trunc2_any();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_trunc2_as_base_any:1.0
//
public org.omg.CORBA.Any
get_trunc2_as_base_any()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_trunc2_as_base_any", true);
in = _invoke(out);
org.omg.CORBA.Any _ob_r = in.read_any();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_trunc2_as_base_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_trunc2_as_base_any();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/remarshal_any:1.0
//
public void
remarshal_any(org.omg.CORBA.Any _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("remarshal_any", true);
out.write_any(_ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("remarshal_any", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
_ob_self.remarshal_any(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_two_value_anys:1.0
//
public void
get_two_value_anys(org.omg.CORBA.AnyHolder _ob_ah0,
org.omg.CORBA.AnyHolder _ob_ah1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_two_value_anys", true);
in = _invoke(out);
_ob_ah0.value = in.read_any();
_ob_ah1.value = in.read_any();
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_two_value_anys", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
_ob_self.get_two_value_anys(_ob_ah0, _ob_ah1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/set_two_value_anys:1.0
//
public void
set_two_value_anys(org.omg.CORBA.Any _ob_a0,
org.omg.CORBA.Any _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_two_value_anys", true);
out.write_any(_ob_a0);
out.write_any(_ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_two_value_anys", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
_ob_self.set_two_value_anys(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_value_as_value:1.0
//
public TestValueInterface
get_value_as_value()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_value_as_value", true);
in = _invoke(out);
TestValueInterface _ob_r = TestValueInterfaceHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_value_as_value", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
TestValueInterface _ob_r = _ob_self.get_value_as_value();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueInterfaceHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestValueInterfaceHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/get_value_as_interface:1.0
//
public TestInterface
get_value_as_interface()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_value_as_interface", true);
in = _invoke(out);
TestInterface _ob_r = TestInterfaceHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_value_as_interface", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
return _ob_self.get_value_as_interface();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBV/deactivate:1.0
//
public void
deactivate()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("deactivate", true);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("deactivate", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVOperations _ob_self = (TestOBVOperations)_ob_so.servant;
try
{
_ob_self.deactivate();
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
}
| 5,343 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestCustom_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
import static org.junit.Assert.assertTrue;
public class TestCustom_impl extends TestCustom {
public void marshal(org.omg.CORBA.DataOutputStream os) {
//
// We can write anything we want here, we just have to make
// sure we are consistent when unmarshalling.
//
os.write_string("Extra String");
os.write_string(stringVal);
os.write_double(doubleVal);
os.write_long(longVal);
os.write_short(shortVal);
}
public void unmarshal(org.omg.CORBA.DataInputStream is) {
String str = is.read_string();
assertTrue(str.equals("Extra String"));
stringVal = is.read_string();
doubleVal = is.read_double();
longVal = is.read_long();
shortVal = is.read_short();
}
public void ping1() {
// do nothing
}
}
| 5,344 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueAI_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestValueAI_impl extends TestValueAI {
public void abstract_op() {
// do nothing
}
public void value_op() {
// do nothing
}
}
| 5,345 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTruncBase.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestTruncBase:1.0
//
/***/
public abstract class TestTruncBase implements org.omg.CORBA.portable.StreamableValue
{
//
// IDL:TestTruncBase/cost:1.0
//
/***/
public float cost;
private static String[] _OB_truncatableIds_ =
{
TestTruncBaseHelper.id()
};
public String[]
_truncatable_ids()
{
return _OB_truncatableIds_;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
cost = in.read_float();
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
out.write_float(cost);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestTruncBaseHelper.type();
}
}
| 5,346 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbsValue1Holder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbsValue1:1.0
//
final public class TestAbsValue1Holder implements org.omg.CORBA.portable.Streamable
{
public TestAbsValue1 value;
public
TestAbsValue1Holder()
{
}
public
TestAbsValue1Holder(TestAbsValue1 initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestAbsValue1Helper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestAbsValue1Helper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestAbsValue1Helper.type();
}
}
| 5,347 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestCustomHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestCustom:1.0
//
final public class TestCustomHolder implements org.omg.CORBA.portable.Streamable
{
public TestCustom value;
public
TestCustomHolder()
{
}
public
TestCustomHolder(TestCustom initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestCustomHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestCustomHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestCustomHelper.type();
}
}
| 5,348 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbstractSub.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstractSub:1.0
//
/***/
public interface TestAbstractSub extends TestAbstractSubOperations,
org.omg.CORBA.Object,
org.omg.CORBA.portable.IDLEntity
{
}
| 5,349 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueInterfaceFactory_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestValueInterfaceFactory_impl implements
TestValueInterfaceValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new TestValueInterface_impl());
}
public TestValueInterface create(int l) {
TestValueInterface result = new TestValueInterface_impl();
result.count = l;
return result;
}
public static TestValueInterfaceValueFactory install(org.omg.CORBA.ORB orb) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
TestValueInterfaceValueFactory result = new TestValueInterfaceFactory_impl();
orb_2_3.register_value_factory(TestValueInterfaceHelper.id(), result);
return result;
}
}
| 5,350 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestVarUnionBoxHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestVarUnionBox:1.0
//
final public class TestVarUnionBoxHolder implements org.omg.CORBA.portable.Streamable
{
public TestVarUnion value;
public
TestVarUnionBoxHolder()
{
}
public
TestVarUnionBoxHolder(TestVarUnion initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestVarUnionBoxHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestVarUnionBoxHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestVarUnionBoxHelper.type();
}
}
| 5,351 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVPOA.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBV:1.0
//
public abstract class TestOBVPOA
extends org.omg.PortableServer.Servant
implements org.omg.CORBA.portable.InvokeHandler,
TestOBVOperations
{
static final String[] _ob_ids_ =
{
"IDL:TestOBV:1.0",
};
public TestOBV
_this()
{
return TestOBVHelper.narrow(super._this_object());
}
public TestOBV
_this(org.omg.CORBA.ORB orb)
{
return TestOBVHelper.narrow(super._this_object(orb));
}
public String[]
_all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId)
{
return _ob_ids_;
}
public org.omg.CORBA.portable.OutputStream
_invoke(String opName,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
final String[] _ob_names =
{
"deactivate",
"get_abs_custom",
"get_abs_value1",
"get_abs_value2",
"get_ai_interface",
"get_ai_interface_any",
"get_ai_value",
"get_ai_value_any",
"get_anon_seq_box",
"get_custom",
"get_custom_any",
"get_fix_struct_box",
"get_fix_union_box",
"get_node",
"get_null_valuebase",
"get_null_valuesub",
"get_string_box",
"get_string_seq_box",
"get_trunc1",
"get_trunc1_any",
"get_trunc1_as_base_any",
"get_trunc2",
"get_trunc2_any",
"get_trunc2_as_base_any",
"get_two_value_anys",
"get_two_values",
"get_two_valuesubs_as_values",
"get_ulong_box",
"get_value",
"get_value_any",
"get_value_as_interface",
"get_value_as_value",
"get_valuesub",
"get_valuesub_any",
"get_valuesub_as_value",
"get_valuesub_as_value_any",
"get_var_struct_box",
"get_var_union_box",
"remarshal_any",
"set_abs_custom",
"set_abs_value1",
"set_abs_value2",
"set_ai_interface",
"set_ai_interface_any",
"set_ai_value",
"set_ai_value_any",
"set_anon_seq_box",
"set_custom",
"set_fix_struct_box",
"set_fix_union_box",
"set_node",
"set_null_valuebase",
"set_null_valuesub",
"set_string_box",
"set_string_seq_box",
"set_two_value_anys",
"set_two_values",
"set_two_valuesubs_as_values",
"set_ulong_box",
"set_value",
"set_valuesub",
"set_valuesub_as_value",
"set_var_struct_box",
"set_var_union_box"
};
int _ob_left = 0;
int _ob_right = _ob_names.length;
int _ob_index = -1;
while(_ob_left < _ob_right)
{
int _ob_m = (_ob_left + _ob_right) / 2;
int _ob_res = _ob_names[_ob_m].compareTo(opName);
if(_ob_res == 0)
{
_ob_index = _ob_m;
break;
}
else if(_ob_res > 0)
_ob_right = _ob_m;
else
_ob_left = _ob_m + 1;
}
if(_ob_index == -1 && opName.charAt(0) == '_')
{
_ob_left = 0;
_ob_right = _ob_names.length;
String _ob_ami_op =
opName.substring(1);
while(_ob_left < _ob_right)
{
int _ob_m = (_ob_left + _ob_right) / 2;
int _ob_res = _ob_names[_ob_m].compareTo(_ob_ami_op);
if(_ob_res == 0)
{
_ob_index = _ob_m;
break;
}
else if(_ob_res > 0)
_ob_right = _ob_m;
else
_ob_left = _ob_m + 1;
}
}
switch(_ob_index)
{
case 0: // deactivate
return _OB_op_deactivate(in, handler);
case 1: // get_abs_custom
return _OB_op_get_abs_custom(in, handler);
case 2: // get_abs_value1
return _OB_op_get_abs_value1(in, handler);
case 3: // get_abs_value2
return _OB_op_get_abs_value2(in, handler);
case 4: // get_ai_interface
return _OB_op_get_ai_interface(in, handler);
case 5: // get_ai_interface_any
return _OB_op_get_ai_interface_any(in, handler);
case 6: // get_ai_value
return _OB_op_get_ai_value(in, handler);
case 7: // get_ai_value_any
return _OB_op_get_ai_value_any(in, handler);
case 8: // get_anon_seq_box
return _OB_op_get_anon_seq_box(in, handler);
case 9: // get_custom
return _OB_op_get_custom(in, handler);
case 10: // get_custom_any
return _OB_op_get_custom_any(in, handler);
case 11: // get_fix_struct_box
return _OB_op_get_fix_struct_box(in, handler);
case 12: // get_fix_union_box
return _OB_op_get_fix_union_box(in, handler);
case 13: // get_node
return _OB_op_get_node(in, handler);
case 14: // get_null_valuebase
return _OB_op_get_null_valuebase(in, handler);
case 15: // get_null_valuesub
return _OB_op_get_null_valuesub(in, handler);
case 16: // get_string_box
return _OB_op_get_string_box(in, handler);
case 17: // get_string_seq_box
return _OB_op_get_string_seq_box(in, handler);
case 18: // get_trunc1
return _OB_op_get_trunc1(in, handler);
case 19: // get_trunc1_any
return _OB_op_get_trunc1_any(in, handler);
case 20: // get_trunc1_as_base_any
return _OB_op_get_trunc1_as_base_any(in, handler);
case 21: // get_trunc2
return _OB_op_get_trunc2(in, handler);
case 22: // get_trunc2_any
return _OB_op_get_trunc2_any(in, handler);
case 23: // get_trunc2_as_base_any
return _OB_op_get_trunc2_as_base_any(in, handler);
case 24: // get_two_value_anys
return _OB_op_get_two_value_anys(in, handler);
case 25: // get_two_values
return _OB_op_get_two_values(in, handler);
case 26: // get_two_valuesubs_as_values
return _OB_op_get_two_valuesubs_as_values(in, handler);
case 27: // get_ulong_box
return _OB_op_get_ulong_box(in, handler);
case 28: // get_value
return _OB_op_get_value(in, handler);
case 29: // get_value_any
return _OB_op_get_value_any(in, handler);
case 30: // get_value_as_interface
return _OB_op_get_value_as_interface(in, handler);
case 31: // get_value_as_value
return _OB_op_get_value_as_value(in, handler);
case 32: // get_valuesub
return _OB_op_get_valuesub(in, handler);
case 33: // get_valuesub_any
return _OB_op_get_valuesub_any(in, handler);
case 34: // get_valuesub_as_value
return _OB_op_get_valuesub_as_value(in, handler);
case 35: // get_valuesub_as_value_any
return _OB_op_get_valuesub_as_value_any(in, handler);
case 36: // get_var_struct_box
return _OB_op_get_var_struct_box(in, handler);
case 37: // get_var_union_box
return _OB_op_get_var_union_box(in, handler);
case 38: // remarshal_any
return _OB_op_remarshal_any(in, handler);
case 39: // set_abs_custom
return _OB_op_set_abs_custom(in, handler);
case 40: // set_abs_value1
return _OB_op_set_abs_value1(in, handler);
case 41: // set_abs_value2
return _OB_op_set_abs_value2(in, handler);
case 42: // set_ai_interface
return _OB_op_set_ai_interface(in, handler);
case 43: // set_ai_interface_any
return _OB_op_set_ai_interface_any(in, handler);
case 44: // set_ai_value
return _OB_op_set_ai_value(in, handler);
case 45: // set_ai_value_any
return _OB_op_set_ai_value_any(in, handler);
case 46: // set_anon_seq_box
return _OB_op_set_anon_seq_box(in, handler);
case 47: // set_custom
return _OB_op_set_custom(in, handler);
case 48: // set_fix_struct_box
return _OB_op_set_fix_struct_box(in, handler);
case 49: // set_fix_union_box
return _OB_op_set_fix_union_box(in, handler);
case 50: // set_node
return _OB_op_set_node(in, handler);
case 51: // set_null_valuebase
return _OB_op_set_null_valuebase(in, handler);
case 52: // set_null_valuesub
return _OB_op_set_null_valuesub(in, handler);
case 53: // set_string_box
return _OB_op_set_string_box(in, handler);
case 54: // set_string_seq_box
return _OB_op_set_string_seq_box(in, handler);
case 55: // set_two_value_anys
return _OB_op_set_two_value_anys(in, handler);
case 56: // set_two_values
return _OB_op_set_two_values(in, handler);
case 57: // set_two_valuesubs_as_values
return _OB_op_set_two_valuesubs_as_values(in, handler);
case 58: // set_ulong_box
return _OB_op_set_ulong_box(in, handler);
case 59: // set_value
return _OB_op_set_value(in, handler);
case 60: // set_valuesub
return _OB_op_set_valuesub(in, handler);
case 61: // set_valuesub_as_value
return _OB_op_set_valuesub_as_value(in, handler);
case 62: // set_var_struct_box
return _OB_op_set_var_struct_box(in, handler);
case 63: // set_var_union_box
return _OB_op_set_var_union_box(in, handler);
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private org.omg.CORBA.portable.OutputStream
_OB_op_deactivate(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
deactivate();
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_abs_custom(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbsValue1 _ob_r = get_abs_custom();
out = handler.createReply();
TestAbsValue1Helper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_abs_value1(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbsValue1 _ob_r = get_abs_value1();
out = handler.createReply();
TestAbsValue1Helper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_abs_value2(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbsValue2 _ob_r = get_abs_value2();
out = handler.createReply();
TestAbsValue2Helper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_ai_interface(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbstract _ob_r = get_ai_interface();
out = handler.createReply();
TestAbstractHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_ai_interface_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_r = get_ai_interface_any();
out = handler.createReply();
out.write_any(_ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_ai_value(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbstract _ob_r = get_ai_value();
out = handler.createReply();
TestAbstractHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_ai_value_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_r = get_ai_value_any();
out = handler.createReply();
out.write_any(_ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_anon_seq_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
int _ob_a0 = in.read_ulong();
short[] _ob_r = get_anon_seq_box(_ob_a0);
out = handler.createReply();
TestAnonSeqBoxHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_custom(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestCustom _ob_r = get_custom();
out = handler.createReply();
TestCustomHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_custom_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_r = get_custom_any();
out = handler.createReply();
out.write_any(_ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_fix_struct_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestFixStruct _ob_a0 = TestFixStructHelper.read(in);
TestFixStruct _ob_r = get_fix_struct_box(_ob_a0);
out = handler.createReply();
TestFixStructBoxHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_fix_union_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestFixUnion _ob_a0 = TestFixUnionHelper.read(in);
TestFixUnion _ob_r = get_fix_union_box(_ob_a0);
out = handler.createReply();
TestFixUnionBoxHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_node(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestNodeHolder _ob_ah0 = new TestNodeHolder();
org.omg.CORBA.IntHolder _ob_ah1 = new org.omg.CORBA.IntHolder();
get_node(_ob_ah0, _ob_ah1);
out = handler.createReply();
TestNodeHelper.write(out, _ob_ah0.value);
out.write_ulong(_ob_ah1.value);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_null_valuebase(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
java.io.Serializable _ob_r = get_null_valuebase();
out = handler.createReply();
org.omg.CORBA.ValueBaseHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_null_valuesub(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValueSub _ob_r = get_null_valuesub();
out = handler.createReply();
TestValueSubHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_string_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
String _ob_a0 = in.read_string();
String _ob_r = get_string_box(_ob_a0);
out = handler.createReply();
TestStringBoxHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_string_seq_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
String[] _ob_a0 = TestStringSeqHelper.read(in);
String[] _ob_r = get_string_seq_box(_ob_a0);
out = handler.createReply();
TestStringSeqBoxHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_trunc1(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestTruncBase _ob_r = get_trunc1();
out = handler.createReply();
TestTruncBaseHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_trunc1_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_r = get_trunc1_any();
out = handler.createReply();
out.write_any(_ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_trunc1_as_base_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_r = get_trunc1_as_base_any();
out = handler.createReply();
out.write_any(_ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_trunc2(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestTruncBase _ob_r = get_trunc2();
out = handler.createReply();
TestTruncBaseHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_trunc2_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_r = get_trunc2_any();
out = handler.createReply();
out.write_any(_ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_trunc2_as_base_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_r = get_trunc2_as_base_any();
out = handler.createReply();
out.write_any(_ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_two_value_anys(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.AnyHolder _ob_ah0 = new org.omg.CORBA.AnyHolder();
org.omg.CORBA.AnyHolder _ob_ah1 = new org.omg.CORBA.AnyHolder();
get_two_value_anys(_ob_ah0, _ob_ah1);
out = handler.createReply();
out.write_any(_ob_ah0.value);
out.write_any(_ob_ah1.value);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_two_values(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValueHolder _ob_ah0 = new TestValueHolder();
TestValueHolder _ob_ah1 = new TestValueHolder();
get_two_values(_ob_ah0, _ob_ah1);
out = handler.createReply();
TestValueHelper.write(out, _ob_ah0.value);
TestValueHelper.write(out, _ob_ah1.value);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_two_valuesubs_as_values(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValueHolder _ob_ah0 = new TestValueHolder();
TestValueHolder _ob_ah1 = new TestValueHolder();
get_two_valuesubs_as_values(_ob_ah0, _ob_ah1);
out = handler.createReply();
TestValueHelper.write(out, _ob_ah0.value);
TestValueHelper.write(out, _ob_ah1.value);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_ulong_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
int _ob_a0 = in.read_ulong();
TestULongBox _ob_r = get_ulong_box(_ob_a0);
out = handler.createReply();
TestULongBoxHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_value(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValue _ob_r = get_value();
out = handler.createReply();
TestValueHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_value_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_r = get_value_any();
out = handler.createReply();
out.write_any(_ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_value_as_interface(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestInterface _ob_r = get_value_as_interface();
out = handler.createReply();
TestInterfaceHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_value_as_value(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValueInterface _ob_r = get_value_as_value();
out = handler.createReply();
TestValueInterfaceHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_valuesub(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValueSub _ob_r = get_valuesub();
out = handler.createReply();
TestValueSubHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_valuesub_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_r = get_valuesub_any();
out = handler.createReply();
out.write_any(_ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_valuesub_as_value(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValue _ob_r = get_valuesub_as_value();
out = handler.createReply();
TestValueHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_valuesub_as_value_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_r = get_valuesub_as_value_any();
out = handler.createReply();
out.write_any(_ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_var_struct_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestVarStruct _ob_a0 = TestVarStructHelper.read(in);
TestVarStruct _ob_r = get_var_struct_box(_ob_a0);
out = handler.createReply();
TestVarStructBoxHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_var_union_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestVarUnion _ob_a0 = TestVarUnionHelper.read(in);
TestVarUnion _ob_r = get_var_union_box(_ob_a0);
out = handler.createReply();
TestVarUnionBoxHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_remarshal_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_a0 = in.read_any();
remarshal_any(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_abs_custom(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbsValue1 _ob_a0 = TestAbsValue1Helper.read(in);
set_abs_custom(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_abs_value1(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbsValue1 _ob_a0 = TestAbsValue1Helper.read(in);
set_abs_value1(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_abs_value2(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbsValue2 _ob_a0 = TestAbsValue2Helper.read(in);
set_abs_value2(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_ai_interface(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbstract _ob_a0 = TestAbstractHelper.read(in);
set_ai_interface(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_ai_interface_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_a0 = in.read_any();
set_ai_interface_any(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_ai_value(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbstract _ob_a0 = TestAbstractHelper.read(in);
set_ai_value(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_ai_value_any(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_a0 = in.read_any();
set_ai_value_any(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_anon_seq_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
short[] _ob_a0 = TestAnonSeqBoxHelper.read(in);
int _ob_a1 = in.read_ulong();
set_anon_seq_box(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_custom(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestCustom _ob_a0 = TestCustomHelper.read(in);
set_custom(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_fix_struct_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestFixStruct _ob_a0 = TestFixStructBoxHelper.read(in);
TestFixStruct _ob_a1 = TestFixStructHelper.read(in);
set_fix_struct_box(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_fix_union_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestFixUnion _ob_a0 = TestFixUnionBoxHelper.read(in);
TestFixUnion _ob_a1 = TestFixUnionHelper.read(in);
set_fix_union_box(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_node(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestNode _ob_a0 = TestNodeHelper.read(in);
set_node(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_null_valuebase(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
java.io.Serializable _ob_a0 = org.omg.CORBA.ValueBaseHelper.read(in);
set_null_valuebase(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_null_valuesub(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValueSub _ob_a0 = TestValueSubHelper.read(in);
set_null_valuesub(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_string_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
String _ob_a0 = TestStringBoxHelper.read(in);
String _ob_a1 = in.read_string();
set_string_box(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_string_seq_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
String[] _ob_a0 = TestStringSeqBoxHelper.read(in);
String[] _ob_a1 = TestStringSeqHelper.read(in);
set_string_seq_box(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_two_value_anys(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.Any _ob_a0 = in.read_any();
org.omg.CORBA.Any _ob_a1 = in.read_any();
set_two_value_anys(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_two_values(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValue _ob_a0 = TestValueHelper.read(in);
TestValue _ob_a1 = TestValueHelper.read(in);
set_two_values(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_two_valuesubs_as_values(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValue _ob_a0 = TestValueHelper.read(in);
TestValue _ob_a1 = TestValueHelper.read(in);
set_two_valuesubs_as_values(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_ulong_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestULongBox _ob_a0 = TestULongBoxHelper.read(in);
int _ob_a1 = in.read_ulong();
set_ulong_box(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_value(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValue _ob_a0 = TestValueHelper.read(in);
set_value(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_valuesub(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValueSub _ob_a0 = TestValueSubHelper.read(in);
set_valuesub(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_valuesub_as_value(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValue _ob_a0 = TestValueHelper.read(in);
set_valuesub_as_value(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_var_struct_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestVarStruct _ob_a0 = TestVarStructBoxHelper.read(in);
TestVarStruct _ob_a1 = TestVarStructHelper.read(in);
set_var_struct_box(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_var_union_box(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestVarUnion _ob_a0 = TestVarUnionBoxHelper.read(in);
TestVarUnion _ob_a1 = TestVarUnionHelper.read(in);
set_var_union_box(_ob_a0, _ob_a1);
out = handler.createReply();
return out;
}
}
| 5,352 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueValueFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValue:1.0
//
/***/
public interface TestValueValueFactory extends org.omg.CORBA.portable.ValueFactory
{
TestValue
create(int l);
}
| 5,353 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestVarUnionBoxHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestVarUnionBox:1.0
//
final public class TestVarUnionBoxHelper implements org.omg.CORBA.portable.BoxedValueHelper
{
private static final TestVarUnionBoxHelper _instance = new TestVarUnionBoxHelper();
public static void
insert(org.omg.CORBA.Any any, TestVarUnion val)
{
any.insert_Value((java.io.Serializable)val, type());
}
public static TestVarUnion
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestVarUnion)
return (TestVarUnion)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_value_box_tc(id(), "TestVarUnionBox", TestVarUnionHelper.type());
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestVarUnionBox:1.0";
}
public static TestVarUnion
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestVarUnion)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(_instance);
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestVarUnion val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value((java.io.Serializable)val, _instance);
}
public java.io.Serializable
read_value(org.omg.CORBA.portable.InputStream in)
{
TestVarUnion _ob_v;
_ob_v = TestVarUnionHelper.read(in);
return (java.io.Serializable)_ob_v;
}
public void
write_value(org.omg.CORBA.portable.OutputStream out, java.io.Serializable val)
{
if(!(val instanceof TestVarUnion))
throw new org.omg.CORBA.MARSHAL();
TestVarUnion _ob_value = (TestVarUnion)val;
TestVarUnionHelper.write(out, _ob_value);
}
public String
get_id()
{
return id();
}
}
| 5,354 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestNode_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestNode_impl extends TestNode {
public TestNode_impl(int n) {
count = n;
}
public int compute_count() {
int result = count;
if (left != null)
result += left.compute_count();
if (right != null)
result += right.compute_count();
return result;
}
}
| 5,355 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestStringBoxStruct.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestStringBoxStruct:1.0
//
/***/
final public class TestStringBoxStruct implements org.omg.CORBA.portable.IDLEntity
{
private static final String _ob_id = "IDL:TestStringBoxStruct:1.0";
public
TestStringBoxStruct()
{
}
public
TestStringBoxStruct(String a,
String b)
{
this.a = a;
this.b = b;
}
public String a;
public String b;
}
| 5,356 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbsValue1Helper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbsValue1:1.0
//
final public class TestAbsValue1Helper
{
public static void
insert(org.omg.CORBA.Any any, TestAbsValue1 val)
{
any.insert_Value(val, type());
}
public static TestAbsValue1
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestAbsValue1)
return (TestAbsValue1)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[0];
typeCode_ = orb.create_value_tc(id(), "TestAbsValue1", org.omg.CORBA.VM_ABSTRACT.value, null, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestAbsValue1:1.0";
}
public static TestAbsValue1
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestAbsValue1)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestAbsValue1 val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
}
| 5,357 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestCustomHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestCustom:1.0
//
final public class TestCustomHelper
{
public static void
insert(org.omg.CORBA.Any any, TestCustom val)
{
any.insert_Value(val, type());
}
public static TestCustom
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestCustom)
return (TestCustom)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[4];
members[0] = new org.omg.CORBA.ValueMember();
members[0].name = "shortVal";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_short);
members[0].access = org.omg.CORBA.PUBLIC_MEMBER.value;
members[1] = new org.omg.CORBA.ValueMember();
members[1].name = "longVal";
members[1].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
members[1].access = org.omg.CORBA.PUBLIC_MEMBER.value;
members[2] = new org.omg.CORBA.ValueMember();
members[2].name = "stringVal";
members[2].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string);
members[2].access = org.omg.CORBA.PUBLIC_MEMBER.value;
members[3] = new org.omg.CORBA.ValueMember();
members[3].name = "doubleVal";
members[3].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_double);
members[3].access = org.omg.CORBA.PUBLIC_MEMBER.value;
typeCode_ = orb.create_value_tc(id(), "TestCustom", org.omg.CORBA.VM_CUSTOM.value, null, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestCustom:1.0";
}
public static TestCustom
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestCustom)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestCustom val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
public static TestCustom
create(org.omg.CORBA.ORB orb,
short s,
int l,
String str,
double d)
{
TestCustomValueFactory _ob_f = _OB_getFactory(orb);
return _ob_f.create(s,
l,
str,
d);
}
private static TestCustomValueFactory
_OB_getFactory(org.omg.CORBA.ORB orb)
{
org.omg.CORBA.portable.ValueFactory _ob_f = ((org.omg.CORBA_2_3.ORB)orb).lookup_value_factory(id());
if(_ob_f == null)
throw new org.omg.CORBA.MARSHAL(1, org.omg.CORBA.CompletionStatus.COMPLETED_NO);
return (TestCustomValueFactory)_ob_f;
}
}
| 5,358 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoOperations.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBVColo:1.0
//
/***/
public interface TestOBVColoOperations
{
//
// IDL:TestOBVColo/set_expected_count:1.0
//
/***/
void
set_expected_count(int l);
//
// IDL:TestOBVColo/test_value_attribute:1.0
//
/***/
TestValue
test_value_attribute();
void
test_value_attribute(TestValue val);
//
// IDL:TestOBVColo/test_value_op:1.0
//
/***/
TestValue
test_value_op(TestValue v1,
TestValueHolder v2,
TestValueHolder v3);
//
// IDL:TestOBVColo/test_value_struct_attribute:1.0
//
/***/
test.obv.TestOBVColoPackage.SV
test_value_struct_attribute();
void
test_value_struct_attribute(test.obv.TestOBVColoPackage.SV val);
//
// IDL:TestOBVColo/test_value_struct_op:1.0
//
/***/
test.obv.TestOBVColoPackage.SV
test_value_struct_op(test.obv.TestOBVColoPackage.SV s1,
test.obv.TestOBVColoPackage.SVHolder s2,
test.obv.TestOBVColoPackage.SVHolder s3);
//
// IDL:TestOBVColo/test_value_union_attribute:1.0
//
/***/
test.obv.TestOBVColoPackage.UV
test_value_union_attribute();
void
test_value_union_attribute(test.obv.TestOBVColoPackage.UV val);
//
// IDL:TestOBVColo/test_value_union_op:1.0
//
/***/
test.obv.TestOBVColoPackage.UV
test_value_union_op(test.obv.TestOBVColoPackage.UV u1,
test.obv.TestOBVColoPackage.UVHolder u2,
test.obv.TestOBVColoPackage.UVHolder u3);
//
// IDL:TestOBVColo/test_value_seq_attribute:1.0
//
/***/
TestValue[]
test_value_seq_attribute();
void
test_value_seq_attribute(TestValue[] val);
//
// IDL:TestOBVColo/test_value_seq_op:1.0
//
/***/
TestValue[]
test_value_seq_op(TestValue[] s1,
test.obv.TestOBVColoPackage.VSeqHolder s2,
test.obv.TestOBVColoPackage.VSeqHolder s3);
//
// IDL:TestOBVColo/test_abstract_attribute:1.0
//
/***/
TestAbstract
test_abstract_attribute();
void
test_abstract_attribute(TestAbstract val);
//
// IDL:TestOBVColo/test_abstract_op:1.0
//
/***/
void
test_abstract_op(TestAbstract a);
}
| 5,359 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/_TestInterfaceStub.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestInterface:1.0
//
public class _TestInterfaceStub extends org.omg.CORBA.portable.ObjectImpl
implements TestInterface
{
private static final String[] _ob_ids_ =
{
"IDL:TestInterface:1.0",
};
public String[]
_ids()
{
return _ob_ids_;
}
final public static java.lang.Class _ob_opsClass = TestInterfaceOperations.class;
//
// IDL:TestInterface/get_count:1.0
//
public int
get_count()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("get_count", true);
in = _invoke(out);
int _ob_r = in.read_long();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("get_count", _ob_opsClass);
if(_ob_so == null)
continue;
TestInterfaceOperations _ob_self = (TestInterfaceOperations)_ob_so.servant;
try
{
return _ob_self.get_count();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
}
| 5,360 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestStringBoxStructHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestStringBoxStruct:1.0
//
final public class TestStringBoxStructHolder implements org.omg.CORBA.portable.Streamable
{
public TestStringBoxStruct value;
public
TestStringBoxStructHolder()
{
}
public
TestStringBoxStructHolder(TestStringBoxStruct initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestStringBoxStructHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestStringBoxStructHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestStringBoxStructHelper.type();
}
}
| 5,361 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTrunc2Helper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestTrunc2:1.0
//
final public class TestTrunc2Helper
{
public static void
insert(org.omg.CORBA.Any any, TestTrunc2 val)
{
any.insert_Value(val, type());
}
public static TestTrunc2
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestTrunc2)
return (TestTrunc2)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[4];
members[0] = new org.omg.CORBA.ValueMember();
members[0].name = "t";
members[0].type = TestTruncBaseHelper.type();
members[0].access = org.omg.CORBA.PUBLIC_MEMBER.value;
members[1] = new org.omg.CORBA.ValueMember();
members[1].name = "a";
members[1].type = TestAbsValue1Helper.type();
members[1].access = org.omg.CORBA.PUBLIC_MEMBER.value;
members[2] = new org.omg.CORBA.ValueMember();
members[2].name = "v";
members[2].type = TestValueHelper.type();
members[2].access = org.omg.CORBA.PUBLIC_MEMBER.value;
members[3] = new org.omg.CORBA.ValueMember();
members[3].name = "b";
members[3].type = TestTruncBaseHelper.type();
members[3].access = org.omg.CORBA.PUBLIC_MEMBER.value;
org.omg.CORBA.TypeCode baseType = TestTruncBaseHelper.type();
typeCode_ = orb.create_value_tc(id(), "TestTrunc2", org.omg.CORBA.VM_TRUNCATABLE.value, baseType, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestTrunc2:1.0";
}
public static TestTrunc2
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestTrunc2)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestTrunc2 val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
}
| 5,362 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestNodeHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestNode:1.0
//
final public class TestNodeHolder implements org.omg.CORBA.portable.Streamable
{
public TestNode value;
public
TestNodeHolder()
{
}
public
TestNodeHolder(TestNode initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestNodeHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestNodeHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestNodeHelper.type();
}
}
| 5,363 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbstractSubOperations.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstractSub:1.0
//
/***/
public interface TestAbstractSubOperations extends TestAbstract
{
//
// IDL:TestAbstractSub/sub_op:1.0
//
/***/
void
sub_op();
}
| 5,364 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbstractSub_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestAbstractSub_impl extends TestAbstractSubPOA {
public void abstract_op() {
// do nothing
}
public void sub_op() {
// do nothing
}
}
| 5,365 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueSubValueFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueSub:1.0
//
/***/
public interface TestValueSubValueFactory extends org.omg.CORBA.portable.ValueFactory
{
TestValueSub
create_sub(int l,
String s);
}
| 5,366 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestInterfacePOATie.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestInterface:1.0
//
public class TestInterfacePOATie extends TestInterfacePOA
{
private TestInterfaceOperations _ob_delegate_;
private org.omg.PortableServer.POA _ob_poa_;
public
TestInterfacePOATie(TestInterfaceOperations delegate)
{
_ob_delegate_ = delegate;
}
public
TestInterfacePOATie(TestInterfaceOperations delegate, org.omg.PortableServer.POA poa)
{
_ob_delegate_ = delegate;
_ob_poa_ = poa;
}
public TestInterfaceOperations
_delegate()
{
return _ob_delegate_;
}
public void
_delegate(TestInterfaceOperations delegate)
{
_ob_delegate_ = delegate;
}
public org.omg.PortableServer.POA
_default_POA()
{
if(_ob_poa_ != null)
return _ob_poa_;
else
return super._default_POA();
}
//
// IDL:TestInterface/get_count:1.0
//
public int
get_count()
{
return _ob_delegate_.get_count();
}
}
| 5,367 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/_TestAbstractSubStub.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstractSub:1.0
//
public class _TestAbstractSubStub extends org.omg.CORBA.portable.ObjectImpl
implements TestAbstractSub
{
private static final String[] _ob_ids_ =
{
"IDL:TestAbstractSub:1.0",
"IDL:TestAbstract:1.0"
};
public String[]
_ids()
{
return _ob_ids_;
}
final public static java.lang.Class _ob_opsClass = TestAbstractSubOperations.class;
//
// IDL:TestAbstractSub/sub_op:1.0
//
public void
sub_op()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("sub_op", true);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("sub_op", _ob_opsClass);
if(_ob_so == null)
continue;
TestAbstractSubOperations _ob_self = (TestAbstractSubOperations)_ob_so.servant;
try
{
_ob_self.sub_op();
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestAbstract/abstract_op:1.0
//
public void
abstract_op()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("abstract_op", true);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("abstract_op", _ob_opsClass);
if(_ob_so == null)
continue;
TestAbstractSubOperations _ob_self = (TestAbstractSubOperations)_ob_so.servant;
try
{
_ob_self.abstract_op();
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
}
| 5,368 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVOperations.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBV:1.0
//
/***/
public interface TestOBVOperations
{
//
// IDL:TestOBV/get_null_valuebase:1.0
//
/***/
java.io.Serializable
get_null_valuebase();
//
// IDL:TestOBV/set_null_valuebase:1.0
//
/***/
void
set_null_valuebase(java.io.Serializable v);
//
// IDL:TestOBV/get_null_valuesub:1.0
//
/***/
TestValueSub
get_null_valuesub();
//
// IDL:TestOBV/set_null_valuesub:1.0
//
/***/
void
set_null_valuesub(TestValueSub v);
//
// IDL:TestOBV/get_abs_value1:1.0
//
/***/
TestAbsValue1
get_abs_value1();
//
// IDL:TestOBV/set_abs_value1:1.0
//
/***/
void
set_abs_value1(TestAbsValue1 v);
//
// IDL:TestOBV/get_abs_value2:1.0
//
/***/
TestAbsValue2
get_abs_value2();
//
// IDL:TestOBV/set_abs_value2:1.0
//
/***/
void
set_abs_value2(TestAbsValue2 v);
//
// IDL:TestOBV/get_value:1.0
//
/***/
TestValue
get_value();
//
// IDL:TestOBV/set_value:1.0
//
/***/
void
set_value(TestValue v);
//
// IDL:TestOBV/get_valuesub:1.0
//
/***/
TestValueSub
get_valuesub();
//
// IDL:TestOBV/set_valuesub:1.0
//
/***/
void
set_valuesub(TestValueSub v);
//
// IDL:TestOBV/get_valuesub_as_value:1.0
//
/***/
TestValue
get_valuesub_as_value();
//
// IDL:TestOBV/set_valuesub_as_value:1.0
//
/***/
void
set_valuesub_as_value(TestValue v);
//
// IDL:TestOBV/get_two_values:1.0
//
/***/
void
get_two_values(TestValueHolder v1,
TestValueHolder v2);
//
// IDL:TestOBV/set_two_values:1.0
//
/***/
void
set_two_values(TestValue v1,
TestValue v2);
//
// IDL:TestOBV/get_two_valuesubs_as_values:1.0
//
/***/
void
get_two_valuesubs_as_values(TestValueHolder v1,
TestValueHolder v2);
//
// IDL:TestOBV/set_two_valuesubs_as_values:1.0
//
/***/
void
set_two_valuesubs_as_values(TestValue v1,
TestValue v2);
//
// IDL:TestOBV/get_custom:1.0
//
/***/
TestCustom
get_custom();
//
// IDL:TestOBV/set_custom:1.0
//
/***/
void
set_custom(TestCustom v);
//
// IDL:TestOBV/get_abs_custom:1.0
//
/***/
TestAbsValue1
get_abs_custom();
//
// IDL:TestOBV/set_abs_custom:1.0
//
/***/
void
set_abs_custom(TestAbsValue1 v);
//
// IDL:TestOBV/get_node:1.0
//
/***/
void
get_node(TestNodeHolder v,
org.omg.CORBA.IntHolder count);
//
// IDL:TestOBV/set_node:1.0
//
/***/
void
set_node(TestNode v);
//
// IDL:TestOBV/get_string_box:1.0
//
/***/
String
get_string_box(String value);
//
// IDL:TestOBV/set_string_box:1.0
//
/***/
void
set_string_box(String b,
String value);
//
// IDL:TestOBV/get_ulong_box:1.0
//
/***/
TestULongBox
get_ulong_box(int value);
//
// IDL:TestOBV/set_ulong_box:1.0
//
/***/
void
set_ulong_box(TestULongBox b,
int value);
//
// IDL:TestOBV/get_fix_struct_box:1.0
//
/***/
TestFixStruct
get_fix_struct_box(TestFixStruct value);
//
// IDL:TestOBV/set_fix_struct_box:1.0
//
/***/
void
set_fix_struct_box(TestFixStruct b,
TestFixStruct value);
//
// IDL:TestOBV/get_var_struct_box:1.0
//
/***/
TestVarStruct
get_var_struct_box(TestVarStruct value);
//
// IDL:TestOBV/set_var_struct_box:1.0
//
/***/
void
set_var_struct_box(TestVarStruct b,
TestVarStruct value);
//
// IDL:TestOBV/get_fix_union_box:1.0
//
/***/
TestFixUnion
get_fix_union_box(TestFixUnion value);
//
// IDL:TestOBV/set_fix_union_box:1.0
//
/***/
void
set_fix_union_box(TestFixUnion b,
TestFixUnion value);
//
// IDL:TestOBV/get_var_union_box:1.0
//
/***/
TestVarUnion
get_var_union_box(TestVarUnion value);
//
// IDL:TestOBV/set_var_union_box:1.0
//
/***/
void
set_var_union_box(TestVarUnion b,
TestVarUnion value);
//
// IDL:TestOBV/get_anon_seq_box:1.0
//
/***/
short[]
get_anon_seq_box(int length);
//
// IDL:TestOBV/set_anon_seq_box:1.0
//
/***/
void
set_anon_seq_box(short[] b,
int length);
//
// IDL:TestOBV/get_string_seq_box:1.0
//
/***/
String[]
get_string_seq_box(String[] value);
//
// IDL:TestOBV/set_string_seq_box:1.0
//
/***/
void
set_string_seq_box(String[] b,
String[] value);
//
// IDL:TestOBV/get_ai_interface:1.0
//
/***/
TestAbstract
get_ai_interface();
//
// IDL:TestOBV/set_ai_interface:1.0
//
/***/
void
set_ai_interface(TestAbstract a);
//
// IDL:TestOBV/get_ai_interface_any:1.0
//
/***/
org.omg.CORBA.Any
get_ai_interface_any();
//
// IDL:TestOBV/set_ai_interface_any:1.0
//
/***/
void
set_ai_interface_any(org.omg.CORBA.Any a);
//
// IDL:TestOBV/get_ai_value:1.0
//
/***/
TestAbstract
get_ai_value();
//
// IDL:TestOBV/set_ai_value:1.0
//
/***/
void
set_ai_value(TestAbstract a);
//
// IDL:TestOBV/get_ai_value_any:1.0
//
/***/
org.omg.CORBA.Any
get_ai_value_any();
//
// IDL:TestOBV/set_ai_value_any:1.0
//
/***/
void
set_ai_value_any(org.omg.CORBA.Any a);
//
// IDL:TestOBV/get_trunc1:1.0
//
/***/
TestTruncBase
get_trunc1();
//
// IDL:TestOBV/get_trunc2:1.0
//
/***/
TestTruncBase
get_trunc2();
//
// IDL:TestOBV/get_value_any:1.0
//
/***/
org.omg.CORBA.Any
get_value_any();
//
// IDL:TestOBV/get_valuesub_any:1.0
//
/***/
org.omg.CORBA.Any
get_valuesub_any();
//
// IDL:TestOBV/get_valuesub_as_value_any:1.0
//
/***/
org.omg.CORBA.Any
get_valuesub_as_value_any();
//
// IDL:TestOBV/get_custom_any:1.0
//
/***/
org.omg.CORBA.Any
get_custom_any();
//
// IDL:TestOBV/get_trunc1_any:1.0
//
/***/
org.omg.CORBA.Any
get_trunc1_any();
//
// IDL:TestOBV/get_trunc1_as_base_any:1.0
//
/***/
org.omg.CORBA.Any
get_trunc1_as_base_any();
//
// IDL:TestOBV/get_trunc2_any:1.0
//
/***/
org.omg.CORBA.Any
get_trunc2_any();
//
// IDL:TestOBV/get_trunc2_as_base_any:1.0
//
/***/
org.omg.CORBA.Any
get_trunc2_as_base_any();
//
// IDL:TestOBV/remarshal_any:1.0
//
/***/
void
remarshal_any(org.omg.CORBA.Any a);
//
// IDL:TestOBV/get_two_value_anys:1.0
//
/***/
void
get_two_value_anys(org.omg.CORBA.AnyHolder a1,
org.omg.CORBA.AnyHolder a2);
//
// IDL:TestOBV/set_two_value_anys:1.0
//
/***/
void
set_two_value_anys(org.omg.CORBA.Any a1,
org.omg.CORBA.Any a2);
//
// IDL:TestOBV/get_value_as_value:1.0
//
/***/
TestValueInterface
get_value_as_value();
//
// IDL:TestOBV/get_value_as_interface:1.0
//
/***/
TestInterface
get_value_as_interface();
//
// IDL:TestOBV/deactivate:1.0
//
/***/
void
deactivate();
}
| 5,369 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoPOATie.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBVColo:1.0
//
public class TestOBVColoPOATie extends TestOBVColoPOA
{
private TestOBVColoOperations _ob_delegate_;
private org.omg.PortableServer.POA _ob_poa_;
public
TestOBVColoPOATie(TestOBVColoOperations delegate)
{
_ob_delegate_ = delegate;
}
public
TestOBVColoPOATie(TestOBVColoOperations delegate, org.omg.PortableServer.POA poa)
{
_ob_delegate_ = delegate;
_ob_poa_ = poa;
}
public TestOBVColoOperations
_delegate()
{
return _ob_delegate_;
}
public void
_delegate(TestOBVColoOperations delegate)
{
_ob_delegate_ = delegate;
}
public org.omg.PortableServer.POA
_default_POA()
{
if(_ob_poa_ != null)
return _ob_poa_;
else
return super._default_POA();
}
//
// IDL:TestOBVColo/test_value_attribute:1.0
//
public TestValue
test_value_attribute()
{
return _ob_delegate_.test_value_attribute();
}
public void
test_value_attribute(TestValue val)
{
_ob_delegate_.test_value_attribute(val);
}
//
// IDL:TestOBVColo/test_value_struct_attribute:1.0
//
public test.obv.TestOBVColoPackage.SV
test_value_struct_attribute()
{
return _ob_delegate_.test_value_struct_attribute();
}
public void
test_value_struct_attribute(test.obv.TestOBVColoPackage.SV val)
{
_ob_delegate_.test_value_struct_attribute(val);
}
//
// IDL:TestOBVColo/test_value_union_attribute:1.0
//
public test.obv.TestOBVColoPackage.UV
test_value_union_attribute()
{
return _ob_delegate_.test_value_union_attribute();
}
public void
test_value_union_attribute(test.obv.TestOBVColoPackage.UV val)
{
_ob_delegate_.test_value_union_attribute(val);
}
//
// IDL:TestOBVColo/test_value_seq_attribute:1.0
//
public TestValue[]
test_value_seq_attribute()
{
return _ob_delegate_.test_value_seq_attribute();
}
public void
test_value_seq_attribute(TestValue[] val)
{
_ob_delegate_.test_value_seq_attribute(val);
}
//
// IDL:TestOBVColo/test_abstract_attribute:1.0
//
public TestAbstract
test_abstract_attribute()
{
return _ob_delegate_.test_abstract_attribute();
}
public void
test_abstract_attribute(TestAbstract val)
{
_ob_delegate_.test_abstract_attribute(val);
}
//
// IDL:TestOBVColo/set_expected_count:1.0
//
public void
set_expected_count(int l)
{
_ob_delegate_.set_expected_count(l);
}
//
// IDL:TestOBVColo/test_value_op:1.0
//
public TestValue
test_value_op(TestValue v1,
TestValueHolder v2,
TestValueHolder v3)
{
return _ob_delegate_.test_value_op(v1,
v2,
v3);
}
//
// IDL:TestOBVColo/test_value_struct_op:1.0
//
public test.obv.TestOBVColoPackage.SV
test_value_struct_op(test.obv.TestOBVColoPackage.SV s1,
test.obv.TestOBVColoPackage.SVHolder s2,
test.obv.TestOBVColoPackage.SVHolder s3)
{
return _ob_delegate_.test_value_struct_op(s1,
s2,
s3);
}
//
// IDL:TestOBVColo/test_value_union_op:1.0
//
public test.obv.TestOBVColoPackage.UV
test_value_union_op(test.obv.TestOBVColoPackage.UV u1,
test.obv.TestOBVColoPackage.UVHolder u2,
test.obv.TestOBVColoPackage.UVHolder u3)
{
return _ob_delegate_.test_value_union_op(u1,
u2,
u3);
}
//
// IDL:TestOBVColo/test_value_seq_op:1.0
//
public TestValue[]
test_value_seq_op(TestValue[] s1,
test.obv.TestOBVColoPackage.VSeqHolder s2,
test.obv.TestOBVColoPackage.VSeqHolder s3)
{
return _ob_delegate_.test_value_seq_op(s1,
s2,
s3);
}
//
// IDL:TestOBVColo/test_abstract_op:1.0
//
public void
test_abstract_op(TestAbstract a)
{
_ob_delegate_.test_abstract_op(a);
}
}
| 5,370 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestStringBoxStructHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestStringBoxStruct:1.0
//
final public class TestStringBoxStructHelper
{
public static void
insert(org.omg.CORBA.Any any, TestStringBoxStruct val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestStringBoxStruct
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[2];
members[0] = new org.omg.CORBA.StructMember();
members[0].name = "a";
members[0].type = TestStringBoxHelper.type();
members[1] = new org.omg.CORBA.StructMember();
members[1].name = "b";
members[1].type = TestStringBoxHelper.type();
typeCode_ = orb.create_struct_tc(id(), "TestStringBoxStruct", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestStringBoxStruct:1.0";
}
public static TestStringBoxStruct
read(org.omg.CORBA.portable.InputStream in)
{
TestStringBoxStruct _ob_v = new TestStringBoxStruct();
_ob_v.a = TestStringBoxHelper.read(in);
_ob_v.b = TestStringBoxHelper.read(in);
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestStringBoxStruct val)
{
TestStringBoxHelper.write(out, val.a);
TestStringBoxHelper.write(out, val.b);
}
}
| 5,371 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestFixStruct.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestFixStruct:1.0
//
/***/
final public class TestFixStruct implements org.omg.CORBA.portable.IDLEntity
{
private static final String _ob_id = "IDL:TestFixStruct:1.0";
public
TestFixStruct()
{
}
public
TestFixStruct(int x,
int y,
double radius)
{
this.x = x;
this.y = y;
this.radius = radius;
}
public int x;
public int y;
public double radius;
}
| 5,372 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTrunc2Holder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestTrunc2:1.0
//
final public class TestTrunc2Holder implements org.omg.CORBA.portable.Streamable
{
public TestTrunc2 value;
public
TestTrunc2Holder()
{
}
public
TestTrunc2Holder(TestTrunc2 initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestTrunc2Helper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestTrunc2Helper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestTrunc2Helper.type();
}
}
| 5,373 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbsValue2.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbsValue2:1.0
//
/***/
public interface TestAbsValue2 extends org.omg.CORBA.portable.ValueBase
{
//
// IDL:TestAbsValue2/ping2:1.0
//
/***/
void
ping2();
}
| 5,374 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueInterface_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestValueInterface_impl extends TestValueInterface {
public int get_count() {
return count;
}
public void value_op() {
}
}
| 5,375 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestNodeHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestNode:1.0
//
final public class TestNodeHelper
{
public static void
insert(org.omg.CORBA.Any any, TestNode val)
{
any.insert_Value(val, type());
}
public static TestNode
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestNode)
return (TestNode)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[3];
members[0] = new org.omg.CORBA.ValueMember();
members[0].name = "left";
members[0].type = orb.create_recursive_tc(id());
members[0].access = org.omg.CORBA.PUBLIC_MEMBER.value;
members[1] = new org.omg.CORBA.ValueMember();
members[1].name = "right";
members[1].type = orb.create_recursive_tc(id());
members[1].access = org.omg.CORBA.PUBLIC_MEMBER.value;
members[2] = new org.omg.CORBA.ValueMember();
members[2].name = "count";
members[2].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_ulong);
members[2].access = org.omg.CORBA.PRIVATE_MEMBER.value;
typeCode_ = orb.create_value_tc(id(), "TestNode", org.omg.CORBA.VM_NONE.value, null, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestNode:1.0";
}
public static TestNode
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestNode)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestNode val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
public static TestNode
create(org.omg.CORBA.ORB orb,
int n)
{
TestNodeValueFactory _ob_f = _OB_getFactory(orb);
return _ob_f.create(n);
}
public static TestNode
create_lr(org.omg.CORBA.ORB orb,
int n,
TestNode l,
TestNode r)
{
TestNodeValueFactory _ob_f = _OB_getFactory(orb);
return _ob_f.create_lr(n,
l,
r);
}
private static TestNodeValueFactory
_OB_getFactory(org.omg.CORBA.ORB orb)
{
org.omg.CORBA.portable.ValueFactory _ob_f = ((org.omg.CORBA_2_3.ORB)orb).lookup_value_factory(id());
if(_ob_f == null)
throw new org.omg.CORBA.MARSHAL(1, org.omg.CORBA.CompletionStatus.COMPLETED_NO);
return (TestNodeValueFactory)_ob_f;
}
}
| 5,376 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTrunc2Factory_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestTrunc2Factory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new TestTrunc2_impl());
}
public static void install(org.omg.CORBA.ORB orb) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
orb_2_3.register_value_factory(TestTrunc2Helper.id(),
new TestTrunc2Factory_impl());
}
}
| 5,377 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTrunc2.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestTrunc2:1.0
//
/***/
public abstract class TestTrunc2 extends TestTruncBase
{
//
// IDL:TestTrunc2/t:1.0
//
/***/
public TestTruncBase t;
//
// IDL:TestTrunc2/a:1.0
//
/***/
public TestAbsValue1 a;
//
// IDL:TestTrunc2/v:1.0
//
/***/
public TestValue v;
//
// IDL:TestTrunc2/b:1.0
//
/***/
public TestTruncBase b;
private static String[] _OB_truncatableIds_ =
{
TestTrunc2Helper.id(),
TestTruncBaseHelper.id()
};
public String[]
_truncatable_ids()
{
return _OB_truncatableIds_;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
super._read(in);
t = TestTruncBaseHelper.read(in);
a = TestAbsValue1Helper.read(in);
v = TestValueHelper.read(in);
b = TestTruncBaseHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
super._write(out);
TestTruncBaseHelper.write(out, t);
TestAbsValue1Helper.write(out, a);
TestValueHelper.write(out, v);
TestTruncBaseHelper.write(out, b);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestTrunc2Helper.type();
}
}
| 5,378 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestFixUnionHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestFixUnion:1.0
//
final public class TestFixUnionHelper
{
public static void
insert(org.omg.CORBA.Any any, TestFixUnion val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestFixUnion
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
members[0] = new org.omg.CORBA.UnionMember();
members[0].name = "o";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_octet);
members[0].label = orb.create_any();
members[0].label.insert_boolean(true);
members[1] = new org.omg.CORBA.UnionMember();
members[1].name = "d";
members[1].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_double);
members[1].label = orb.create_any();
members[1].label.insert_boolean(false);
org.omg.CORBA.TypeCode discType = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_boolean);
typeCode_ = orb.create_union_tc(id(), "TestFixUnion", discType, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestFixUnion:1.0";
}
public static TestFixUnion
read(org.omg.CORBA.portable.InputStream in)
{
TestFixUnion _ob_v = new TestFixUnion();
boolean _ob_d;
_ob_d = in.read_boolean();
switch(_ob_d ? 1 : 0)
{
case 1:
{
byte _ob_m;
_ob_m = in.read_octet();
_ob_v.o(_ob_m);
break;
}
case 0:
{
double _ob_m;
_ob_m = in.read_double();
_ob_v.d(_ob_m);
break;
}
}
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestFixUnion val)
{
boolean _ob_d = val.discriminator();
out.write_boolean(_ob_d);
switch(_ob_d ? 1 : 0)
{
case 1:
{
byte _ob_m = val.o();
out.write_octet(_ob_m);
break;
}
case 0:
{
double _ob_m = val.d();
out.write_double(_ob_m);
break;
}
}
}
}
| 5,379 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestFixUnionHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestFixUnion:1.0
//
final public class TestFixUnionHolder implements org.omg.CORBA.portable.Streamable
{
public TestFixUnion value;
public
TestFixUnionHolder()
{
}
public
TestFixUnionHolder(TestFixUnion initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestFixUnionHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestFixUnionHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestFixUnionHelper.type();
}
}
| 5,380 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/ValueBoxFactories.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class ValueBoxFactories {
//
// Valuebox factories are not automatically generated, as in C++
//
static class TestStringBoxFactory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return TestStringBoxHelper.read(in);
}
}
static class TestULongBoxFactory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return TestULongBoxHelper.read(in);
}
}
static class TestFixStructBoxFactory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return TestFixStructBoxHelper.read(in);
}
}
static class TestVarStructBoxFactory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return TestVarStructBoxHelper.read(in);
}
}
static class TestFixUnionBoxFactory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return TestFixUnionBoxHelper.read(in);
}
}
static class TestVarUnionBoxFactory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return TestVarUnionBoxHelper.read(in);
}
}
static class TestAnonSeqBoxFactory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return TestAnonSeqBoxHelper.read(in);
}
}
static class TestStringSeqBoxFactory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return TestStringSeqBoxHelper.read(in);
}
}
static void install(org.omg.CORBA.ORB orb) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
//
// Install valuebox factories
//
orb_2_3.register_value_factory(TestStringBoxHelper.id(),
new TestStringBoxFactory_impl());
orb_2_3.register_value_factory(TestULongBoxHelper.id(),
new TestULongBoxFactory_impl());
orb_2_3.register_value_factory(TestFixStructBoxHelper.id(),
new TestFixStructBoxFactory_impl());
orb_2_3.register_value_factory(TestVarStructBoxHelper.id(),
new TestVarStructBoxFactory_impl());
orb_2_3.register_value_factory(TestFixUnionBoxHelper.id(),
new TestFixUnionBoxFactory_impl());
orb_2_3.register_value_factory(TestVarUnionBoxHelper.id(),
new TestVarUnionBoxFactory_impl());
orb_2_3.register_value_factory(TestAnonSeqBoxHelper.id(),
new TestAnonSeqBoxFactory_impl());
orb_2_3.register_value_factory(TestStringSeqBoxHelper.id(),
new TestStringSeqBoxFactory_impl());
}
}
| 5,381 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestCustomValueFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestCustom:1.0
//
/***/
public interface TestCustomValueFactory extends org.omg.CORBA.portable.ValueFactory
{
TestCustom
create(short s,
int l,
String str,
double d);
}
| 5,382 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueAIFactory_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestValueAIFactory_impl implements TestValueAIValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new TestValueAI_impl());
}
public TestValueAI create(int l) {
TestValueAI result = new TestValueAI_impl();
result.count = l;
return result;
}
public static TestValueAIValueFactory install(org.omg.CORBA.ORB orb) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
TestValueAIValueFactory result = new TestValueAIFactory_impl();
orb_2_3.register_value_factory(TestValueAIHelper.id(), result);
return result;
}
}
| 5,383 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestCustom.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestCustom:1.0
//
/***/
public abstract class TestCustom implements org.omg.CORBA.portable.CustomValue,
TestAbsValue1
{
//
// IDL:TestCustom/shortVal:1.0
//
/***/
public short shortVal;
//
// IDL:TestCustom/longVal:1.0
//
/***/
public int longVal;
//
// IDL:TestCustom/stringVal:1.0
//
/***/
public String stringVal;
//
// IDL:TestCustom/doubleVal:1.0
//
/***/
public double doubleVal;
private static String[] _OB_truncatableIds_ =
{
TestCustomHelper.id()
};
public String[]
_truncatable_ids()
{
return _OB_truncatableIds_;
}
}
| 5,384 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBVColo:1.0
//
/***/
public interface TestOBVColo extends TestOBVColoOperations,
org.omg.CORBA.Object,
org.omg.CORBA.portable.IDLEntity
{
}
| 5,385 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbstractSubPOATie.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstractSub:1.0
//
public class TestAbstractSubPOATie extends TestAbstractSubPOA
{
private TestAbstractSubOperations _ob_delegate_;
private org.omg.PortableServer.POA _ob_poa_;
public
TestAbstractSubPOATie(TestAbstractSubOperations delegate)
{
_ob_delegate_ = delegate;
}
public
TestAbstractSubPOATie(TestAbstractSubOperations delegate, org.omg.PortableServer.POA poa)
{
_ob_delegate_ = delegate;
_ob_poa_ = poa;
}
public TestAbstractSubOperations
_delegate()
{
return _ob_delegate_;
}
public void
_delegate(TestAbstractSubOperations delegate)
{
_ob_delegate_ = delegate;
}
public org.omg.PortableServer.POA
_default_POA()
{
if(_ob_poa_ != null)
return _ob_poa_;
else
return super._default_POA();
}
//
// IDL:TestAbstractSub/sub_op:1.0
//
public void
sub_op()
{
_ob_delegate_.sub_op();
}
//
// IDL:TestAbstract/abstract_op:1.0
//
public void
abstract_op()
{
_ob_delegate_.abstract_op();
}
}
| 5,386 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueSubHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueSub:1.0
//
final public class TestValueSubHelper
{
public static void
insert(org.omg.CORBA.Any any, TestValueSub val)
{
any.insert_Value(val, type());
}
public static TestValueSub
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestValueSub)
return (TestValueSub)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[1];
members[0] = new org.omg.CORBA.ValueMember();
members[0].name = "name";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string);
members[0].access = org.omg.CORBA.PUBLIC_MEMBER.value;
org.omg.CORBA.TypeCode baseType = TestValueHelper.type();
typeCode_ = orb.create_value_tc(id(), "TestValueSub", org.omg.CORBA.VM_NONE.value, baseType, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestValueSub:1.0";
}
public static TestValueSub
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestValueSub)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestValueSub val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
public static TestValueSub
create_sub(org.omg.CORBA.ORB orb,
int l,
String s)
{
TestValueSubValueFactory _ob_f = _OB_getFactory(orb);
return _ob_f.create_sub(l,
s);
}
private static TestValueSubValueFactory
_OB_getFactory(org.omg.CORBA.ORB orb)
{
org.omg.CORBA.portable.ValueFactory _ob_f = ((org.omg.CORBA_2_3.ORB)orb).lookup_value_factory(id());
if(_ob_f == null)
throw new org.omg.CORBA.MARSHAL(1, org.omg.CORBA.CompletionStatus.COMPLETED_NO);
return (TestValueSubValueFactory)_ob_f;
}
}
| 5,387 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestFixUnionBoxHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestFixUnionBox:1.0
//
final public class TestFixUnionBoxHelper implements org.omg.CORBA.portable.BoxedValueHelper
{
private static final TestFixUnionBoxHelper _instance = new TestFixUnionBoxHelper();
public static void
insert(org.omg.CORBA.Any any, TestFixUnion val)
{
any.insert_Value((java.io.Serializable)val, type());
}
public static TestFixUnion
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestFixUnion)
return (TestFixUnion)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_value_box_tc(id(), "TestFixUnionBox", TestFixUnionHelper.type());
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestFixUnionBox:1.0";
}
public static TestFixUnion
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestFixUnion)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(_instance);
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestFixUnion val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value((java.io.Serializable)val, _instance);
}
public java.io.Serializable
read_value(org.omg.CORBA.portable.InputStream in)
{
TestFixUnion _ob_v;
_ob_v = TestFixUnionHelper.read(in);
return (java.io.Serializable)_ob_v;
}
public void
write_value(org.omg.CORBA.portable.OutputStream out, java.io.Serializable val)
{
if(!(val instanceof TestFixUnion))
throw new org.omg.CORBA.MARSHAL();
TestFixUnion _ob_value = (TestFixUnion)val;
TestFixUnionHelper.write(out, _ob_value);
}
public String
get_id()
{
return id();
}
}
| 5,388 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestInterface.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestInterface:1.0
//
/***/
public interface TestInterface extends TestInterfaceOperations,
org.omg.CORBA.Object,
org.omg.CORBA.portable.IDLEntity
{
}
| 5,389 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestFixUnionBoxHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestFixUnionBox:1.0
//
final public class TestFixUnionBoxHolder implements org.omg.CORBA.portable.Streamable
{
public TestFixUnion value;
public
TestFixUnionBoxHolder()
{
}
public
TestFixUnionBoxHolder(TestFixUnion initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestFixUnionBoxHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestFixUnionBoxHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestFixUnionBoxHelper.type();
}
}
| 5,390 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTrunc1.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestTrunc1:1.0
//
/***/
public abstract class TestTrunc1 extends TestTruncBase
{
//
// IDL:TestTrunc1/boolVal:1.0
//
/***/
public boolean boolVal;
//
// IDL:TestTrunc1/v:1.0
//
/***/
public TestAbsValue1 v;
//
// IDL:TestTrunc1/shortVal:1.0
//
/***/
public short shortVal;
private static String[] _OB_truncatableIds_ =
{
TestTrunc1Helper.id(),
TestTruncBaseHelper.id()
};
public String[]
_truncatable_ids()
{
return _OB_truncatableIds_;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
super._read(in);
boolVal = in.read_boolean();
v = TestAbsValue1Helper.read(in);
shortVal = in.read_short();
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
super._write(out);
out.write_boolean(boolVal);
TestAbsValue1Helper.write(out, v);
out.write_short(shortVal);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestTrunc1Helper.type();
}
}
| 5,391 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVPOATie.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBV:1.0
//
public class TestOBVPOATie extends TestOBVPOA
{
private TestOBVOperations _ob_delegate_;
private org.omg.PortableServer.POA _ob_poa_;
public
TestOBVPOATie(TestOBVOperations delegate)
{
_ob_delegate_ = delegate;
}
public
TestOBVPOATie(TestOBVOperations delegate, org.omg.PortableServer.POA poa)
{
_ob_delegate_ = delegate;
_ob_poa_ = poa;
}
public TestOBVOperations
_delegate()
{
return _ob_delegate_;
}
public void
_delegate(TestOBVOperations delegate)
{
_ob_delegate_ = delegate;
}
public org.omg.PortableServer.POA
_default_POA()
{
if(_ob_poa_ != null)
return _ob_poa_;
else
return super._default_POA();
}
//
// IDL:TestOBV/get_null_valuebase:1.0
//
public java.io.Serializable
get_null_valuebase()
{
return _ob_delegate_.get_null_valuebase();
}
//
// IDL:TestOBV/set_null_valuebase:1.0
//
public void
set_null_valuebase(java.io.Serializable v)
{
_ob_delegate_.set_null_valuebase(v);
}
//
// IDL:TestOBV/get_null_valuesub:1.0
//
public TestValueSub
get_null_valuesub()
{
return _ob_delegate_.get_null_valuesub();
}
//
// IDL:TestOBV/set_null_valuesub:1.0
//
public void
set_null_valuesub(TestValueSub v)
{
_ob_delegate_.set_null_valuesub(v);
}
//
// IDL:TestOBV/get_abs_value1:1.0
//
public TestAbsValue1
get_abs_value1()
{
return _ob_delegate_.get_abs_value1();
}
//
// IDL:TestOBV/set_abs_value1:1.0
//
public void
set_abs_value1(TestAbsValue1 v)
{
_ob_delegate_.set_abs_value1(v);
}
//
// IDL:TestOBV/get_abs_value2:1.0
//
public TestAbsValue2
get_abs_value2()
{
return _ob_delegate_.get_abs_value2();
}
//
// IDL:TestOBV/set_abs_value2:1.0
//
public void
set_abs_value2(TestAbsValue2 v)
{
_ob_delegate_.set_abs_value2(v);
}
//
// IDL:TestOBV/get_value:1.0
//
public TestValue
get_value()
{
return _ob_delegate_.get_value();
}
//
// IDL:TestOBV/set_value:1.0
//
public void
set_value(TestValue v)
{
_ob_delegate_.set_value(v);
}
//
// IDL:TestOBV/get_valuesub:1.0
//
public TestValueSub
get_valuesub()
{
return _ob_delegate_.get_valuesub();
}
//
// IDL:TestOBV/set_valuesub:1.0
//
public void
set_valuesub(TestValueSub v)
{
_ob_delegate_.set_valuesub(v);
}
//
// IDL:TestOBV/get_valuesub_as_value:1.0
//
public TestValue
get_valuesub_as_value()
{
return _ob_delegate_.get_valuesub_as_value();
}
//
// IDL:TestOBV/set_valuesub_as_value:1.0
//
public void
set_valuesub_as_value(TestValue v)
{
_ob_delegate_.set_valuesub_as_value(v);
}
//
// IDL:TestOBV/get_two_values:1.0
//
public void
get_two_values(TestValueHolder v1,
TestValueHolder v2)
{
_ob_delegate_.get_two_values(v1,
v2);
}
//
// IDL:TestOBV/set_two_values:1.0
//
public void
set_two_values(TestValue v1,
TestValue v2)
{
_ob_delegate_.set_two_values(v1,
v2);
}
//
// IDL:TestOBV/get_two_valuesubs_as_values:1.0
//
public void
get_two_valuesubs_as_values(TestValueHolder v1,
TestValueHolder v2)
{
_ob_delegate_.get_two_valuesubs_as_values(v1,
v2);
}
//
// IDL:TestOBV/set_two_valuesubs_as_values:1.0
//
public void
set_two_valuesubs_as_values(TestValue v1,
TestValue v2)
{
_ob_delegate_.set_two_valuesubs_as_values(v1,
v2);
}
//
// IDL:TestOBV/get_custom:1.0
//
public TestCustom
get_custom()
{
return _ob_delegate_.get_custom();
}
//
// IDL:TestOBV/set_custom:1.0
//
public void
set_custom(TestCustom v)
{
_ob_delegate_.set_custom(v);
}
//
// IDL:TestOBV/get_abs_custom:1.0
//
public TestAbsValue1
get_abs_custom()
{
return _ob_delegate_.get_abs_custom();
}
//
// IDL:TestOBV/set_abs_custom:1.0
//
public void
set_abs_custom(TestAbsValue1 v)
{
_ob_delegate_.set_abs_custom(v);
}
//
// IDL:TestOBV/get_node:1.0
//
public void
get_node(TestNodeHolder v,
org.omg.CORBA.IntHolder count)
{
_ob_delegate_.get_node(v,
count);
}
//
// IDL:TestOBV/set_node:1.0
//
public void
set_node(TestNode v)
{
_ob_delegate_.set_node(v);
}
//
// IDL:TestOBV/get_string_box:1.0
//
public String
get_string_box(String value)
{
return _ob_delegate_.get_string_box(value);
}
//
// IDL:TestOBV/set_string_box:1.0
//
public void
set_string_box(String b,
String value)
{
_ob_delegate_.set_string_box(b,
value);
}
//
// IDL:TestOBV/get_ulong_box:1.0
//
public TestULongBox
get_ulong_box(int value)
{
return _ob_delegate_.get_ulong_box(value);
}
//
// IDL:TestOBV/set_ulong_box:1.0
//
public void
set_ulong_box(TestULongBox b,
int value)
{
_ob_delegate_.set_ulong_box(b,
value);
}
//
// IDL:TestOBV/get_fix_struct_box:1.0
//
public TestFixStruct
get_fix_struct_box(TestFixStruct value)
{
return _ob_delegate_.get_fix_struct_box(value);
}
//
// IDL:TestOBV/set_fix_struct_box:1.0
//
public void
set_fix_struct_box(TestFixStruct b,
TestFixStruct value)
{
_ob_delegate_.set_fix_struct_box(b,
value);
}
//
// IDL:TestOBV/get_var_struct_box:1.0
//
public TestVarStruct
get_var_struct_box(TestVarStruct value)
{
return _ob_delegate_.get_var_struct_box(value);
}
//
// IDL:TestOBV/set_var_struct_box:1.0
//
public void
set_var_struct_box(TestVarStruct b,
TestVarStruct value)
{
_ob_delegate_.set_var_struct_box(b,
value);
}
//
// IDL:TestOBV/get_fix_union_box:1.0
//
public TestFixUnion
get_fix_union_box(TestFixUnion value)
{
return _ob_delegate_.get_fix_union_box(value);
}
//
// IDL:TestOBV/set_fix_union_box:1.0
//
public void
set_fix_union_box(TestFixUnion b,
TestFixUnion value)
{
_ob_delegate_.set_fix_union_box(b,
value);
}
//
// IDL:TestOBV/get_var_union_box:1.0
//
public TestVarUnion
get_var_union_box(TestVarUnion value)
{
return _ob_delegate_.get_var_union_box(value);
}
//
// IDL:TestOBV/set_var_union_box:1.0
//
public void
set_var_union_box(TestVarUnion b,
TestVarUnion value)
{
_ob_delegate_.set_var_union_box(b,
value);
}
//
// IDL:TestOBV/get_anon_seq_box:1.0
//
public short[]
get_anon_seq_box(int length)
{
return _ob_delegate_.get_anon_seq_box(length);
}
//
// IDL:TestOBV/set_anon_seq_box:1.0
//
public void
set_anon_seq_box(short[] b,
int length)
{
_ob_delegate_.set_anon_seq_box(b,
length);
}
//
// IDL:TestOBV/get_string_seq_box:1.0
//
public String[]
get_string_seq_box(String[] value)
{
return _ob_delegate_.get_string_seq_box(value);
}
//
// IDL:TestOBV/set_string_seq_box:1.0
//
public void
set_string_seq_box(String[] b,
String[] value)
{
_ob_delegate_.set_string_seq_box(b,
value);
}
//
// IDL:TestOBV/get_ai_interface:1.0
//
public TestAbstract
get_ai_interface()
{
return _ob_delegate_.get_ai_interface();
}
//
// IDL:TestOBV/set_ai_interface:1.0
//
public void
set_ai_interface(TestAbstract a)
{
_ob_delegate_.set_ai_interface(a);
}
//
// IDL:TestOBV/get_ai_interface_any:1.0
//
public org.omg.CORBA.Any
get_ai_interface_any()
{
return _ob_delegate_.get_ai_interface_any();
}
//
// IDL:TestOBV/set_ai_interface_any:1.0
//
public void
set_ai_interface_any(org.omg.CORBA.Any a)
{
_ob_delegate_.set_ai_interface_any(a);
}
//
// IDL:TestOBV/get_ai_value:1.0
//
public TestAbstract
get_ai_value()
{
return _ob_delegate_.get_ai_value();
}
//
// IDL:TestOBV/set_ai_value:1.0
//
public void
set_ai_value(TestAbstract a)
{
_ob_delegate_.set_ai_value(a);
}
//
// IDL:TestOBV/get_ai_value_any:1.0
//
public org.omg.CORBA.Any
get_ai_value_any()
{
return _ob_delegate_.get_ai_value_any();
}
//
// IDL:TestOBV/set_ai_value_any:1.0
//
public void
set_ai_value_any(org.omg.CORBA.Any a)
{
_ob_delegate_.set_ai_value_any(a);
}
//
// IDL:TestOBV/get_trunc1:1.0
//
public TestTruncBase
get_trunc1()
{
return _ob_delegate_.get_trunc1();
}
//
// IDL:TestOBV/get_trunc2:1.0
//
public TestTruncBase
get_trunc2()
{
return _ob_delegate_.get_trunc2();
}
//
// IDL:TestOBV/get_value_any:1.0
//
public org.omg.CORBA.Any
get_value_any()
{
return _ob_delegate_.get_value_any();
}
//
// IDL:TestOBV/get_valuesub_any:1.0
//
public org.omg.CORBA.Any
get_valuesub_any()
{
return _ob_delegate_.get_valuesub_any();
}
//
// IDL:TestOBV/get_valuesub_as_value_any:1.0
//
public org.omg.CORBA.Any
get_valuesub_as_value_any()
{
return _ob_delegate_.get_valuesub_as_value_any();
}
//
// IDL:TestOBV/get_custom_any:1.0
//
public org.omg.CORBA.Any
get_custom_any()
{
return _ob_delegate_.get_custom_any();
}
//
// IDL:TestOBV/get_trunc1_any:1.0
//
public org.omg.CORBA.Any
get_trunc1_any()
{
return _ob_delegate_.get_trunc1_any();
}
//
// IDL:TestOBV/get_trunc1_as_base_any:1.0
//
public org.omg.CORBA.Any
get_trunc1_as_base_any()
{
return _ob_delegate_.get_trunc1_as_base_any();
}
//
// IDL:TestOBV/get_trunc2_any:1.0
//
public org.omg.CORBA.Any
get_trunc2_any()
{
return _ob_delegate_.get_trunc2_any();
}
//
// IDL:TestOBV/get_trunc2_as_base_any:1.0
//
public org.omg.CORBA.Any
get_trunc2_as_base_any()
{
return _ob_delegate_.get_trunc2_as_base_any();
}
//
// IDL:TestOBV/remarshal_any:1.0
//
public void
remarshal_any(org.omg.CORBA.Any a)
{
_ob_delegate_.remarshal_any(a);
}
//
// IDL:TestOBV/get_two_value_anys:1.0
//
public void
get_two_value_anys(org.omg.CORBA.AnyHolder a1,
org.omg.CORBA.AnyHolder a2)
{
_ob_delegate_.get_two_value_anys(a1,
a2);
}
//
// IDL:TestOBV/set_two_value_anys:1.0
//
public void
set_two_value_anys(org.omg.CORBA.Any a1,
org.omg.CORBA.Any a2)
{
_ob_delegate_.set_two_value_anys(a1,
a2);
}
//
// IDL:TestOBV/get_value_as_value:1.0
//
public TestValueInterface
get_value_as_value()
{
return _ob_delegate_.get_value_as_value();
}
//
// IDL:TestOBV/get_value_as_interface:1.0
//
public TestInterface
get_value_as_interface()
{
return _ob_delegate_.get_value_as_interface();
}
//
// IDL:TestOBV/deactivate:1.0
//
public void
deactivate()
{
_ob_delegate_.deactivate();
}
}
| 5,392 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueSubHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueSub:1.0
//
final public class TestValueSubHolder implements org.omg.CORBA.portable.Streamable
{
public TestValueSub value;
public
TestValueSubHolder()
{
}
public
TestValueSubHolder(TestValueSub initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestValueSubHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestValueSubHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestValueSubHelper.type();
}
}
| 5,393 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueSub.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueSub:1.0
//
/***/
public abstract class TestValueSub extends TestValue implements TestAbsValue2
{
//
// IDL:TestValueSub/name:1.0
//
/***/
public String name;
private static String[] _OB_truncatableIds_ =
{
TestValueSubHelper.id()
};
public String[]
_truncatable_ids()
{
return _OB_truncatableIds_;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
super._read(in);
name = in.read_string();
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
super._write(out);
out.write_string(name);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestValueSubHelper.type();
}
}
| 5,394 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoPOA.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBVColo:1.0
//
public abstract class TestOBVColoPOA
extends org.omg.PortableServer.Servant
implements org.omg.CORBA.portable.InvokeHandler,
TestOBVColoOperations
{
static final String[] _ob_ids_ =
{
"IDL:TestOBVColo:1.0",
};
public TestOBVColo
_this()
{
return TestOBVColoHelper.narrow(super._this_object());
}
public TestOBVColo
_this(org.omg.CORBA.ORB orb)
{
return TestOBVColoHelper.narrow(super._this_object(orb));
}
public String[]
_all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId)
{
return _ob_ids_;
}
public org.omg.CORBA.portable.OutputStream
_invoke(String opName,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
final String[] _ob_names =
{
"_get_test_abstract_attribute",
"_get_test_value_attribute",
"_get_test_value_seq_attribute",
"_get_test_value_struct_attribute",
"_get_test_value_union_attribute",
"_set_test_abstract_attribute",
"_set_test_value_attribute",
"_set_test_value_seq_attribute",
"_set_test_value_struct_attribute",
"_set_test_value_union_attribute",
"set_expected_count",
"test_abstract_op",
"test_value_op",
"test_value_seq_op",
"test_value_struct_op",
"test_value_union_op"
};
int _ob_left = 0;
int _ob_right = _ob_names.length;
int _ob_index = -1;
while(_ob_left < _ob_right)
{
int _ob_m = (_ob_left + _ob_right) / 2;
int _ob_res = _ob_names[_ob_m].compareTo(opName);
if(_ob_res == 0)
{
_ob_index = _ob_m;
break;
}
else if(_ob_res > 0)
_ob_right = _ob_m;
else
_ob_left = _ob_m + 1;
}
if(_ob_index == -1 && opName.charAt(0) == '_')
{
_ob_left = 0;
_ob_right = _ob_names.length;
String _ob_ami_op =
opName.substring(1);
while(_ob_left < _ob_right)
{
int _ob_m = (_ob_left + _ob_right) / 2;
int _ob_res = _ob_names[_ob_m].compareTo(_ob_ami_op);
if(_ob_res == 0)
{
_ob_index = _ob_m;
break;
}
else if(_ob_res > 0)
_ob_right = _ob_m;
else
_ob_left = _ob_m + 1;
}
}
switch(_ob_index)
{
case 0: // _get_test_abstract_attribute
return _OB_att_get_test_abstract_attribute(in, handler);
case 1: // _get_test_value_attribute
return _OB_att_get_test_value_attribute(in, handler);
case 2: // _get_test_value_seq_attribute
return _OB_att_get_test_value_seq_attribute(in, handler);
case 3: // _get_test_value_struct_attribute
return _OB_att_get_test_value_struct_attribute(in, handler);
case 4: // _get_test_value_union_attribute
return _OB_att_get_test_value_union_attribute(in, handler);
case 5: // _set_test_abstract_attribute
return _OB_att_set_test_abstract_attribute(in, handler);
case 6: // _set_test_value_attribute
return _OB_att_set_test_value_attribute(in, handler);
case 7: // _set_test_value_seq_attribute
return _OB_att_set_test_value_seq_attribute(in, handler);
case 8: // _set_test_value_struct_attribute
return _OB_att_set_test_value_struct_attribute(in, handler);
case 9: // _set_test_value_union_attribute
return _OB_att_set_test_value_union_attribute(in, handler);
case 10: // set_expected_count
return _OB_op_set_expected_count(in, handler);
case 11: // test_abstract_op
return _OB_op_test_abstract_op(in, handler);
case 12: // test_value_op
return _OB_op_test_value_op(in, handler);
case 13: // test_value_seq_op
return _OB_op_test_value_seq_op(in, handler);
case 14: // test_value_struct_op
return _OB_op_test_value_struct_op(in, handler);
case 15: // test_value_union_op
return _OB_op_test_value_union_op(in, handler);
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private org.omg.CORBA.portable.OutputStream
_OB_att_get_test_abstract_attribute(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
TestAbstract _ob_r = test_abstract_attribute();
org.omg.CORBA.portable.OutputStream out = handler.createReply();
TestAbstractHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_att_get_test_value_attribute(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
TestValue _ob_r = test_value_attribute();
org.omg.CORBA.portable.OutputStream out = handler.createReply();
TestValueHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_att_get_test_value_seq_attribute(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
TestValue[] _ob_r = test_value_seq_attribute();
org.omg.CORBA.portable.OutputStream out = handler.createReply();
test.obv.TestOBVColoPackage.VSeqHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_att_get_test_value_struct_attribute(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
test.obv.TestOBVColoPackage.SV _ob_r = test_value_struct_attribute();
org.omg.CORBA.portable.OutputStream out = handler.createReply();
test.obv.TestOBVColoPackage.SVHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_att_get_test_value_union_attribute(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
test.obv.TestOBVColoPackage.UV _ob_r = test_value_union_attribute();
org.omg.CORBA.portable.OutputStream out = handler.createReply();
test.obv.TestOBVColoPackage.UVHelper.write(out, _ob_r);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_att_set_test_abstract_attribute(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
TestAbstract _ob_a = TestAbstractHelper.read(in);
test_abstract_attribute(_ob_a);
return handler.createReply();
}
private org.omg.CORBA.portable.OutputStream
_OB_att_set_test_value_attribute(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
TestValue _ob_a = TestValueHelper.read(in);
test_value_attribute(_ob_a);
return handler.createReply();
}
private org.omg.CORBA.portable.OutputStream
_OB_att_set_test_value_seq_attribute(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
TestValue[] _ob_a = test.obv.TestOBVColoPackage.VSeqHelper.read(in);
test_value_seq_attribute(_ob_a);
return handler.createReply();
}
private org.omg.CORBA.portable.OutputStream
_OB_att_set_test_value_struct_attribute(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
test.obv.TestOBVColoPackage.SV _ob_a = test.obv.TestOBVColoPackage.SVHelper.read(in);
test_value_struct_attribute(_ob_a);
return handler.createReply();
}
private org.omg.CORBA.portable.OutputStream
_OB_att_set_test_value_union_attribute(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
test.obv.TestOBVColoPackage.UV _ob_a = test.obv.TestOBVColoPackage.UVHelper.read(in);
test_value_union_attribute(_ob_a);
return handler.createReply();
}
private org.omg.CORBA.portable.OutputStream
_OB_op_set_expected_count(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
int _ob_a0 = in.read_long();
set_expected_count(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_test_abstract_op(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestAbstract _ob_a0 = TestAbstractHelper.read(in);
test_abstract_op(_ob_a0);
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_test_value_op(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValue _ob_a0 = TestValueHelper.read(in);
TestValueHolder _ob_ah1 = new TestValueHolder();
_ob_ah1.value = TestValueHelper.read(in);
TestValueHolder _ob_ah2 = new TestValueHolder();
TestValue _ob_r = test_value_op(_ob_a0, _ob_ah1, _ob_ah2);
out = handler.createReply();
TestValueHelper.write(out, _ob_r);
TestValueHelper.write(out, _ob_ah1.value);
TestValueHelper.write(out, _ob_ah2.value);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_test_value_seq_op(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
TestValue[] _ob_a0 = test.obv.TestOBVColoPackage.VSeqHelper.read(in);
test.obv.TestOBVColoPackage.VSeqHolder _ob_ah1 = new test.obv.TestOBVColoPackage.VSeqHolder();
_ob_ah1.value = test.obv.TestOBVColoPackage.VSeqHelper.read(in);
test.obv.TestOBVColoPackage.VSeqHolder _ob_ah2 = new test.obv.TestOBVColoPackage.VSeqHolder();
TestValue[] _ob_r = test_value_seq_op(_ob_a0, _ob_ah1, _ob_ah2);
out = handler.createReply();
test.obv.TestOBVColoPackage.VSeqHelper.write(out, _ob_r);
test.obv.TestOBVColoPackage.VSeqHelper.write(out, _ob_ah1.value);
test.obv.TestOBVColoPackage.VSeqHelper.write(out, _ob_ah2.value);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_test_value_struct_op(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
test.obv.TestOBVColoPackage.SV _ob_a0 = test.obv.TestOBVColoPackage.SVHelper.read(in);
test.obv.TestOBVColoPackage.SVHolder _ob_ah1 = new test.obv.TestOBVColoPackage.SVHolder();
_ob_ah1.value = test.obv.TestOBVColoPackage.SVHelper.read(in);
test.obv.TestOBVColoPackage.SVHolder _ob_ah2 = new test.obv.TestOBVColoPackage.SVHolder();
test.obv.TestOBVColoPackage.SV _ob_r = test_value_struct_op(_ob_a0, _ob_ah1, _ob_ah2);
out = handler.createReply();
test.obv.TestOBVColoPackage.SVHelper.write(out, _ob_r);
test.obv.TestOBVColoPackage.SVHelper.write(out, _ob_ah1.value);
test.obv.TestOBVColoPackage.SVHelper.write(out, _ob_ah2.value);
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_test_value_union_op(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
test.obv.TestOBVColoPackage.UV _ob_a0 = test.obv.TestOBVColoPackage.UVHelper.read(in);
test.obv.TestOBVColoPackage.UVHolder _ob_ah1 = new test.obv.TestOBVColoPackage.UVHolder();
_ob_ah1.value = test.obv.TestOBVColoPackage.UVHelper.read(in);
test.obv.TestOBVColoPackage.UVHolder _ob_ah2 = new test.obv.TestOBVColoPackage.UVHolder();
test.obv.TestOBVColoPackage.UV _ob_r = test_value_union_op(_ob_a0, _ob_ah1, _ob_ah2);
out = handler.createReply();
test.obv.TestOBVColoPackage.UVHelper.write(out, _ob_r);
test.obv.TestOBVColoPackage.UVHelper.write(out, _ob_ah1.value);
test.obv.TestOBVColoPackage.UVHelper.write(out, _ob_ah2.value);
return out;
}
}
| 5,395 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueSub_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestValueSub_impl extends TestValueSub {
public void ping1() {
// do nothing
}
public void ping2() {
// do nothing
}
}
| 5,396 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestNodeValueFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestNode:1.0
//
/***/
public interface TestNodeValueFactory extends org.omg.CORBA.portable.ValueFactory
{
TestNode
create(int n);
TestNode
create_lr(int n,
TestNode l,
TestNode r);
}
| 5,397 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestVarUnion.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestVarUnion:1.0
//
/***/
final public class TestVarUnion implements org.omg.CORBA.portable.IDLEntity
{
java.lang.Object _ob_v_;
boolean _ob_i_;
int _ob_d_;
static boolean
_OB_check(int d0, int d1)
{
int d[] = new int[2];
d[0] = d0;
d[1] = d1;
for(int i = 0; i < 2; i++)
{
switch(d[i])
{
case 0:
break;
case 9:
break;
default:
d[i] = 1;
break;
}
}
return d[0] == d[1];
}
public
TestVarUnion()
{
_ob_i_ = false;
}
public int
discriminator()
{
if(!_ob_i_)
throw new org.omg.CORBA.BAD_OPERATION();
return _ob_d_;
}
public String
s()
{
if(!_ob_i_)
throw new org.omg.CORBA.BAD_OPERATION();
if(!_OB_check(_ob_d_, 0))
throw new org.omg.CORBA.BAD_OPERATION();
return (String)_ob_v_;
}
public void
s(String val)
{
_ob_i_ = true;
_ob_d_ = 0;
_ob_v_ = val;
}
public TestFixStruct
fs()
{
if(!_ob_i_)
throw new org.omg.CORBA.BAD_OPERATION();
if(!_OB_check(_ob_d_, 9))
throw new org.omg.CORBA.BAD_OPERATION();
return (TestFixStruct)_ob_v_;
}
public void
fs(TestFixStruct val)
{
_ob_i_ = true;
_ob_d_ = 9;
_ob_v_ = val;
}
public void
__default()
{
_ob_i_ = true;
_ob_d_ = 1;
_ob_v_ = null;
}
public void
__default(int d)
{
if(!_OB_check(d, 1))
throw new org.omg.CORBA.BAD_PARAM();
_ob_i_ = true;
_ob_d_ = d;
_ob_v_ = null;
}
}
| 5,398 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestStringSeqHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestStringSeq:1.0
//
final public class TestStringSeqHelper
{
public static void
insert(org.omg.CORBA.Any any, String[] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static String[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "TestStringSeq", orb.create_sequence_tc(0, orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string)));
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestStringSeq:1.0";
}
public static String[]
read(org.omg.CORBA.portable.InputStream in)
{
String[] _ob_v;
int len0 = in.read_ulong();
_ob_v = new String[len0];
for(int i0 = 0; i0 < len0; i0++)
_ob_v[i0] = in.read_string();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, String[] val)
{
int len0 = val.length;
out.write_ulong(len0);
for(int i0 = 0; i0 < len0; i0++)
out.write_string(val[i0]);
}
}
| 5,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.