|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.types.AbstractModelObject org.springframework.extensions.surf.types.ComponentImpl
public class ComponentImpl
Default component implementation
Field Summary |
---|
Fields inherited from class org.springframework.extensions.surf.types.AbstractModelObject |
---|
CONTAINER_PROPERTIES, CONTAINER_RESOURCES, customProperties, description, descriptionId, document, id, info, modelProperties, modelVersion, modificationTime, resourceContainer, title, titleId |
Fields inherited from interface org.springframework.extensions.surf.types.Component |
---|
PROP_CHROME, PROP_COMPONENT_TYPE_ID, PROP_GUID, PROP_REGION_ID, PROP_SCOPE, PROP_SOURCE_ID, PROP_URL, TYPE_ID |
Fields inherited from interface org.springframework.extensions.surf.ModelObject |
---|
PROP_DESCRIPTION, PROP_DESCRIPTION_ID, PROP_ID, PROP_TITLE, PROP_TITLE_ID |
Constructor Summary | |
---|---|
ComponentImpl(String id,
ModelPersisterInfo key,
org.dom4j.Document document)
Instantiates a new component for a given XML document. |
Method Summary | |
---|---|
String |
getChrome()
Gets the chrome. |
ComponentType |
getComponentType(RequestContext context)
Gets the component type. |
String |
getComponentTypeId()
Gets the component type id. |
String |
getGUID()
Gets the GUID. |
String |
getRegionId()
Gets the region id. |
String |
getScope()
Gets the scope. |
String |
getSourceId()
Gets the source id. |
Object |
getSourceObject(RequestContext context)
Gets the source object. |
String |
getTypeId()
Returns the type id of the model object. |
String |
getURL()
Gets the URL. |
protected void |
regenerateId()
Regenerate the ID for this component |
void |
setChrome(String chrome)
Sets the chrome. |
void |
setComponentTypeId(String componentTypeId)
Sets the component type id. |
void |
setGUID(String guid)
Sets the GUID. |
void |
setId(String id)
Allows for reassignment of the id of the object |
void |
setRegionId(String regionId)
Sets the region id. |
void |
setScope(String scope)
Sets the scope. |
void |
setSourceId(String sourceId)
Sets the source id. |
void |
setURL(String url)
Sets the URL. |
Methods inherited from class org.springframework.extensions.surf.types.AbstractModelObject |
---|
addResource, addResource, getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModelVersion, getModificationTime, getPersisterId, getProperties, getProperty, getResource, getResourceContainer, getResources, getResourcesMap, getStoragePath, getTitle, getTitleId, isCustomProperty, isModelProperty, isSaved, removeCustomProperty, removeModelProperty, removeProperty, removeResource, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setModificationTime, setProperty, setTitle, setTitleId, toString, touch, toXML, updateResource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.extensions.surf.ModelObject |
---|
getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModelVersion, getModificationTime, getPersisterId, getProperties, getProperty, getStoragePath, getTitle, getTitleId, isSaved, removeCustomProperty, removeModelProperty, removeProperty, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setProperty, setTitle, setTitleId, touch, toXML |
Constructor Detail |
---|
public ComponentImpl(String id, ModelPersisterInfo key, org.dom4j.Document document)
document
- the documentMethod Detail |
---|
public String getTypeId()
ModelObject
getTypeId
in interface ModelObject
getTypeId
in class AbstractModelObject
public String getRegionId()
Component
getRegionId
in interface Component
public void setRegionId(String regionId)
Component
setRegionId
in interface Component
regionId
- the new region idpublic String getSourceId()
Component
getSourceId
in interface Component
public void setSourceId(String sourceId)
Component
setSourceId
in interface Component
sourceId
- the new source idpublic String getScope()
Component
getScope
in interface Component
public void setScope(String scope)
Component
setScope
in interface Component
scope
- the new scopepublic String getComponentTypeId()
Component
getComponentTypeId
in interface Component
public void setComponentTypeId(String componentTypeId)
Component
setComponentTypeId
in interface Component
componentTypeId
- the new component type idpublic String getChrome()
Component
getChrome
in interface Component
public void setChrome(String chrome)
Component
setChrome
in interface Component
chrome
- the new chromepublic String getURL()
Component
getURL
in interface Component
public void setURL(String url)
Component
setURL
in interface Component
url
- the new URLpublic String getGUID()
Component
getGUID
in interface Component
public void setGUID(String guid)
Component
setGUID
in interface Component
guid
- the new GUIDpublic Object getSourceObject(RequestContext context)
Component
getSourceObject
in interface Component
context
- request context
public ComponentType getComponentType(RequestContext context)
Component
getComponentType
in interface Component
context
- the context
protected void regenerateId()
public void setId(String id)
AbstractModelObject
setId
in class AbstractModelObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |