Package com.volantis.mcs.model.validation

Examples of com.volantis.mcs.model.validation.SourceLocation


                }
                buffer.append(level);

                // Add the position in the file
                buffer.append(" ");
                SourceLocation location = diagnostic.getLocation();
                buffer.append(location.getSourceDocumentName());
                buffer.append(":(");
                buffer.append(location.getSourceLineNumber());
                buffer.append(",");
                buffer.append(location.getSourceColumnNumber());
                buffer.append(")");

                // Only add the path if debug is enabled since it is internal
                // but it can be pretty useful.
                if (logger.isDebugEnabled()) {
View Full Code Here


            // Redefining the same object twice so just ignore it.
        } else {
            // Duplicate definitions found. If the definition is not already
            // marked as duplicated then mark it and report it as a duplicate.
            if (!definition.isDuplicated()) {
                SourceLocation firstSource = definition.getSource();
                Path firstPath = definition.getPath();

                reportDuplicate(context, firstSource, firstPath, identifier);
                definition.setDuplicated(true);
            }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.model.validation.SourceLocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.