Class ContentType
- java.lang.Object
-
- com.iknowbase.api.contentservices.v1.model.ContentType
-
- All Implemented Interfaces:
Serializable
public class ContentType extends Object implements Serializable
Java class for contentType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="contentType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice> <element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="file"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="filename" type="{http://www.w3.org/2001/XMLSchema}string"/> <choice minOccurs="0"> <element name="textContent" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="binaryContent" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> </choice> </sequence> </restriction> </complexContent> </complexType> </element> </choice> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContentType.File
Java class for anonymous complex type.
-
Constructor Summary
Constructors Constructor Description ContentType()
Default no-arg constructorContentType(String text, String url, ContentType.File file)
Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentType.File
getFile()
Gets the value of the file property.String
getText()
Gets the value of the text property.String
getUrl()
Gets the value of the url property.void
setFile(ContentType.File value)
Sets the value of the file property.void
setText(String value)
Sets the value of the text property.void
setUrl(String value)
Sets the value of the url property.ContentType
withFile(ContentType.File value)
ContentType
withText(String value)
ContentType
withUrl(String value)
-
-
-
Field Detail
-
text
protected String text
-
url
protected String url
-
file
protected ContentType.File file
-
-
Constructor Detail
-
ContentType
public ContentType()
Default no-arg constructor
-
ContentType
public ContentType(String text, String url, ContentType.File file)
Fully-initialising value constructor
-
-
Method Detail
-
getText
public String getText()
Gets the value of the text property.- Returns:
- possible object is
String
-
setText
public void setText(String value)
Sets the value of the text property.- Parameters:
value
- allowed object isString
-
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
-
getFile
public ContentType.File getFile()
Gets the value of the file property.- Returns:
- possible object is
ContentType.File
-
setFile
public void setFile(ContentType.File value)
Sets the value of the file property.- Parameters:
value
- allowed object isContentType.File
-
withText
public ContentType withText(String value)
-
withUrl
public ContentType withUrl(String value)
-
withFile
public ContentType withFile(ContentType.File value)
-
-