public class DocumentContentType
extends java.lang.Object
Constructor and Description |
---|
DocumentContentType()
Constructor.
|
DocumentContentType(java.lang.String extension,
java.lang.String partName,
java.lang.String contentType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getContentType()
Get Part value.
|
java.lang.String |
getExtension()
Get extension value.
|
java.util.Map<java.lang.String,java.lang.String> |
getOtherAttributeMap()
Get map of other attributes' value.
|
java.lang.String |
getPartName()
Get Part value.
|
int |
hashCode() |
void |
setContentType(java.lang.String contentType)
Set ContentType value.
For example: - ContentType="image/jpg" - ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml" |
void |
setExtension(java.lang.String extension)
Set extension value.
For example: - Extension="jpg" |
void |
setOtherAttributeMap(java.util.Map<java.lang.String,java.lang.String> otherAttributeMap)
Set map of other attributes' value.
|
void |
setPartName(java.lang.String partName)
Set Part value.
For example: - PartName="/word/document.xml" |
void |
updateOtherAttributeMap(java.lang.String key,
java.lang.String value)
Update key/value on map of other attributes' value.
|
public DocumentContentType()
public DocumentContentType(java.lang.String extension, java.lang.String partName, java.lang.String contentType)
extension
- extension attributepartName
- value of partName attributecontentType
- value of contentType attributepublic java.lang.String getExtension()
public void setExtension(java.lang.String extension)
extension
- extension valuepublic java.lang.String getPartName()
public void setPartName(java.lang.String partName)
partName
- part valuepublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType
- ContentType valuepublic java.util.Map<java.lang.String,java.lang.String> getOtherAttributeMap()
public void setOtherAttributeMap(java.util.Map<java.lang.String,java.lang.String> otherAttributeMap)
otherAttributeMap
- map of other attributes' valuepublic void updateOtherAttributeMap(java.lang.String key, java.lang.String value)
key
- attribute name of content type filevalue
- attribute value of content type filepublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2010 - No Magic Asia