public class MoiseElement extends java.lang.Object implements java.io.Serializable, Identifiable, java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
Constructor and Description |
---|
MoiseElement() |
MoiseElement(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object obj) |
boolean |
equals(java.lang.Object o) |
boolean |
getBoolProperty(java.lang.String id) |
boolean |
getBoolProperty(java.lang.String id,
boolean defaultReturn) |
java.util.Date |
getCreationDate() |
java.lang.String |
getFullId()
returns a full id : prefix + "." + id if there is a prefix,
only
|
java.lang.String |
getId() |
static java.lang.String |
getId(java.lang.String s)
get the id part of a string with the format prefix.id, return "id" if there is no prefix
|
OEAgent |
getOwner() |
java.lang.String |
getPrefix() |
static java.lang.String |
getPrefix(java.lang.String s)
get the prefix part of a string with the format prefix.id,
returns null if there is no prefix
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
org.w3c.dom.Element |
getPropertiesAsDOM(org.w3c.dom.Document document) |
java.lang.String |
getPropertiesAsProlog() |
java.lang.Object |
getProperty(java.lang.String id) |
java.lang.String |
getStrProperty(java.lang.String id,
java.lang.String defaultReturn) |
int |
hashCode() |
void |
setId(java.lang.String s) |
void |
setOwner(OEAgent ag) |
void |
setPrefix(java.lang.String p) |
void |
setPropertiesFromDOM(org.w3c.dom.Element parent) |
void |
setProperty(java.lang.String id,
java.lang.Object value) |
java.lang.String |
toString() |
public MoiseElement()
public MoiseElement(java.lang.String id)
public java.lang.String getId()
getId
in interface Identifiable
public void setId(java.lang.String s)
public void setOwner(OEAgent ag)
public OEAgent getOwner()
public java.util.Date getCreationDate()
public void setPrefix(java.lang.String p)
public java.lang.String getPrefix()
getPrefix
in interface Identifiable
public java.lang.String getFullId()
getFullId
in interface Identifiable
public void setProperty(java.lang.String id, java.lang.Object value)
public java.lang.Object getProperty(java.lang.String id)
public java.lang.String getStrProperty(java.lang.String id, java.lang.String defaultReturn)
public boolean getBoolProperty(java.lang.String id)
public boolean getBoolProperty(java.lang.String id, boolean defaultReturn)
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public static java.lang.String getPrefix(java.lang.String s)
public static java.lang.String getId(java.lang.String s)
public java.lang.String toString()
toString
in class java.lang.Object
public org.w3c.dom.Element getPropertiesAsDOM(org.w3c.dom.Document document)
public java.lang.String getPropertiesAsProlog()
public void setPropertiesFromDOM(org.w3c.dom.Element parent)