Package org.opencms.acacia.client.export
Class CmsEntityWrapper
- java.lang.Object
-
- org.opencms.acacia.client.export.CmsEntityWrapper
-
- All Implemented Interfaces:
org.timepedia.exporter.client.Exportable
public class CmsEntityWrapper extends java.lang.Object implements org.timepedia.exporter.client.Exportable
Exportable wrapper for entity instances.
-
-
Constructor Summary
Constructors Constructor Description CmsEntityWrapper()
Default constructor.CmsEntityWrapper(org.opencms.acacia.shared.CmsEntity entity)
Wrapper constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttributeValueEntity(java.lang.String attributeName, CmsEntityWrapper value)
Wrapper method.void
addAttributeValueString(java.lang.String attributeName, java.lang.String value)
Wrapper method.CmsEntityAttributeWrapper
getAttribute(java.lang.String attributeName)
Wrapper method.CmsEntityAttributeWrapper[]
getAttributes()
Wrapper method.org.opencms.acacia.shared.CmsEntity
getEntity()
Gets the wrapped entity.java.lang.String
getId()
Wrapper method.java.lang.String
getTypeName()
Wrapper method.boolean
hasAttribute(java.lang.String attributeName)
Wrapper method.void
insertAttributeValueEntity(java.lang.String attributeName, CmsEntityWrapper value, int index)
Wrapper method.void
insertAttributeValueString(java.lang.String attributeName, java.lang.String value, int index)
Wrapper method.void
removeAttribute(java.lang.String attributeName)
Wrapper method.void
removeAttributeSilent(java.lang.String attributeName)
Wrapper method.void
removeAttributeValue(java.lang.String attributeName, int index)
Wrapper method.void
setAttributeValueEntity(java.lang.String attributeName, CmsEntityWrapper value)
Wrapper method.void
setAttributeValueString(java.lang.String attributeName, java.lang.String value, int index)
public void setAttributeValueEntity(String attributeName, CmsEntityWrapper value, int index) { m_entity.setAttributeValue(attributeName, value.getEntity(), index); } public void setAttributeValueString(String attributeName, String value) { m_entity.setAttributeValue(attributeName, value); } /** Wrapper method.void
setEntity(org.opencms.acacia.shared.CmsEntity entity)
Sets the wrapped entity.java.lang.String
toJSON()
Wrapper method.
-
-
-
Constructor Detail
-
CmsEntityWrapper
public CmsEntityWrapper()
Default constructor.
-
CmsEntityWrapper
public CmsEntityWrapper(org.opencms.acacia.shared.CmsEntity entity)
Wrapper constructor.- Parameters:
entity
- the entity to be wrapped
-
-
Method Detail
-
addAttributeValueEntity
public void addAttributeValueEntity(java.lang.String attributeName, CmsEntityWrapper value)
Wrapper method.- Parameters:
attributeName
- argument for the wrapped methodvalue
- argument for the wrapped method
-
addAttributeValueString
public void addAttributeValueString(java.lang.String attributeName, java.lang.String value)
Wrapper method.- Parameters:
attributeName
- argument for the wrapped methodvalue
- argument for the wrapped method
-
getAttribute
public CmsEntityAttributeWrapper getAttribute(java.lang.String attributeName)
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped method- Returns:
- the result of the wrapped method
-
getAttributes
public CmsEntityAttributeWrapper[] getAttributes()
Wrapper method.- Returns:
- the result of the wrapped method
-
getEntity
public org.opencms.acacia.shared.CmsEntity getEntity()
Gets the wrapped entity.- Returns:
- the wrapped entity
-
getId
public java.lang.String getId()
Wrapper method.- Returns:
- the result of the wrapped method
-
getTypeName
public java.lang.String getTypeName()
Wrapper method.- Returns:
- the result of the wrapped method
-
hasAttribute
public boolean hasAttribute(java.lang.String attributeName)
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped method- Returns:
- the result of the wrapped method
-
insertAttributeValueEntity
public void insertAttributeValueEntity(java.lang.String attributeName, CmsEntityWrapper value, int index)
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped methodvalue
- parameter for the wrapped methodindex
- parameter for the wrapped method
-
insertAttributeValueString
public void insertAttributeValueString(java.lang.String attributeName, java.lang.String value, int index)
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped methodvalue
- parameter for the wrapped methodindex
- parameter for the wrapped method
-
removeAttribute
public void removeAttribute(java.lang.String attributeName)
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped method
-
removeAttributeSilent
public void removeAttributeSilent(java.lang.String attributeName)
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped method
-
removeAttributeValue
public void removeAttributeValue(java.lang.String attributeName, int index)
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped methodindex
- parameter for the wrapped method
-
setAttributeValueEntity
public void setAttributeValueEntity(java.lang.String attributeName, CmsEntityWrapper value)
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped methodvalue
- parameter for the wrapped method
-
setAttributeValueString
public void setAttributeValueString(java.lang.String attributeName, java.lang.String value, int index)
public void setAttributeValueEntity(String attributeName, CmsEntityWrapper value, int index) { m_entity.setAttributeValue(attributeName, value.getEntity(), index); } public void setAttributeValueString(String attributeName, String value) { m_entity.setAttributeValue(attributeName, value); } /** Wrapper method.- Parameters:
attributeName
- parameter for the wrapped methodvalue
- parameter for the wrapped methodindex
- parameter for the wrapped method
-
setEntity
public void setEntity(org.opencms.acacia.shared.CmsEntity entity)
Sets the wrapped entity.- Parameters:
entity
- the entity to wrap
-
toJSON
public java.lang.String toJSON()
Wrapper method.- Returns:
- the result of the wrapped method
-
-