{
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);