public class DefaultContentModelElement extends ModelElementImpl implements ValidatedContentModelElement
TYPE| Constructor and Description |
|---|
DefaultContentModelElement(String id,
String directiveName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Overrides the default to loosen the parameters slightly.
|
String |
flushContent()
Flushes the content of the all the buffer elements
|
ExtensibilityContent |
getNextContentBufferElement()
This should be implemented to return the next buffer element to write to.
|
String |
getType() |
int |
hashCode() |
void |
parseContent()
Processes the content if required.
|
boolean |
validateContent() |
getDirectiveName, getId, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDirectiveName, getIdpublic void parseContent()
ValidatedContentModelElementparseContent in interface ValidatedContentModelElementpublic ExtensibilityContent getNextContentBufferElement()
ContentModelElementThis should be implemented to return the next buffer element to write to.
Depending upon the implementation this method could always return the same
buffer element. The buffer element in this case should be an object that is and
implementation of ExtensibilityContent.
getNextContentBufferElement in interface ContentModelElementExtensibilityContent object to write to.public boolean validateContent()
validateContent in interface ValidatedContentModelElementpublic String flushContent()
ContentModelElementFlushes the content of the all the buffer elements
flushContent in interface ContentModelElementpublic int hashCode()
hashCode in class ModelElementImplpublic boolean equals(Object obj)
Overrides the default to loosen the parameters slightly. Two ContentModelElement
objects are equal if they both implement the ContentModelElement and have the same "id"
attribute. This means that two ContentModelElement instances are still considered equal
even if they are not implemented by the same class. This makes searching for content in the content
model easier.
equals in class ModelElementImplpublic String getType()
getType in interface ExtensibilityModelElementCopyright © 2005–2016 Alfresco Software. All rights reserved.