|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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
An abstract class for representing hierarchical content, which can have children and other items of content contained within it.
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_ContentContainer()
|
Method Summary | |
NSArray |
acceptableClassesOfChildren()
Reports which classes of children are acceptable within the receiver. |
void |
appendExportXMLForPropertiesToString(StringBuffer returnString)
Calculates the export XML string for all properties (child tags and child text) owned by the receiver, and appends it to the given string. |
void |
awakeFromInsertion(EOEditingContext ec)
All newly-created content in the OCE system is immediately instantiated with the following values. |
C_Content |
childContentWithName(String aName)
Locates the existing child of the receiver which has the given name. |
C_Content |
contentAtContentPath(String aPath)
Locates the content at a given relative path. |
C_Content |
copyIntoEC(EOEditingContext ec)
Extends the superclass copy functionality to include the deep copying of child content. |
C_Content |
createNewChildOfClassWithStem(Class aClass,
String aStem)
Creates a new child within the receiver. |
void |
deleteChild(C_Content aChild)
Deletes the given child from the receiver. |
C_Content |
duplicateChild(C_Content aChild)
Creates a new copy of the specified child within the receiver, with an appropriate new (unique) name. |
StringBuffer |
exportXMLForAttributes()
Called during XML export: builds a StringBuffer holding all the attribute name="value" pairs for the receiver's XML. |
void |
fixHyperlinkPathsForImportedChildren(NSArray importedChildren)
Recurses through an array of recently imported child objects and fixes any hyperlink connections found. |
void |
forceDeleteAllChildren()
Forcibly remove all children from the receiver. |
void |
forceDeleteChild(C_Content aChild)
Deletes a child, ignoring any special rules which may normally deny the deletion. |
NSArray |
globalIDsForSelfAndAllChildren()
Retrieves an array of global IDs for the receiver and all of it's descendents. |
NSArray |
globalIDsForSelfAndAllLoadedChildren()
Retrieves an array of globalIDs for the receiver and all the descendants which are already loaded (which are not faults). |
String |
longDebuggingOutput()
|
String |
nameForNewChildWithStem(String aStem)
Calculates the appropriate name for a new child, ensuring there are no two children with the same name. |
NSArray |
orderedChildren()
Sorts the children of the receiver by name. |
boolean |
renameChildToName(C_Content aChild,
String aName)
Renames the given child to have the new name. |
NSArray |
selfAndAllChildren()
Retrieve an array consisting of the receiver and all the children. |
NSArray |
selfAndAllLoadedChildren()
Retrieve an array consisting of the receiver and all children that were previously fetched from the database. |
boolean |
selfOrSomeDescendantPublished()
Extends the super implementation to check if any children were published. |
C_Content |
startElementWithAttributes(String element,
NSDictionary attributes)
Called automatically by XMLParser when an opening tag is found. |
boolean |
willAcceptChild(C_Content aChild)
Reports whether or not receiver will accept a given content class instance. |
boolean |
willAcceptChildOfClass(Class aNewClass)
Reports whether or not the receiver will accept children of the given class. |
boolean |
willAcceptChildren(NSArray someChildren)
Reports whether or not the receiver will accept all the children in the given array. |
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_ContentContainer()
Method Detail |
public void awakeFromInsertion(EOEditingContext ec)
C_Content
awakeFromInsertion
in interface EOEnterpriseObject
awakeFromInsertion
in class C_Content
EOEnterpriseObject.awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext)
public C_Content copyIntoEC(EOEditingContext ec)
copyIntoEC
in class C_Content
ec
- editing context to copy into
C_Content.copyIntoEC(com.webobjects.eocontrol.EOEditingContext)
public C_Content contentAtContentPath(String aPath)
C_Content
contentAtContentPath
in class C_Content
aPath
- The relative path from the content root to the desired content.
public NSArray orderedChildren()
public C_Content childContentWithName(String aName)
Note this method does not create any new children.
aName
- name of the required child
public String nameForNewChildWithStem(String aStem)
This method is called automatically when creating new children.
aStem
- the desired name
public C_Content duplicateChild(C_Content aChild)
aChild
- the child to duplicate
public void deleteChild(C_Content aChild)
Can be overridden in subclasses to do additional checks / refuse deletion etc.
aChild
- the child to be deleted.public boolean renameChildToName(C_Content aChild, String aName)
This method does not modify the given name for uniqueness, but refuses the renaming if the new name is not unique.
aChild
- the child to be renamedaName
- the new name for the child
public C_Content createNewChildOfClassWithStem(Class aClass, String aStem)
This method throws exceptions if it is illegal for the receiver to have children of the requested class.
aClass
- desired class for the new childaStem
- desired name for the new child (which will be modified for uniqueness)
public NSArray acceptableClassesOfChildren()
The base implementation returns an empty array.
public boolean willAcceptChildOfClass(Class aNewClass)
aNewClass
- class to be tested
public boolean willAcceptChild(C_Content aChild)
Extends willAcceptChildOfClass(Class)
to check that
the given instance is not already present amongst the existing
children.
aChild
- the potential child
public boolean willAcceptChildren(NSArray someChildren)
someChildren
- array of potential children
public NSArray selfAndAllChildren()
public NSArray selfAndAllLoadedChildren()
Any faults found will not be included.
selfAndAllLoadedChildren
in class C_Content
public NSArray globalIDsForSelfAndAllChildren()
globalIDsForSelfAndAllChildren
in class C_Content
public NSArray globalIDsForSelfAndAllLoadedChildren()
globalIDsForSelfAndAllLoadedChildren
in class C_Content
public boolean selfOrSomeDescendantPublished()
selfOrSomeDescendantPublished
in class C_Content
C_Content.selfOrSomeDescendantPublished()
public StringBuffer exportXMLForAttributes()
C_Content
exportXMLForAttributes
in class C_Content
public void appendExportXMLForPropertiesToString(StringBuffer returnString)
appendExportXMLForPropertiesToString
in class C_Content
returnString
- StringBuffer to which the result will be appendedC_Content.appendExportXMLForPropertiesToString(java.lang.StringBuffer)
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_Content
element
- The name of the start tag found.attributes
- A dictionary of the attribute keys and values in the start tag.public void fixHyperlinkPathsForImportedChildren(NSArray importedChildren)
This is done because internal links (links between two pieces of content both being imported in one go) cannot be set at import time, as the link target may not yet have been loaded. So the relationships are actually set here.
importedChildren
- array of imported childrenpublic void forceDeleteChild(C_Content aChild)
This method should normally only be used by framework-internal routines.
Client programs (and similar) should normally call deleteChild(C_Content)
.
aChild
- the child to be deleted.public void forceDeleteAllChildren()
Special rules which would normally deny the deletion are ignored.
public String longDebuggingOutput()
longDebuggingOutput
in class C_Content
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |