{
if (terms.length > 1) name = terms[1].split(INNER_SEP)[0];
if (name.length() == 0) name = "noname";
}
BasicSIFNode node = new BasicSIFNode(root, id, name);
node.addReference(new XRef("NAME:"+node.getName()));
if (terms.length > 1)
{
for (String ref : terms[1].split(INNER_SEP))
{
if (ref.length() > 0)
{
if (ref.indexOf(XRef.SEPARATOR) < 0)
{
System.out.println("defective line = " + line);
}
else
{
node.addReference(new XRef(ref));
}
}
}
}
if (terms.length > 2)
{
for (String ref : terms[2].split(INNER_SEP))
{
if (ref.length() > 0)
{
if (ref.indexOf(XRef.SEPARATOR) < 0)
{
System.out.println("defective line = " + line);
}
else
{
node.addReference(new XRef(ref));
}
}
}
}