com.ibm.workplace.wcm.api
Interface ContentComponent

All Known Subinterfaces:
FileComponent, HTMLComponent, ImageComponent, ReferenceComponent, RichTextComponent, TextComponent

public interface ContentComponent

The root interface in the Content Component hierarchy. ContentComponent is an interface to mark a component that can be held within a ContentComponentContainer.

A ContentComponent can exist only on Content, Site or SiteArea objects. A ContentComponent must live in a ContentComponentContainer - it cannot exist in the the repository as a separate object.

A content component has a one-to-one relationship with a ContentComponentContainer object, and consequently, with an object that can contain a ContentComponentContainer. This is different to a LibraryComponent as a LibraryComponent may be reused by different objects in the repository.

See Also:
LibraryComponent

Field Summary
static java.lang.String COPYRIGHT
          Copyright statement
 
Method Summary
 ContentComponentContainer getContainer()
          Returns the ContentComponentContainer object that contains this ContentComponent.
 java.lang.String getName()
          Returns the name of this ContentComponent object.
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright statement

See Also:
Constant Field Values
Method Detail

getName

public java.lang.String getName()
Returns the name of this ContentComponent object.

Returns:
the component name

getContainer

public ContentComponentContainer getContainer()
Returns the ContentComponentContainer object that contains this ContentComponent.

Returns:
the ContentComponentContainer of this object
Throws:
java.lang.IllegalStateException - if the ContentComponentContainer for this ContentComponent has not been set