org.andromda.core.configuration
Class Location

java.lang.Object
  extended by org.andromda.core.configuration.Location
All Implemented Interfaces:
Serializable

public class Location
extends Object
implements Serializable

Represents a location within a module search or mappings search.

Author:
Chad Brandon
See Also:
Serialized Form

Constructor Summary
Location()
           
 
Method Summary
 String getPath()
          Gets the path to this location.
 String getPatterns()
          Gets the patterns to include in this location.
 URL[] getResources()
          Gets all files that are valid for this location.
 void setPath(String path)
          Sets the path to this location.
 void setPatterns(String patterns)
          Sets the patterns to include in this location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Location

public Location()
Method Detail

getPath

public String getPath()
Gets the path to this location.

Returns:
Returns the path to this location.

setPath

public void setPath(String path)
Sets the path to this location.

Parameters:
path - The path to this location.

getPatterns

public String getPatterns()
Gets the patterns to include in this location.

Returns:
Returns the patterns.

setPatterns

public void setPatterns(String patterns)
Sets the patterns to include in this location.

Parameters:
patterns - The patterns to set.

getResources

public URL[] getResources()
Gets all files that are valid for this location. It takes into consideration the given patterns. If the location is an actual file, the an array containing that single file is returned.

Returns:
the valid files.


Copyright © 2003-2012 AndroMDA.org. All Rights Reserved.