org.plasma.text.lang3gl
Class DefaultLang3GLContext

java.lang.Object
  extended by org.plasma.text.lang3gl.DefaultLang3GLContext
All Implemented Interfaces:
Lang3GLContext

public class DefaultLang3GLContext
extends java.lang.Object
implements Lang3GLContext


Constructor Summary
DefaultLang3GLContext(Model packages)
           
 
Method Summary
 Class findClass(ClassRef cref)
          Returns a Class for the given ClassRef
 Class findClass(java.lang.String qualifiedName)
          Returns a Class for the given qualified name where qualified names take the format uri#class-name, for example http://mysite.com/myapp#MyClass
 Package findPackage(ClassRef cref)
          Returns a Package for the given ClassRef
 Package findPackage(java.lang.String qualifiedName)
          Returns a Package for the given qualified name where qualified names take the format uri#class-name, for example http://mysite.com/myapp#MyClass
 java.lang.String getIndentationToken()
           
 boolean usePrimitives()
          Whether to use primitives over wrapper type classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLang3GLContext

public DefaultLang3GLContext(Model packages)
Method Detail

findClass

public Class findClass(ClassRef cref)
Description copied from interface: Lang3GLContext
Returns a Class for the given ClassRef

Specified by:
findClass in interface Lang3GLContext
Parameters:
cref - the ClassRef
Returns:
the Class referenced by the given ClassRef
See Also:
org.plasma.text.lang3gl.Class, org.plasma.text.lang3gl.ClassRef

findClass

public Class findClass(java.lang.String qualifiedName)
Description copied from interface: Lang3GLContext
Returns a Class for the given qualified name where qualified names take the format uri#class-name, for example http://mysite.com/myapp#MyClass

Specified by:
findClass in interface Lang3GLContext
Parameters:
qualifiedName - the qualified name, for example http://mysite.com/myapp#MyClass
Returns:
the Class referenced by the given qualified name
See Also:
org.plasma.text.lang3gl.Class

findPackage

public Package findPackage(ClassRef cref)
Description copied from interface: Lang3GLContext
Returns a Package for the given ClassRef

Specified by:
findPackage in interface Lang3GLContext
Parameters:
cref - the ClassRef
Returns:
the Package referenced by the given ClassRef
See Also:
org.plasma.text.lang3gl.Package, org.plasma.text.lang3gl.ClassRef

findPackage

public Package findPackage(java.lang.String qualifiedName)
Description copied from interface: Lang3GLContext
Returns a Package for the given qualified name where qualified names take the format uri#class-name, for example http://mysite.com/myapp#MyClass

Specified by:
findPackage in interface Lang3GLContext
Parameters:
qualifiedName - the qualified name, for example http://mysite.com/myapp#MyClass
Returns:
the Package referenced by the given qualified name
See Also:
org.plasma.text.lang3gl.Package

usePrimitives

public boolean usePrimitives()
Description copied from interface: Lang3GLContext
Whether to use primitives over wrapper type classes.

Specified by:
usePrimitives in interface Lang3GLContext
Returns:
whether to use primitives over wrapper type classes

getIndentationToken

public java.lang.String getIndentationToken()
Specified by:
getIndentationToken in interface Lang3GLContext


Copyright © 2013. All Rights Reserved.