edu.wis.jtlv.env.module
Class ModuleEntity

java.lang.Object
  extended by edu.wis.jtlv.env.module.ModuleEntity
Direct Known Subclasses:
ModuleBDDDefine, ModuleBDDField

public abstract class ModuleEntity
extends java.lang.Object

A common interface from a module BDD entity. Mostly takes care of the entity location (i.e. path and name..)

Version:
"1.3.2"
Author:
yaniv sa'ar.

Constructor Summary
ModuleEntity()
           
 
Method Summary
 boolean equals(java.lang.Object other)
           Overrides the Object.equals(Object).
 java.lang.String getName()
           Get this field's name.
 java.lang.String getPath()
           Get this field's path.
 java.lang.String getSimpleArrayName()
           In case this is an array name for field, returns the simple name without the braces '['']'.
If this is not an array name, then an empty string "", will be returned.
 boolean strongEquals(java.lang.Object other)
           Check whether this object is completely identical to the give object.
 java.lang.String toFullString()
           Get the string representation of this field, with the path leading to it.
 java.lang.String toString()
           Get the string representation of this field, without the path leading to it.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleEntity

public ModuleEntity()
Method Detail

equals

public boolean equals(java.lang.Object other)

Overrides the Object.equals(Object). Check whether this object is identical to the given object by comparing the field's path, and the field's name. This procedure does not continue to check whether the domains are identical. (This is done so that collections will identify that such a field exists, regardless of its domain)

Overrides:
equals in class java.lang.Object
Parameters:
other - The other object to compare this filed to.
Returns:
true if the given object is identical to this, false otherwise.
See Also:
ModuleBDDField.comparable(ModuleBDDField), strongEquals(Object)

strongEquals

public boolean strongEquals(java.lang.Object other)

Check whether this object is completely identical to the give object. This implementation is referred to the original Object.equals(Object).

Parameters:
other - The other object to compare this filed to.
Returns:
true if the given object is identical to this, false otherwise.
See Also:
ModuleBDDField.comparable(ModuleBDDField), equals(Object)

toString

public java.lang.String toString()

Get the string representation of this field, without the path leading to it.

Overrides:
toString in class java.lang.Object
Returns:
A short string representing this field.
See Also:
toFullString()

toFullString

public java.lang.String toFullString()

Get the string representation of this field, with the path leading to it.

Returns:
A short string representing this field.
See Also:
toString()

getPath

public java.lang.String getPath()

Get this field's path.

Returns:
This field's path.

getName

public java.lang.String getName()

Get this field's name.

Returns:
This field's name.

getSimpleArrayName

public java.lang.String getSimpleArrayName()

In case this is an array name for field, returns the simple name without the braces '['']'.
If this is not an array name, then an empty string "", will be returned.

Returns:
The simple name for this field.