public void setValue(Object o, UnmarshallingContext navigator, String namespaceURI,
String localName, String value)
{
if (o instanceof Mapping)
{
Mapping m = (Mapping)o;
if ("notification-type".equals(localName))
{
m.setNotificationType(value);
}
else if ("generic".equals(localName))
{
m.setGeneric(Integer.parseInt(value));
}
else if ("specific".equals(localName))
{
m.setSpecific(Integer.parseInt(value));
}
else if ("enterprise".equals(localName))
{
m.setEnterprise(value);
}
}
else if (o instanceof VarBind)
{
VarBind vb = (VarBind)o;