|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.openxml4j.opc.PackagePartName
public final class PackagePartName
An immutable Open Packaging Convention compliant part name.
Method Summary | |
---|---|
static int |
compare(PackagePartName obj1,
PackagePartName obj2)
A natural sort order for package part names, consistent with the requirements of java.util.Comparator , but simply implemented
as a static method. |
static int |
compare(java.lang.String str1,
java.lang.String str2)
A natural sort order for strings, consistent with the requirements of java.util.Comparator , but simply implemented
as a static method. |
int |
compareTo(PackagePartName other)
Compare two part names following the rule M1.12 : Part name equivalence is determined by comparing part names as case-insensitive ASCII strings. |
boolean |
equals(java.lang.Object other)
Part name equivalence is determined by comparing part names as case-insensitive ASCII strings. |
java.lang.String |
getExtension()
Retrieves the extension of the part name if any. |
java.lang.String |
getName()
Get this part name. |
java.net.URI |
getURI()
Part name property getter. |
int |
hashCode()
|
boolean |
isRelationshipPartURI()
Know if this part name is a relationship part name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean isRelationshipPartURI()
true
if this part name respect the relationship
part naming convention else false
.public int compareTo(PackagePartName other)
compareTo
in interface java.lang.Comparable<PackagePartName>
public java.lang.String getExtension()
public java.lang.String getName()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.net.URI getURI()
public static int compare(PackagePartName obj1, PackagePartName obj2)
java.util.Comparator
, but simply implemented
as a static method.
For example, this sorts "file10.png" after "file2.png" (comparing the numerical portion), but sorts "File10.png" before "file2.png" (lexigraphical sort)
When comparing part names, the rule M1.12 is followed: Part name equivalence is determined by comparing part names as case-insensitive ASCII strings. Packages shall not contain equivalent part names and package implementers shall neither create nor recognize packages with equivalent part names. [M1.12]
public static int compare(java.lang.String str1, java.lang.String str2)
java.util.Comparator
, but simply implemented
as a static method.
For example, this sorts "file10.png" after "file2.png" (comparing the numerical portion), but sorts "File10.png" before "file2.png" (lexigraphical sort)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |