LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info
Class LyTag

java.lang.Object
  extended by leon.info.LyTag
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
LyActionResource, LyArgument, LyBinding, LyClassRef, LyData, LyFieldBean, LyFieldConstraint, LyFieldInfoImport, LyFormat, LyGeometry, LyInfo, LyInfoCache, LyInfoDaemon, LyJavaName, LyModel, LyParameter, LyParameterDecl, LyUnion

public abstract class LyTag
extends java.lang.Object
implements java.lang.Cloneable

This class implements a simple object built when parsing the leonardi model.


Nested Class Summary
static class LyTag.Model
          List of all models.
 
Field Summary
static java.lang.String __VERSION
           
 
Method Summary
 java.lang.Object clone()
          Implementation of the Cloneable interface.
 LyApplication getApplication()
          Accessor for the application to which the info belongs.
 java.lang.String getCommentsEnd()
          Accessor to Stored comments after the tag (comments at END).
 java.lang.String getCommentsStart()
          Accessor to Stored comments before the tag (comments at Start).
 LyEnvironment getEnvironment()
          To get the current environment when using the info.
 java.lang.String getId()
          Accessor for the id of the info.
 LyTag.Model getModelType()
          Gets model type that defines this info.
 LyInfo getParent()
          Gets parent of this info.
 LyProject getRootProject()
          Gets project to which this info belongs to.
 boolean hasAncestor(LyInfo parent)
          Checks if this info has given parent as ancestor.
 boolean isExtern()
          Checks if an info is declared as extern or not (comes from the include of an extern model).
 void setCommentsEnd(java.lang.String comments)
          Store comments after the tag (comments at END).
 void setCommentsStart(java.lang.String comments)
          Store comments before the tag (comments at Start).
 boolean wasCloned()
          Checks if this tag was created by clone method (used by AC).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Method Detail

getId

public java.lang.String getId()
Accessor for the id of the info.

Returns:
Idenfifier of the info.

getApplication

public LyApplication getApplication()
Accessor for the application to which the info belongs.

Returns:
Application of the info.

getParent

public final LyInfo getParent()
Gets parent of this info.

Returns:
Parent of this info.

hasAncestor

public final boolean hasAncestor(LyInfo parent)
Checks if this info has given parent as ancestor.

Parameters:
parent - Parent that is checked as ancestor.
Returns:
True if given parent is ancestor of this info.

getModelType

public final LyTag.Model getModelType()
Gets model type that defines this info.

Returns:
TYPE_DATA, TYPE_GUI or TYPE_BIND.

getRootProject

public final LyProject getRootProject()
Gets project to which this info belongs to.

Returns:
Project of this info.

getEnvironment

public final LyEnvironment getEnvironment()
To get the current environment when using the info.

Returns:
The current environment.

isExtern

public final boolean isExtern()
Checks if an info is declared as extern or not (comes from the include of an extern model).

Returns:
True if the info is extern, false otherwise.

setCommentsStart

public final void setCommentsStart(java.lang.String comments)
Store comments before the tag (comments at Start).

Parameters:
comments - comments to store

setCommentsEnd

public final void setCommentsEnd(java.lang.String comments)
Store comments after the tag (comments at END).

Parameters:
comments - comments to store

getCommentsStart

public final java.lang.String getCommentsStart()
Accessor to Stored comments before the tag (comments at Start).

Returns:
starts comments on tag

getCommentsEnd

public final java.lang.String getCommentsEnd()
Accessor to Stored comments after the tag (comments at END).

Returns:
comments comments to store

wasCloned

public final boolean wasCloned()
Checks if this tag was created by clone method (used by AC).

Returns:
True if this tag is a result of clone method.

clone

public java.lang.Object clone()
Implementation of the Cloneable interface.

Overrides:
clone in class java.lang.Object

(c) January 2013 - W4 S.A.

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