org.andromda.core.configuration
Class Location

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

public class Location
extends java.lang.Object
implements java.io.Serializable

Represents a location within a module search or mappings search.

Author:
Chad Brandon
See Also:
Serialized Form

Constructor Summary
Location()
           
 
Method Summary
 java.lang.String getPath()
          Gets the path to this location.
 java.lang.String getPatterns()
          Gets the patterns to include in this location.
 java.net.URL[] getResources()
          Gets all files that are valid for this location.
 void setPath(java.lang.String path)
          Sets the path to this location.
 void setPatterns(java.lang.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 java.lang.String getPath()
Gets the path to this location.

Returns:
Returns the path to this location.

setPath

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

Parameters:
path - The path to this location.

getPatterns

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

Returns:
Returns the patterns.

setPatterns

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

Parameters:
patterns - The patterns to set.

getResources

public java.net.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-2008 AndroMDA.org. All Rights Reserved.