org.springframework.roo.classpath.converters
Class LastUsedImpl

java.lang.Object
  extended by org.springframework.roo.classpath.converters.LastUsedImpl
All Implemented Interfaces:
LastUsed

@Service
public class LastUsedImpl
extends Object
implements LastUsed

Records the last Java package and type used.

Since:
1.0
Author:
Ben Alex

Constructor Summary
LastUsedImpl()
           
 
Method Summary
 org.springframework.roo.model.JavaPackage getJavaPackage()
           
 org.springframework.roo.model.JavaType getJavaType()
           
 org.springframework.roo.model.JavaPackage getTopLevelPackage()
           
 void setPackage(org.springframework.roo.model.JavaPackage javaPackage)
          Sets the package, and clears the type field.
 void setTopLevelPackage(org.springframework.roo.model.JavaPackage topLevelPackage)
           
 void setType(org.springframework.roo.model.JavaType javaType)
          Sets the type, and also sets the package field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastUsedImpl

public LastUsedImpl()
Method Detail

setPackage

public void setPackage(org.springframework.roo.model.JavaPackage javaPackage)
Description copied from interface: LastUsed
Sets the package, and clears the type field. Ignores attempts to set to java.*.

Specified by:
setPackage in interface LastUsed

setType

public void setType(org.springframework.roo.model.JavaType javaType)
Description copied from interface: LastUsed
Sets the type, and also sets the package field. Ignores attempts to set to java.*.

Specified by:
setType in interface LastUsed

getTopLevelPackage

public org.springframework.roo.model.JavaPackage getTopLevelPackage()
Specified by:
getTopLevelPackage in interface LastUsed

setTopLevelPackage

public void setTopLevelPackage(org.springframework.roo.model.JavaPackage topLevelPackage)
Specified by:
setTopLevelPackage in interface LastUsed

getJavaType

public org.springframework.roo.model.JavaType getJavaType()
Specified by:
getJavaType in interface LastUsed
Returns:
the type or null

getJavaPackage

public org.springframework.roo.model.JavaPackage getJavaPackage()
Specified by:
getJavaPackage in interface LastUsed
Returns:
the package, either explicitly set or via a type set (may also be null if never set)


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.