假设部件类型是“ http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink ”,那么我将如何得到它。代码片段:
RelationshipsPart relationshipPart=mainDocPart.getRelationshipsPart();
Relationships q=relationshipPart.getJaxbElement();
List<Relationship>list=q.getRelationship();
for(Relationship rels : list){
if(rels.getType().equals("http://schemas.openxmlformats.org
/officeDocument/2006/relationships/hyperlink")){
//now I want to extract it here from it's type and modify it
}
}