|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.shared.schema.MElement
public class MElement
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 |
---|
public static String STRING
public static String INTEGER
public static String FLOAT
public static String DATA_TIME
public static String NON_PRIMITIVE
Constructor Detail |
---|
public MElement()
public MElement(String name)
public MElement(String name, String articleName)
public MElement(String name, String articleName, String description)
Method Detail |
---|
public String getArticleName()
public String getDescription()
public void setDescription(String description)
description
- The description to set.public String getName()
public void setName(String name)
name
- The name to set.public String getType()
public void setType(String type)
type
- The type to set.public Vector getHasaMElements()
public Vector getHasMElements()
public boolean addHasMElement(MElement element)
public boolean addHasaMElement(MElement element)
public static boolean isPrimitive(String object)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |