Class Content
- java.lang.Object
-
- com.iknowbase.api.contentservices.v2.model.Content
-
- All Implemented Interfaces:
Serializable
public class Content extends Object implements Serializable
Java class for content complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="content"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="filename" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="textContent" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="binaryContent" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/> <element name="xmlContent" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.activation.DataHandler
binaryContent
protected String
filename
protected String
textContent
protected String
url
protected Element
xmlContent
-
Constructor Summary
Constructors Constructor Description Content()
Default no-arg constructorContent(InputStream binaryData, String filename)
Content(String url, String filename, String textContent, javax.activation.DataHandler binaryContent, Element xmlContent)
Fully-initialising value constructorContent(javax.activation.DataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.activation.DataHandler
getBinaryContent()
Gets the value of the binaryContent property.String
getFilename()
Gets the value of the filename property.String
getTextContent()
Gets the value of the textContent property.String
getUrl()
Gets the value of the url property.Element
getXmlContent()
Gets the value of the xmlContent property.void
setBinaryContent(javax.activation.DataHandler value)
Sets the value of the binaryContent property.void
setFilename(String value)
Sets the value of the filename property.void
setTextContent(String value)
Sets the value of the textContent property.void
setUrl(String value)
Sets the value of the url property.void
setXmlContent(Element value)
Sets the value of the xmlContent property.Content
withBinaryContent(javax.activation.DataHandler value)
Content
withFilename(String value)
Content
withTextContent(String value)
Content
withUrl(String value)
Content
withXmlContent(Element value)
-
-
-
Constructor Detail
-
Content
public Content()
Default no-arg constructor
-
Content
public Content(String url, String filename, String textContent, javax.activation.DataHandler binaryContent, Element xmlContent)
Fully-initialising value constructor
-
Content
public Content(javax.activation.DataSource dataSource)
-
Content
public Content(InputStream binaryData, String filename)
-
-
Method Detail
-
getUrl
public String getUrl()
Gets the value of the url property.- Returns:
- possible object is
String
-
setUrl
public void setUrl(String value)
Sets the value of the url property.- Parameters:
value
- allowed object isString
-
getFilename
public String getFilename()
Gets the value of the filename property.- Returns:
- possible object is
String
-
setFilename
public void setFilename(String value)
Sets the value of the filename property.- Parameters:
value
- allowed object isString
-
getTextContent
public String getTextContent()
Gets the value of the textContent property.- Returns:
- possible object is
String
-
setTextContent
public void setTextContent(String value)
Sets the value of the textContent property.- Parameters:
value
- allowed object isString
-
getBinaryContent
public javax.activation.DataHandler getBinaryContent()
Gets the value of the binaryContent property.- Returns:
- possible object is
DataHandler
-
setBinaryContent
public void setBinaryContent(javax.activation.DataHandler value)
Sets the value of the binaryContent property.- Parameters:
value
- allowed object isDataHandler
-
getXmlContent
public Element getXmlContent()
Gets the value of the xmlContent property.- Returns:
- possible object is
Element
-
setXmlContent
public void setXmlContent(Element value)
Sets the value of the xmlContent property.- Parameters:
value
- allowed object isElement
-
withBinaryContent
public Content withBinaryContent(javax.activation.DataHandler value)
-
-