return -1;
}
if (parent instanceof ParentDataFactoryNode)
{
final ParentDataFactoryNode pdfn = (ParentDataFactoryNode) parent;
final CompoundDataFactory compoundDataFactory = pdfn.getDataFactory();
if (child instanceof ParentDataFactoryNode)
{
return compoundDataFactory.size();
}
if (child instanceof InheritedDataFactoryWrapper == false)
{
return -1;
}
final InheritedDataFactoryWrapper wrapper = (InheritedDataFactoryWrapper) child;
final CompoundDataFactory dataFactoryElement = getDataFactoryElement();
for (int i = 0; i < dataFactoryElement.size(); i++)
{
final DataFactory dataFactory = dataFactoryElement.getReference(i);
if (dataFactory == wrapper.getDataFactory())
{
return i;
}
}