{
machine.returnValue(findValue(sName), nArgCount);
}
else
{
throw new ScriptingException("err.scripting.tobjAttribute", new Object[]{sName});
}
}
else
{
machine.returnValue(findValue(sName), nArgCount);
}
}
else if (nArgCount == 2)
{
Object value = machine.getArg(1, nArgCount);
if (sName.length() > 0 && sName.charAt(0) == ':')
{
if (sym == Symbol._EVENT)
{
if (value != null && !(value instanceof String))
{
throw new TypeMismatchException(Symbol._EVENT);
}
setEventName((String)value);
}
else if (sym == Symbol._CLASS)
{
if (value != null && !(value instanceof String))
{
throw new TypeMismatchException(Symbol._CLASS);
}
setClassName((String)value);
}
else if (sym == Symbol._OID)
{
if (value != null && !(value instanceof OID))
{
throw new TypeMismatchException(Symbol._OID);
}
setOID((OID)value);
}
else if (sym == Symbol._VERSION)
{
if (!(value instanceof Number))
{
throw new TypeMismatchException(Symbol._VERSION);
}
setVersion(((Number)value).shortValue());
}
else if (sym == Symbol._CONTAINS)
{
if (value instanceof Symbol)
{
value = Boolean.valueOf(hasValue(value.toString()));
}
else if (value instanceof String)
{
value = Boolean.valueOf(hasValue((String)value));
}
else
{
throw new TypeMismatchException(Symbol._CONTAINS);
}
}
else if (sym == Symbol._GET)
{
if (value instanceof Symbol)
{
value = getValue(value.toString());
}
else if (value instanceof String)
{
value = getValue((String)value);
}
else
{
throw new TypeMismatchException(Symbol._GET);
}
}
else if (sym == Symbol._REMOVE)
{
if (value instanceof Symbol)
{
value = Boolean.valueOf(removeValue(value.toString()));
}
else if (value instanceof String)
{
value = Boolean.valueOf(removeValue((String)value));
}
else
{
throw new TypeMismatchException(Symbol._REMOVE);
}
}
else if (sym == Symbol._PRE)
{
setValue(sName, value);
}
else
{
throw new ScriptingException("err.scripting.tobjAttribute", new Object[]{sName});
}
}
else
{
setValue(sName, value);
}
machine.returnValue(value, nArgCount);
}
else
{
throw new ScriptingException("err.scripting.maxArgCount",
new Object[]{sym.toString(),
Primitive.ONE_INTEGER,
Primitive.createInteger(nArgCount - 1)});
}
return false;
}
else
{
throw new ScriptingException("err.scripting.funCall");
}
}
else
{
throw new ScriptingException("err.scripting.minArgCount",
new Object[]{"TransferObject",
Primitive.ONE_INTEGER,
Primitive.createInteger(nArgCount)});
}
}