![JAR search and dependency download from the Maven repository](/logo.png)
org.eclipse.wst.validation.DependentResource Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright (c) 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.validation;
import org.eclipse.core.resources.IResource;
/**
* A resource that is dependent on another resource.
*
* This is returned by the IDependencyIndex.
*
* @noextend
* @see IDependencyIndex
* @author karasiuk
*
*/
public class DependentResource {
private IResource _resource;
private Validator _validator;
/**
* @noreference
*/
public DependentResource(IResource resource, Validator validator){
_resource = resource;
_validator = validator;
}
/**
* Answer the resource that is depended on.
*/
public IResource getResource() {
return _resource;
}
/**
* Answer the validator that asserted the dependency.
*/
public Validator getValidator() {
return _validator;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy