public abstract class POIXMLRelation extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
_defaultName
The path component of a pack URI.
|
protected String |
_relation
The kind of connection between a source part and a target part in a package.
|
protected String |
_type
Describes the content stored in a part.
|
Constructor and Description |
---|
POIXMLRelation(String type,
String rel,
String defaultName)
Instantiates a POIXMLRelation.
|
POIXMLRelation(String type,
String rel,
String defaultName,
Class<? extends POIXMLDocumentPart> cls)
Instantiates a POIXMLRelation.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Return the content type.
|
String |
getDefaultFileName()
Return the default part name.
|
String |
getFileName(int index)
Returns the filename for the nth one of these,
e.g.
|
String |
getRelation()
Return the relationship, the kind of connection between a source part and a target part in a package.
|
Class<? extends POIXMLDocumentPart> |
getRelationClass()
Return type of the obejct used to construct instances of this relationship
|
protected String _type
protected String _relation
protected String _defaultName
public POIXMLRelation(String type, String rel, String defaultName, Class<? extends POIXMLDocumentPart> cls)
type
- content typerel
- relationshipdefaultName
- default item namecls
- defines what object is used to construct instances of this relationshippublic String getContentType()
public String getRelation()
public String getDefaultFileName()
public String getFileName(int index)
public Class<? extends POIXMLDocumentPart> getRelationClass()
Copyright © 2020. All rights reserved.