this.isRelationship = isRelationshipPartURI(this.partNameURI);
/** * Constructor. Makes a ValidPartName object from a java.net.URI * * @param uri * The URI to validate and to transform into ValidPartName. * @param checkConformance * Flag to specify if the contructor have to validate the OPC * conformance. Must be always <code>true</code> except for * special URI like '/' which is needed for internal use by * OpenXML4J but is not valid. * @throws InvalidFormatException * Throw if the specified part name is not conform to Open * Packaging Convention specifications. * @see java.net.URI */ public PartName(URI uri, boolean checkConformance) throws InvalidFormatException { if (checkConformance) { throwExceptionIfInvalidPartUri(uri); } else { if (!URIHelper.PACKAGE_ROOT_URI.equals(uri)) { throw new Docx4JRuntimeException( "OCP conformance must be check for ALL part name except special cases : ['/']"); } } this.partNameURI = uri; this.isRelationship = isRelationshipPartURI(this.partNameURI); //log.debug( getName() + " part name created."); }
/** * Constructor. Makes a ValidPartName object from a java.net.URI * * @param uri * The URI to validate and to transform into ValidPartName. * @param checkConformance * Flag to specify if the contructor have to validate the OPC * conformance. Must be always <code>true</code> except for * special URI like '/' which is needed for internal use by * OpenXML4J but is not valid. * @throws InvalidFormatException * Throw if the specified part name is not conform to Open * Packaging Convention specifications. * @see java.net.URI */ public PartName(URI uri, boolean checkConformance) throws InvalidFormatException { if (checkConformance) { throwExceptionIfInvalidPartUri(uri); } else { if (!URIHelper.PACKAGE_ROOT_URI.equals(uri)) { throw new Docx4JRuntimeException( "OCP conformance must be check for ALL part name except special cases : ['/']"); } } this.partNameURI = uri; this.isRelationship = isRelationshipPartURI(this.partNameURI); //log.debug( getName() + " part name created."); }
this.isRelationship = isRelationshipPartURI(this.partNameURI);