|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.eocontrol.EOCustomObject
com.webobjects.eocontrol.EOGenericRecord
com.cassinidivision.oce.content.base._C_Content
com.cassinidivision.oce.content.C_Content
com.cassinidivision.oce.content.base._C_ContentContainer
com.cassinidivision.oce.content.C_ContentContainer
com.cassinidivision.oce.content.base._C_TextContent
com.cassinidivision.oce.content.C_TextContent
A class representing a chunk of hypertext in a page component (corresponding to a named niche).
The hypertext can be made up of simple characters, entities (&...;), and tags of two different types. There are tags for platform-independent styling information, such as <C_STRONG> and <C_BR>. There are also tags which mark up embedded child objects such as hyperlinks and images (C_LeafContent subclasses). In the latter case, the details of the child are stored in the object, and a simple placeholder tag in the hypertext marks where the child appears.
Note this is different to how the text copy is presented during XML import/export. The entire details of the child objects appear in the generated XML tag, which marks their location. The mapping between these two forms is dealt with by custom implementations of the XMLParser methods for import (within this class), and of the export methods defined in C_Content for export.
Nested Class Summary |
Nested classes inherited from class com.webobjects.eocontrol.EOGenericRecord |
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding |
Nested classes inherited from class com.webobjects.eocontrol.EOCustomObject |
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding |
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCodingAdditions |
EOKeyValueCodingAdditions.DefaultImplementation, EOKeyValueCodingAdditions.Utility |
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCoding |
EOKeyValueCoding._BestBindingCreation, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCoding._StoredForwardingBinding |
Nested classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Nested classes inherited from class com.webobjects.eocontrol._EOPrivateMemento |
_EOPrivateMemento.DefaultImplementation |
Field Summary |
Fields inherited from class com.webobjects.eocontrol.EOGenericRecord |
_CLASS |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
_KeyPathSeparatorChar, KeyPathSeparator |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NullValue |
Constructor Summary | |
C_TextContent()
|
Method Summary | |
NSArray |
acceptableClassesOfChildren()
Reports which classes of children are acceptable within the receiver. |
void |
addCharacterData(String value)
Called automatically by XMLParser when character data is found. |
void |
appendExportXMLForPropertiesToString(StringBuffer returnString)
Overrides superclass method and does not call super. |
void |
appendExportXMLForTextCopyToString(StringBuffer returnString)
Derives the export XML string from the current text copy object. |
void |
appendXMLForTagToString(String tagString,
StringBuffer returnString)
Compute the XML representation for a given inner hypertext tag. |
void |
awakeFromInsertion(EOEditingContext ec)
All newly-created content in the OCE system is immediately instantiated with the following values. |
C_Content |
copyIntoEC(EOEditingContext ec)
Extends the superclass copy functionality to include the deep copying of child content. |
String |
defaultXMLRepresentation()
Retrieves the default XML representation of the receiving content. |
boolean |
endElement(String element)
Called automatically by the XML parser when an end tag is found. |
StringBuffer |
exportXMLForAttributes()
Called during XML export: builds a StringBuffer holding all the attribute name="value" pairs for the receiver's XML. |
void |
processTagInOutput(String tagString,
StringBuffer buf)
Request XML representations for certain embedded content objects (such as links and images). |
void |
setStringTextCopy(String value)
Convenience method: set a string value for the text copy. |
C_Content |
startElementWithAttributes(String element,
NSDictionary attributes)
Called automatically by XMLParser when an opening tag is found. |
String |
stringTextCopy()
Convenience method: return the text copy as a string. |
void |
takeAttributesFromDictionary(NSDictionary pList)
Sets up the receiver's instance variables from given values. |
NSData |
textCopy()
|
Methods inherited from class com.cassinidivision.oce.content.base._C_TextContent |
ordering, setOrdering, setTextCopy |
Methods inherited from class com.cassinidivision.oce.content.base._C_ContentContainer |
addToChildren, children, removeFromChildren, setChildren |
Methods inherited from class com.cassinidivision.oce.content.base._C_Content |
addToXmlAttributes, className, creationDate, modificationDate, name, parent, removeFromXmlAttributes, setClassName, setCreationDate, setModificationDate, setName, setParent, setXmlAttributes, setXmlLabel, xmlAttributes, xmlLabel |
Methods inherited from class com.webobjects.eocontrol.EOGenericRecord |
__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _otherStorageBinding, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public C_TextContent()
Method Detail |
public void awakeFromInsertion(EOEditingContext ec)
C_Content
awakeFromInsertion
in interface EOEnterpriseObject
awakeFromInsertion
in class C_ContentContainer
public C_Content copyIntoEC(EOEditingContext ec)
C_ContentContainer
copyIntoEC
in class C_ContentContainer
ec
- editing context to copy into
C_Content.copyIntoEC(com.webobjects.eocontrol.EOEditingContext)
public NSArray acceptableClassesOfChildren()
C_ContentContainer
The base implementation returns an empty array.
acceptableClassesOfChildren
in class C_ContentContainer
public void appendXMLForTagToString(String tagString, StringBuffer returnString)
tagString
- String containing the inner tag.returnString
- StringBuffer to which to append the generated XML.public void appendExportXMLForTextCopyToString(StringBuffer returnString)
This is done differently from other classes, as the actual text copy is included into the outgoing XML as CDATA (tags and all) rather than simply as an attribute value.
returnString
- string containing export-format XMLpublic void appendExportXMLForPropertiesToString(StringBuffer returnString)
appendExportXMLForPropertiesToString
in class C_ContentContainer
returnString
- StringBuffer to which the result will be appendedC_Content.appendExportXMLForPropertiesToString(java.lang.StringBuffer)
public StringBuffer exportXMLForAttributes()
C_Content
exportXMLForAttributes
in class C_ContentContainer
public void takeAttributesFromDictionary(NSDictionary pList)
C_Content
The values will normally have come from the attributes of an XML start element tag.
takeAttributesFromDictionary
in class C_Content
pList
- The dictionary of values.public boolean endElement(String element)
C_Content
For a discussion of which objects receive messages about which tags, see
XMLParser
.
endElement
in class C_Content
element
- The name of the ending tag.
public void addCharacterData(String value)
C_Content
For a discussion of which objects receive messages about which pieces
of character data, see XMLParser
.
addCharacterData
in class C_Content
value
- The character data which has been parsed.public C_Content startElementWithAttributes(String element, NSDictionary attributes)
C_Content
For a discussion of which objects receive messages about which opening
tags, see XMLParser
.
startElementWithAttributes
in class C_ContentContainer
public String defaultXMLRepresentation()
C_Content
The base implementation throws an exception (purely abstract content has no representation).
defaultXMLRepresentation
in class C_Content
public void processTagInOutput(String tagString, StringBuffer buf)
tagString
- String containing inner tag (with attributes)buf
- StringBuffer that the generated XML will be appended topublic NSData textCopy()
public String stringTextCopy()
The encoding will be that used when the text copy value was originally written.
public void setStringTextCopy(String value)
The string encoding used will be the current platform default.
value
- string representing the text copy
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |