public class DataElement
extends java.lang.Object
Constructor and Description |
---|
DataElement(org.jdom.Element element,
ClientSession session) |
Modifier and Type | Method and Description |
---|---|
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.
|
public DataElement(org.jdom.Element element, ClientSession session)
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 retrievepublic org.jdom.Element getMLField(org.jdom.Element field)
field
- the element corresponding to a field in the main language of the datapublic 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 namepublic static DataElement getFirstDataElement(JcmsResource resource, ClientSession session)
resource
- session
- public java.lang.String getDataType()
Copyright © 2001-2021 Jalios SA. All Rights Reserved.