Version: 1.1.1

org.biomoby.shared.schema
Class MElement

java.lang.Object
  extended by org.biomoby.shared.schema.MElement

public class MElement
extends Object

Author:
Eddie TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
static String DATA_TIME
          A moby:DateTime primitive type
static String FLOAT
          A moby:Float primitive type
static String INTEGER
          A moby:Integer primitive type
static String NON_PRIMITIVE
          A moby data type that is not a primitive.
static String STRING
          A moby:String primitive type
 
Constructor Summary
MElement()
          Default constructor.
MElement(String name)
           
MElement(String name, String articleName)
           
MElement(String name, String articleName, String description)
           
 
Method Summary
 boolean addHasaMElement(MElement element)
           
 boolean addHasMElement(MElement element)
           
 boolean equals(Object obj)
           
 String getArticleName()
           
 String getDescription()
           
 Vector getHasaMElements()
           
 Vector getHasMElements()
           
 String getName()
           
 String getType()
           
 int hashCode()
          override the hashCode() and equals() method of Object; In MElementHashtable class, we will use a hashtable to /*store MElement and articleNames;
static boolean isPrimitive(String object)
           
 void setDescription(String description)
           
 void setName(String name)
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STRING

public static String STRING
A moby:String primitive type


INTEGER

public static String INTEGER
A moby:Integer primitive type


FLOAT

public static String FLOAT
A moby:Float primitive type


DATA_TIME

public static String DATA_TIME
A moby:DateTime primitive type


NON_PRIMITIVE

public static String NON_PRIMITIVE
A moby data type that is not a primitive.

Constructor Detail

MElement

public MElement()
Default constructor. Name, etc need to be set.


MElement

public MElement(String name)

MElement

public MElement(String name,
                String articleName)

MElement

public MElement(String name,
                String articleName,
                String description)
Method Detail

getArticleName

public String getArticleName()

getDescription

public String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(String description)
Parameters:
description - The description to set.

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.

getType

public String getType()
Returns:
Returns the type.

setType

public void setType(String type)
Parameters:
type - The type to set.

getHasaMElements

public Vector getHasaMElements()
Returns:
Returns the hasaMElements.

getHasMElements

public Vector getHasMElements()
Returns:
Returns the hasMElements.

addHasMElement

public boolean addHasMElement(MElement element)

addHasaMElement

public boolean addHasaMElement(MElement element)

isPrimitive

public static boolean isPrimitive(String object)

hashCode

public int hashCode()
override the hashCode() and equals() method of Object; In MElementHashtable class, we will use a hashtable to /*store MElement and articleNames;

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010