int value = 1;
if (multValue != null)
{
if (multValue instanceof LiteralInteger)
{
LiteralInteger litInt = (LiteralInteger)multValue;
value = litInt.getValue();
}
else if (multValue instanceof LiteralUnlimitedNatural)
{
LiteralUnlimitedNatural litInt = (LiteralUnlimitedNatural)multValue;
value = litInt.getValue();
}
else if (multValue instanceof LiteralString)
{
LiteralString litStr = (LiteralString)multValue;