Package org.formulacompiler.spreadsheet.internal.excel.xlsx

Examples of org.formulacompiler.spreadsheet.internal.excel.xlsx.Relationship


  {
    writeStartElement( XMLConstants.PackageRelationships.RELATIONSHIPS );

    final int size = _relationships.size();
    for (int i = 0; i != size; i++) {
      final Relationship relationship = _relationships.get( i );
      writeStartElement( XMLConstants.PackageRelationships.RELATIONSHIP );
      writeAttribute( XMLConstants.PackageRelationships.ID, "rId" + String.valueOf( i + 1 ) );
      writeAttribute( XMLConstants.PackageRelationships.TYPE, relationship.getType() );
      writeAttribute( XMLConstants.PackageRelationships.TARGET, relationship.getTarget( this.root ) );
      writeEndElement( XMLConstants.PackageRelationships.RELATIONSHIP );
    }

    writeEndElement( XMLConstants.PackageRelationships.RELATIONSHIPS );
  }
View Full Code Here


    private final Relationship relationship;

    Metadata( String _path, String _contentType, String _relationshipNamespace, String _relationshipType )
    {
      this.contentPart = new Part( "/" + _path, _contentType );
      this.relationship = new Relationship( _relationshipNamespace + "/" + _relationshipType, _path );
    }
View Full Code Here

    StartElement se;
    while ((se = find( XMLConstants.RELATIONSHIP_PATH )) != null) {
      final String id = se.getAttributeByName( XMLConstants.PackageRelationships.ID ).getValue();
      final String type = se.getAttributeByName( XMLConstants.PackageRelationships.TYPE ).getValue();
      final String target = se.getAttributeByName( XMLConstants.PackageRelationships.TARGET ).getValue();
      this.relationships.put( id, new Relationship( type, target, _parent ) );
    }
  }
View Full Code Here

    return null;
  }

  public String findById( final String _id )
  {
    final Relationship relationship = this.relationships.get( _id );
    return relationship == null ? null : relationship.getTarget( null );
  }
View Full Code Here

TOP

Related Classes of org.formulacompiler.spreadsheet.internal.excel.xlsx.Relationship

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.