Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.commonjava.maven.galley.maven.model.view;
 
 import java.util.Set;
 
public class MavenXmlMixin<T extends ProjectRef>
    public static final String[] DEPENDENCY_MIXIN = { "dependencyManagement/dependencies/dependency""dependencyManagement//dependency" };
    private final Set<StringsubPaths;
    private final MavenXmlView<T> mixin;
    public MavenXmlMixinfinal MavenXmlView<T> mixinfinal Set<StringpathPatterns )
    {
        this. = mixin;
        this. = pathPatterns;
    }
    public MavenXmlMixinfinal MavenXmlView<T> mixinfinal String... pathPatterns )
    {
        this. = mixin;
        this. = new HashSet<String>( Arrays.asListpathPatterns ) );
    }
    public boolean matchesfinal String path )
    {
        for ( final String pattern :  )
        {
            if ( path.containspattern ) )
            {
                return true;
            }
        }
        return false;
    }
    public Set<StringgetSubPaths()
    {
        return ;
    }
    public MavenXmlView<T> getMixin()
    {
        return ;
    }
    public String resolveXPathExpressionfinal String path )
        throws GalleyMavenException
    {
        return .resolveXPathExpressionpathtrue, -1 );
    }
    public Node resolveXPathToNodefinal String path )
        throws GalleyMavenException
    {
        return .resolveXPathToNodepathtrue, -1 );
    }
    @Override
    public String toString()
    {
        return "Mixin [ref: " + .getRef() + ", paths: " +  + "]";
    }
New to GrepCode? Check out our FAQ X