|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.rest.client.DataElement
public class DataElement
JCMS OpenAPI provides many times JCMS data in XML as exported with the JCMS import/export form. This class provides a usefull way to get the informations in the wrapped JCMS data XML element.
| Constructor Summary | |
|---|---|
DataElement(org.jdom.Element element,
ClientSession session)
|
|
| Method Summary | |
|---|---|
org.jdom.Element |
getAbstractField()
The JDOM element corresponding to the abstract of the JCMS data represented by the wrapped element. |
java.lang.String |
getAbstractMLName()
|
java.util.Date |
getCdate()
|
static java.util.List<DataElement> |
getDataElementList(JcmsResource resource,
ClientSession session)
For a resource in dataset form, gives a list of corresponding DataElement object. |
static java.util.List<DataElement> |
getDataElementList(JcmsResource resource,
ClientSession session,
java.lang.String dataSetTag)
For a resource in dataset form, gives a list of corresponding DataElement object. |
java.lang.String |
getDataType()
Returns the jcms type of the data. |
org.jdom.Element |
getElement()
|
org.jdom.Element |
getField(java.lang.String name)
|
java.lang.String |
getFieldText(java.lang.String name)
Return the text of the specified field. |
static DataElement |
getFirstDataElement(JcmsResource resource,
ClientSession session)
For a single data in a resource, gives the corresponding DataElement object. |
java.lang.String |
getId()
Gives the id of the JCMS data represented by the wrapped element. |
java.lang.String |
getMainLanguage()
Gives the main language of the JCMS data represented by the wrapped element. |
java.util.Date |
getMdate()
|
org.jdom.Element |
getMLField(org.jdom.Element field)
|
java.util.Date |
getPdate()
|
Relateds |
getRelateds()
Gives a representation of this DataElement related parameters. |
java.lang.String |
getTitle()
|
java.lang.String |
getUrl()
Gives the url of the JCMS data represented by the wrapped element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataElement(org.jdom.Element element,
ClientSession session)
| Method Detail |
|---|
public java.lang.String getId()
public java.lang.String getUrl()
public java.lang.String getMainLanguage()
public java.lang.String getTitle()
public org.jdom.Element getAbstractField()
public java.lang.String getAbstractMLName()
public org.jdom.Element getField(java.lang.String name)
name -
public java.lang.String getFieldText(java.lang.String name)
name - the name of the field to retrieve
public org.jdom.Element getMLField(org.jdom.Element field)
field - the element corresponding to a field in the main language of the data
public java.util.Date getPdate()
public java.util.Date getCdate()
public java.util.Date getMdate()
public org.jdom.Element getElement()
public Relateds getRelateds()
public static java.util.List<DataElement> getDataElementList(JcmsResource resource,
ClientSession session)
resource - session -
public static java.util.List<DataElement> getDataElementList(JcmsResource resource,
ClientSession session,
java.lang.String dataSetTag)
resource - session - dataSetTag - specific enclosing tag name
public static DataElement getFirstDataElement(JcmsResource resource,
ClientSession session)
resource - session -
public java.lang.String getDataType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||