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