|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anwrt.anycontent.extensions.content.ContentMetadata
This class handle a metadata configuration.
| Field Summary | |
protected java.lang.Object |
_defaultValue
The default value |
protected TypedParameterValuesEnumerator |
_enumerator
If the value has to be choosen in an enumeration |
protected java.lang.String |
_group
The i18n key for the label of the group where to put the metadata for display purposes |
protected java.lang.String |
_id
The parameter id, unique in its content type |
protected java.lang.String |
_label
The i18n key for label |
protected boolean |
_mandatory
If the metadata is mandatory |
protected boolean |
_multiple
Determines wheter the metadata can have multiple values |
protected int |
_priority
Priority to sort the metadatas in the group for display purposes |
protected int |
_type
The type of meta data |
| Constructor Summary | |
ContentMetadata(Configuration configuration)
Create a metadata parameter |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
|
java.lang.Object |
getDefaultValue()
Get the typed default value. |
TypedParameterValuesEnumerator |
getEnumerator()
Get the enumerator. |
java.lang.String |
getGroup()
Get the group |
java.lang.String |
getId()
Get the id. |
java.lang.String |
getLabel()
Get the label. |
int |
getPriority()
Get the parameter priority for display in īts group |
int |
getType()
Get the type. |
java.lang.String |
getTypeAsString()
Get a textual name for the parameter's type |
boolean |
isMandatory()
Is the metadata mandatory |
boolean |
isMultiple()
Has the metadata multiple values |
void |
toSAX(org.xml.sax.ContentHandler ch,
java.util.Map objectModel,
SourceResolver resolver,
MetadataHandler metadataHandler,
Content content)
Send the metadata configuration as SAX events |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String _id
protected boolean _multiple
protected java.lang.String _label
protected int _type
protected java.lang.Object _defaultValue
protected java.lang.String _group
protected int _priority
protected boolean _mandatory
protected TypedParameterValuesEnumerator _enumerator
| Constructor Detail |
public ContentMetadata(Configuration configuration)
throws ConfigurationException
configuration - Configuration giving the parameter
ConfigurationException - If mandatory parameters are missing, or
default value are not matching type| Method Detail |
public java.lang.Object getDefaultValue()
public java.lang.String getLabel()
public java.lang.String getId()
public boolean isMultiple()
public boolean isMandatory()
public int getType()
public java.lang.String getTypeAsString()
public java.lang.String getGroup()
public int getPriority()
public TypedParameterValuesEnumerator getEnumerator()
public java.lang.String toString()
public void toSAX(org.xml.sax.ContentHandler ch,
java.util.Map objectModel,
SourceResolver resolver,
MetadataHandler metadataHandler,
Content content)
throws org.xml.sax.SAXException
ch - The content handlerobjectModel - The cocoon object model (for enumarators)resolver - the Cocoon SourceResolvermetadataHandler - The metadata handlercontent - The content considered for SAXing (therefore values will not be saxed)
org.xml.sax.SAXException - If an error occuredpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||