Class PlainJavaPackageFragmentRoot
- java.lang.Object
-
- org.faktorips.devtools.abstraction.AWrapper<java.io.File>
-
- org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaJavaElement
-
- org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaPackageFragmentRoot
-
- All Implemented Interfaces:
AAbstraction,AJavaElement,APackageFragmentRoot
public class PlainJavaPackageFragmentRoot extends PlainJavaJavaElement implements APackageFragmentRoot
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.PathgetOutputLocation()java.io.Fileunwrap()Returns the platform-specific object corresponding to this abstraction.-
Methods inherited from class org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaJavaElement
exists, getJavaProject, getPath, getResource
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.faktorips.devtools.abstraction.AJavaElement
exists, getJavaProject, getPath, getResource
-
-
-
-
Method Detail
-
unwrap
public java.io.File unwrap()
Description copied from interface:AAbstractionReturns the platform-specific object corresponding to this abstraction. The generic type parameter is used to avoid casts when assigning to platform-specific objects. It is the obligation of the caller to make sure the right type is used, otherwise aClassCastExceptionwill be thrown.Sample usage:
interface ACalendar extends AAbstraction[...] class LocalDateAsCalendarWrapper extends AWrapper<LocalDate>[...] [...] ACalendar calendar = Wrappers.of(LocalDate.now()).as(ACalendar.class); [...] LocalDate date = calendar.unwrap();- Specified by:
unwrapin interfaceAAbstraction- Overrides:
unwrapin classAWrapper<java.io.File>- See Also:
Wrappers#unwrap(AAbstraction) for a way to unwrap potentially null abstractions.
-
getOutputLocation
public java.nio.file.Path getOutputLocation()
- Specified by:
getOutputLocationin interfaceAPackageFragmentRoot
-
-