|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.content.DefaultContentType
public class DefaultContentType
A default immutable implementation of a content type.
Constructor Summary | |
---|---|
DefaultContentType(java.lang.String name)
|
|
DefaultContentType(java.lang.String name,
java.lang.String displayName)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDisplayName()
This is the name of the content as it can be displayed on a UI. |
java.lang.String |
getName()
Get the name of the content. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultContentType(java.lang.String name)
public DefaultContentType(java.lang.String name, java.lang.String displayName)
Method Detail |
---|
public java.lang.String getName()
ContentType
Get the name of the content. This is meant to be a key to access content type and therefore one should be very careful when deciding the name of the content. Implementation should rely on a constant for their name.
The name is what will be used to register the ContentType
to any kind of registry.
getName
in interface ContentType
public java.lang.String getDisplayName()
ContentType
This is the name of the content as it can be displayed on a UI. This can also be a key to an i18nized name.
getDisplayName
in interface ContentType
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |