本文整理汇总了Java中org.omg.CORBA.SetOverrideType类的典型用法代码示例。如果您正苦于以下问题:Java SetOverrideType类的具体用法?Java SetOverrideType怎么用?Java SetOverrideType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SetOverrideType类属于org.omg.CORBA包,在下文中一共展示了SetOverrideType类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: _set_policy_override
import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
/**
* This method is not appropriate for the local objects and just
* throws an exception.
*
* @throws NO_IMPLEMENT, always.
*/
public org.omg.CORBA.Object _set_policy_override(Policy[] policies,
SetOverrideType how
)
{
throw new NO_IMPLEMENT(INAPPROPRIATE);
}
示例2: setPolicies
import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
public synchronized void setPolicies(Policy[] policies,
SetOverrideType set_add)
throws org.omg.CORBA.InvalidPolicies
{
if (set_add == SetOverrideType.SET_OVERRIDE) {
clear();
}
java.util.Vector errors = null;
for (short i = 0; i < policies.length; i++) {
try {
setPolicy(policies[i]);
}
catch (PolicyError pe) {
if (errors == null)
errors = new java.util.Vector();
errors.add(new Short(i));
}
}
if (errors != null) {
InvalidPolicies ex = new InvalidPolicies();
int size = errors.size();
ex.indices = new short[size];
for (int i = 0; i < size; i++)
ex.indices[i] = ((Short) errors.elementAt(i)).shortValue();
throw ex;
}
}
示例3: _set_policy_override
import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
public org.omg.CORBA.Object _set_policy_override( Policy[] policies,
SetOverrideType set_add)
{
return object._set_policy_override( policies, set_add ) ;
}
示例4: set_policy_override
import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
/**
* Returns a new object with the new policies either replacing or
* extending the current policies, depending on the second parameter.
*
* @param target the CORBA object, to that this operation must be applied.
* @param policies the policy additions or replacements.
* @param how either {@link SetOverrideType#SET_OVERRIDE} to override the
* current policies of {@link SetOverrideType#ADD_OVERRIDE} to replace
* them.
*
* @throws NO_IMPLEMENT, always (following the 1.4 specification).
*
* @return the new reference with the changed policies.
*/
public org.omg.CORBA.Object set_policy_override(org.omg.CORBA.Object target,
Policy[] policies,
SetOverrideType how
)
{
throw new NO_IMPLEMENT(WHY);
}
示例5: _set_policy_override
import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
/**
* Returns a new object with the new policies either replacing or
* extending the current policies, depending on the second parameter.
*
* @param policies the policy additions or replacements.
* @param how either {@link SetOverrideType#SET_OVERRIDE} to override the
* current policies of {@link SetOverrideType#ADD_OVERRIDE} to replace
* them.
*/
public org.omg.CORBA.Object _set_policy_override(Policy[] policies,
SetOverrideType how
)
{
return delegate.set_policy_override(this, policies, how);
}
示例6: _set_policy_override
import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
/**
* The POAs cannot be created by this method.
*
* @specnote this is also not possible in Suns jdk at least till 1.4.
*
* @throws NO_IMPLEMENT always.
*/
public org.omg.CORBA.Object _set_policy_override(Policy[] policies,
SetOverrideType how
)
{
throw new NO_IMPLEMENT("Use createPOA instead.");
}
示例7: SetOverrideTypeHolder
import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
/**
* Create the initialised instance.
*
* @param initialValue the initial value.
*/
public SetOverrideTypeHolder(SetOverrideType initialValue)
{
value = initialValue;
}