|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.core.BodyContent
public class BodyContent
Constructor Summary | |
---|---|
BodyContent()
|
|
BodyContent(BodyContent orig)
|
|
BodyContent(ContentEntityObject content,
java.lang.String body,
BodyType bodyType)
|
Method Summary | |
---|---|
java.lang.String |
cleanBody(ContentCleaner cleaner)
Cleans the stored body (marking it as such), and returns it. |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getBody()
|
BodyType |
getBodyType()
|
ContentEntityObject |
getContent()
|
long |
getId()
Hibernate ID |
int |
hashCode()
|
boolean |
isBodyCleaned()
|
void |
setBody(java.lang.String body)
Sets the new body for this object. |
void |
setBodyType(BodyType bodyType)
Changes the body type for this object. |
void |
setContent(ContentEntityObject content)
|
void |
setId(long id)
Hibernate ID |
void |
shallowCopy(BodyContent orig)
Does a shallow copy of object orig. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BodyContent()
public BodyContent(BodyContent orig)
public BodyContent(ContentEntityObject content, java.lang.String body, BodyType bodyType)
Method Detail |
---|
public void shallowCopy(BodyContent orig)
public java.lang.String getBody()
isBodyCleaned()
and cleanBody(com.atlassian.confluence.content.ContentCleaner)
public void setBody(java.lang.String body)
isBodyCleaned()
and cleanBody(com.atlassian.confluence.content.ContentCleaner)
public BodyType getBodyType()
public void setBodyType(BodyType bodyType)
BodyType
). When changing the body
type to a different one or to null, the body will be marked as dirty (not AntiSamy'ed), see isBodyCleaned()
and cleanBody(com.atlassian.confluence.content.ContentCleaner)
public long getId()
public void setId(long id)
public ContentEntityObject getContent()
public void setContent(ContentEntityObject content)
public boolean isBodyCleaned()
XhtmlCleaningInterceptor.cleanBodyContents(Object, String[], Object[])
}
to check if we've already cleaned this object's bodypublic java.lang.String cleanBody(ContentCleaner cleaner)
cleaner
- clean() will be called on this object with the current body passed to it
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |