Class JingleFileTransferChild
- java.lang.Object
-
- org.jivesoftware.smackx.jingle_filetransfer.element.JingleFileTransferChild
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,XmlLangElement
,JingleContentDescriptionChildElement
public class JingleFileTransferChild extends Object implements JingleContentDescriptionChildElement
Content of type File.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JingleFileTransferChild.Builder
-
Constructor Summary
Constructors Constructor Description JingleFileTransferChild(Date date, String desc, HashElement hash, String mediaType, String name, int size, Range range)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JingleFileTransferChild.Builder
getBuilder()
Date
getDate()
String
getDescription()
String
getElementName()
Returns the root element name.HashElement
getHash()
String
getMediaType()
String
getName()
String
getNamespace()
Returns the root element XML namespace.Range
getRange()
int
getSize()
XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
ELEM_DATE
public static final String ELEM_DATE
- See Also:
- Constant Field Values
-
ELEM_DESC
public static final String ELEM_DESC
- See Also:
- Constant Field Values
-
ELEM_MEDIA_TYPE
public static final String ELEM_MEDIA_TYPE
- See Also:
- Constant Field Values
-
ELEM_NAME
public static final String ELEM_NAME
- See Also:
- Constant Field Values
-
ELEM_SIZE
public static final String ELEM_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JingleFileTransferChild
public JingleFileTransferChild(Date date, String desc, HashElement hash, String mediaType, String name, int size, Range range)
-
-
Method Detail
-
getDescription
public String getDescription()
-
getHash
public HashElement getHash()
-
getMediaType
public String getMediaType()
-
getSize
public int getSize()
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getBuilder
public static JingleFileTransferChild.Builder getBuilder()
-
-