@MappedSuperclass public abstract class HierarchialDomainObject extends DomainObject implements IHierarchialReference<Long>, Displayable, Cloneable
MappedSuperclass
implementation of IHierarchialReference
objects.Modifier and Type | Field and Description |
---|---|
static String |
ATTRIB_HIERARCHY_STARTS_LIKE
Deprecated.
|
static String |
ATTRIB_PRODUCT_PARENT
Deprecated.
|
protected String |
displayName
Display Name (Can contain HTML)
If you want to display the name without HTML use MarshalUtils.regexReplace(safeDisplayName, HTMLUtils.html4Replacer) |
protected Long |
parentId |
ROOT
Constructor and Description |
---|
HierarchialDomainObject() |
HierarchialDomainObject(String s) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDisplayName()
Display Name (Can contain HTML)
If you want to display the name without HTML use MarshalUtils.regexReplace(safeDisplayName, HTMLUtils.html4Replacer) |
String |
getHierarchy()
A String like: "rootId-nodeId-subnodeId-thisId"; gives the entire picture of
the hierarchy to this point.
|
Long |
getParentId() |
int |
hashCode() |
void |
setDisplayName(String displayName)
Display Name (Can contain HTML)
If you want to display the name without HTML use MarshalUtils.regexReplace(safeDisplayName, HTMLUtils.html4Replacer) |
void |
setHierarchy(String hierarchy)
A String like: "rootId-nodeId-subnodeId-thisId"; gives the entire picture of
the hierarchy to this point.
|
void |
setParentId(Long parentId) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, setId, setName
@Deprecated public static final String ATTRIB_PRODUCT_PARENT
@Deprecated public static final String ATTRIB_HIERARCHY_STARTS_LIKE
@Type(value="INPUT") protected String displayName
MarshalUtils.regexReplace(safeDisplayName, HTMLUtils.html4Replacer)
IHierarchialReference.getName()
will return namepublic HierarchialDomainObject()
public HierarchialDomainObject(String s)
public String getDisplayName()
MarshalUtils.regexReplace(safeDisplayName, HTMLUtils.html4Replacer)
getDisplayName
in interface Displayable
IHierarchialReference.getName()
will return namepublic void setDisplayName(String displayName)
MarshalUtils.regexReplace(safeDisplayName, HTMLUtils.html4Replacer)
IHierarchialReference.getName()
will return namepublic Long getParentId()
getParentId
in interface IHierarchialReference<Long>
public void setParentId(Long parentId)
setParentId
in interface IHierarchialReference<Long>
public String getHierarchy()
getHierarchy
in interface IHierarchialReference<Long>
public void setHierarchy(String hierarchy)
setHierarchy
in interface IHierarchialReference<Long>
Copyright © 2018. All rights reserved.