List positionList = new ArrayList();
LdifContainer[] containers = model.getContainers();
for ( int i = 0; i < containers.length; i++ )
{
LdifContainer container = containers[i];
// LdifPart errorPart = null;
int errorOffset = -1;
int errorLength = -1;
StringBuffer errorText = null;
LdifPart[] parts = container.getParts();
for ( int k = 0; k < parts.length; k++ )
{
LdifPart part = parts[k];
if ( !part.isValid() )
{
if ( errorOffset == -1 )
{
// errorPart = part;
errorOffset = part.getOffset();
errorLength = part.getLength();
errorText = new StringBuffer();
errorText.append( part.toRawString() );
}
else
{
errorLength += part.getLength();
errorText.append( part.toRawString() );
}
}
}
if ( errorOffset == -1 && !container.isValid() )
{
errorOffset = container.getOffset();
errorLength = container.getLength();
errorText = new StringBuffer();
errorText.append( container.toRawString() );
}
if ( errorOffset > -1 )
{
// Annotation annotation = new Annotation("DEFAULT",