public class BodyContent
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Constructor and Description |
---|
BodyContent() |
BodyContent(BodyContent orig) |
BodyContent(ContentEntityObject content,
java.lang.String body,
BodyType bodyType) |
Modifier and Type | Method and Description |
---|---|
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.
|
public BodyContent()
public BodyContent(BodyContent orig)
public BodyContent(ContentEntityObject content, java.lang.String body, BodyType bodyType)
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 itpublic 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
Copyright © 2003-2014 Atlassian. All Rights Reserved.