public Object unmarshal(Object obj, IUnmarshallingContext ictx)
throws JiBXException {
if (!(ictx instanceof UnmarshallingContext)) {
throw new JiBXException
("Unmarshalling context not of expected type");
} else if (m_name != null && !ictx.isAt(m_uri, m_name)) {
((UnmarshallingContext)ictx).throwStartTagNameError(m_uri, m_name);
}
m_unmarshalContext = (UnmarshallingContext)ictx;
m_unmarshalContext.toStart();
try {
return unmarshalElement();
} catch (IOException e) {
throw new JiBXException("Error reading from document", e);
}
}
}