org.metafacture.metamorph.api.KnowsSourceLocation Maven / Gradle / Ivy
/*
* Copyright 2016 Christoph Böhme
*
* Licensed under the Apache License, Version 2.0 the "License";
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.metafacture.metamorph.api;
/**
* Metamorph elements which know about their location in the morph definition
* file should implement this interface to make the information about their
* location available in a standardised way.
*
* @author Christoph Böhme
*
*/
public interface KnowsSourceLocation {
/**
* Sets the {@link SourceLocation} object which describes where in the morph
* definition file the implementing object is defined.
*
* @param sourceLocation a source location
*/
void setSourceLocation(SourceLocation sourceLocation);
/**
* Gets the location object for the location in the morph definition file
* where the implementing object instance is defined.
*
* @return a source location
*/
SourceLocation getSourceLocation();
}