|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeManager
Define the interface for attribute's specific behavior
Method Summary | |
---|---|
boolean |
canBeUsedAsThumbnail()
Tells if the attrubute can be used as Thumbnail (image) |
java.lang.String |
getAttributeTypeCode()
Return the attribute Type code |
java.lang.String |
getAttributeXmlValue(Document document,
DocumentAttribute attribute)
Get the XML data corresponding to the attribute to build the docuemnt XML content |
java.lang.String |
getCreateFormHtml(DocumentAttribute attribute,
java.util.Locale locale,
java.lang.String strBaseUrl)
Gets the part of an HTML form to enter attribute data |
java.lang.String |
getCreateParametersFormHtml(java.util.Locale locale)
Gets the part of an HTML form to enter parameters data |
java.util.List<AttributeTypeParameter> |
getExtraParameters(java.util.Locale locale)
Gets extra parameters for the attribute |
java.util.Collection |
getExtraParametersValues(java.util.Locale locale,
int nAttributeId)
Gets extra parameters values for the attribute |
java.lang.String |
getModifyFormHtml(DocumentAttribute attribute,
Document document,
java.util.Locale locale,
java.lang.String strBaseUrl)
Gets the part of an HTML form to modify attribute data |
java.lang.String |
getModifyParametersFormHtml(java.util.Locale locale,
int nAttributeId)
Gets the part of an HTML form to modify parameters data |
void |
setAttributeTypeCode(java.lang.String strCode)
Define the attribute Type code |
java.lang.String |
validateValue(int nAttributeId,
java.lang.String strValue,
java.util.Locale locale)
Validate the value for the attribute |
java.lang.String |
validateValueParameters(java.util.List<AttributeTypeParameter> listParameters,
java.util.Locale locale)
Validate the value for the parameters |
Method Detail |
---|
void setAttributeTypeCode(java.lang.String strCode)
strCode
- The Attribute Type Codejava.lang.String getAttributeTypeCode()
java.lang.String getCreateFormHtml(DocumentAttribute attribute, java.util.Locale locale, java.lang.String strBaseUrl)
attribute
- The attributelocale
- The current LocalestrBaseUrl
- the base url
java.lang.String getModifyFormHtml(DocumentAttribute attribute, Document document, java.util.Locale locale, java.lang.String strBaseUrl)
attribute
- The attributedocument
- The attribute documentlocale
- The current LocalestrBaseUrl
- The base url
java.lang.String getCreateParametersFormHtml(java.util.Locale locale)
locale
- The current Locale
java.lang.String getModifyParametersFormHtml(java.util.Locale locale, int nAttributeId)
locale
- The current LocalenAttributeId
- Attribute Id
java.util.List<AttributeTypeParameter> getExtraParameters(java.util.Locale locale)
locale
- The current Locale
java.util.Collection getExtraParametersValues(java.util.Locale locale, int nAttributeId)
locale
- The current LocalenAttributeId
-
java.lang.String validateValue(int nAttributeId, java.lang.String strValue, java.util.Locale locale)
nAttributeId
- The attribute identifierstrValue
- The value to checklocale
- The current Locale
java.lang.String validateValueParameters(java.util.List<AttributeTypeParameter> listParameters, java.util.Locale locale)
listParameters
- The list of parameters to checklocale
- The locale
java.lang.String getAttributeXmlValue(Document document, DocumentAttribute attribute)
document
- The documentattribute
- The attribute
boolean canBeUsedAsThumbnail()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |