Package com.adobe.dp.xml.util

Examples of com.adobe.dp.xml.util.SMapImpl


  public void setDir(String dir) {
    this.dir = dir;
  }

  SMapImpl getAttributes() {
    SMapImpl attrs = super.getAttributes();
    if (title != null)
      attrs.put(null, "title", title);
    if (dir != null)
      attrs.put(null, "dir", dir);
    return attrs;
  }
View Full Code Here


  public void setAltText(String alt) {
    this.alt = alt;
  }

  SMapImpl getAttributes() {
    SMapImpl attrs = super.getAttributes();
    attrs.put(null, "src", document.resource.makeReference(imageResource.getResourceName(), null));
    attrs.put(null, "alt", alt);
    return attrs;
  }
View Full Code Here

    this.colSpan = colSpan;
    this.align = align;
  }

  SMapImpl getAttributes() {
    SMapImpl attrs = super.getAttributes();
    if (colSpan > 1)
      attrs.put(null, "colspan", Integer.toString(colSpan));
    if (rowSpan > 1)
      attrs.put(null, "rowspan", Integer.toString(rowSpan));
    if (align != null)
      attrs.put(null, "align", align);
    return attrs;
  }
View Full Code Here


 
  public void  putSerializationAttribute(String ns, String name, Object value){
    if(serializationAttributes==null){
      serializationAttributes=new SMapImpl();
    }
    serializationAttributes.put(ns, name, value);
   
  }
View Full Code Here

      ser.newLine();
      Iterator s = styleResources();
      while (s.hasNext()) {
        ResourceRef sr = (ResourceRef) s.next();
        String href = resource.makeReference(sr.getResourceName(), null);
        SMapImpl attr = new SMapImpl();
        attr.put(null, "rel", "stylesheet");
        attr.put(null, "type", "text/css");
        attr.put(null, "href", href);
        ser.startElement(xhtmlns, "link", attr, false);
        ser.endElement(xhtmlns, "link");
        ser.newLine();
      }
      ser.endElement(xhtmlns, "head");
View Full Code Here

    href = null;
    this.xref = xref;
 
 
  SMapImpl getAttributes() {
    SMapImpl attrs = super.getAttributes();
    String href = this.href;
    if( xref != null )
      href = xref.makeReference(this.document.resource);
    if( href != null )
      attrs.put(null, "href", href);
    return attrs;
  }
View Full Code Here

    }
    return selfRef;
  }

  SMapImpl getAttributes() {
    SMapImpl attrs = new SMapImpl();
    if (className != null)
      attrs.put(null, "class", className);
    if (id != null)
      attrs.put(null, "id", id);
    if (style != null)
      attrs.put(null, "style", style);
    if (lang != null)
      attrs.put(OPSDocument.xmlns, "lang", lang);
    return attrs;
  }
View Full Code Here

  public void setImageResource(Resource imageResource) {
    this.imageResource = imageResource.getResourceRef();
  }

  SMapImpl getAttributes() {
    SMapImpl attrs = super.getAttributes();
    if (imageResource != null)
      attrs.put(OPSDocument.xlinkns, "href", document.resource.makeReference(imageResource.getResourceName(),
          null));
    return attrs;
  }
View Full Code Here

    addRandomHexDigit(sb, sr, 1, 0x3, 0x8);
    addRandomHexDigit(sb, sr, 3, 0xF, 0);
    sb.append('-');
    addRandomHexDigit(sb, sr, 12, 0xF, 0);
    String id = sb.toString();
    SMapImpl att=new SMapImpl();
    att.put(OPFResource.opfns, "scheme", "UUID");
    this.addDCMetadata("identifier", id,att);
    return id;
  }
View Full Code Here

    if (value == null)
      return;
    metadata.add(new SimpleMetadata(ns, name, value, attributes));
  }
  public void addPrimaryIdentifier(String value) {
    SMapImpl attr=new SMapImpl();
    attr.put(OPFResource.opfns, "scheme", "UUID");
    metadata.add(0, new SimpleMetadata(OPFResource.dcns, "identifier", value,attr));
  }
View Full Code Here

TOP

Related Classes of com.adobe.dp.xml.util.SMapImpl

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.