|
||||||||||
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. |
String |
getAbstractMLName()
|
Date |
getCdate()
|
static List<DataElement> |
getDataElementList(JcmsResource resource,
ClientSession session)
For a resource in dataset form, gives a list of corresponding DataElement object. |
static List<DataElement> |
getDataElementList(JcmsResource resource,
ClientSession session,
String dataSetTag)
For a resource in dataset form, gives a list of corresponding DataElement object. |
String |
getDataType()
Returns the jcms type of the data. |
org.jdom.Element |
getElement()
|
org.jdom.Element |
getField(String name)
|
String |
getFieldText(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. |
String |
getId()
Gives the id of the JCMS data represented by the wrapped element. |
String |
getMainLanguage()
Gives the main language of the JCMS data represented by the wrapped element. |
Date |
getMdate()
|
org.jdom.Element |
getMLField(org.jdom.Element field)
|
Date |
getPdate()
|
Relateds |
getRelateds()
Gives a representation of this DataElement related parameters. |
String |
getTitle()
|
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 String getId()
public String getUrl()
public String getMainLanguage()
public String getTitle()
public org.jdom.Element getAbstractField()
public String getAbstractMLName()
public org.jdom.Element getField(String name)
name
-
public String getFieldText(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 Date getPdate()
public Date getCdate()
public Date getMdate()
public org.jdom.Element getElement()
public Relateds getRelateds()
public static List<DataElement> getDataElementList(JcmsResource resource, ClientSession session)
resource
- session
-
public static List<DataElement> getDataElementList(JcmsResource resource, ClientSession session, String dataSetTag)
resource
- session
- dataSetTag
- specific enclosing tag name
public static DataElement getFirstDataElement(JcmsResource resource, ClientSession session)
resource
- session
-
public String getDataType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |