LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.misc
Class LyJavaName

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.misc.LyJavaName
All Implemented Interfaces:
java.lang.Cloneable

public class LyJavaName
extends LyTag

This class describes a java Class used by an application.


Nested Class Summary
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
 
Fields inherited from class leon.info.LyTag
__VERSION
 
Constructor Summary
LyJavaName()
          Default constructor.
LyJavaName(LyInfo info, java.lang.String javaName)
          The constructor: store the id.
LyJavaName(LyInfo info, java.lang.String javaName, boolean external)
          The constructor: store the javaName and extern property.
 
Method Summary
 java.lang.Class<?> getJavaClass()
          This method enables to find a class whose name matches the java name.
 java.lang.String getJavaName()
          Gives the internal identifier.
 boolean isExternal()
          Indicates if Java is external or not.
 boolean isGeneric()
          Checks if the associated java class is generic or not.
static boolean isGeneric(java.lang.String javaName)
          Checks if the given java class is generic or not.
 
Methods inherited from class leon.info.LyTag
clone, getApplication, getCommentsEnd, getCommentsStart, getEnvironment, getId, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LyJavaName

public LyJavaName()
Default constructor.


LyJavaName

public LyJavaName(LyInfo info,
                  java.lang.String javaName)
The constructor: store the id.


LyJavaName

public LyJavaName(LyInfo info,
                  java.lang.String javaName,
                  boolean external)
The constructor: store the javaName and extern property.

Method Detail

isGeneric

public static boolean isGeneric(java.lang.String javaName)
Checks if the given java class is generic or not.

Returns:
True if generic, false if specific.

getJavaName

public java.lang.String getJavaName()
Gives the internal identifier.


isExternal

public boolean isExternal()
Indicates if Java is external or not.


getJavaClass

public java.lang.Class<?> getJavaClass()
This method enables to find a class whose name matches the java name.

Returns:
The loaded class or null if it could not be found.

isGeneric

public boolean isGeneric()
Checks if the associated java class is generic or not.

Returns:
True if generic, false if specific.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com