public void toSAX(ContentHandler handler) throws SAXException {
AttributesImpl atts = new AttributesImpl();
if (name != null && name.length() > 0) {
- atts.addAttribute(null, ATT_NAME, ATT_NAME, "CDATA", name);
+ atts.addAttribute("", ATT_NAME, ATT_NAME, "CDATA", name);
}
if (this.src != null) {
- atts.addAttribute(null, ATT_SRC, ATT_SRC, "CDATA", this.src.toASCIIString());
+ atts.addAttribute("", ATT_SRC, ATT_SRC, "CDATA", this.src.toASCIIString());
}
handler.startElement(CATEGORY, elementName, elementName, atts);
handler.endElement(CATEGORY, elementName, elementName);
public void toSAX(ContentHandler handler) throws SAXException {
AttributesImpl atts = new AttributesImpl();
if (name != null && name.length() > 0) {
- atts.addAttribute(null, ATT_NAME, ATT_NAME, "CDATA", name);
+ atts.addAttribute("", ATT_NAME, ATT_NAME, "CDATA", name);
}
handler.startElement(CATEGORY, elementName, elementName, atts);
handler.endElement(CATEGORY, elementName, elementName);
public void toSAX(ContentHandler handler) throws SAXException {
AttributesImpl atts = new AttributesImpl();
if (name != null && name.length() > 0) {
- atts.addAttribute(null, ATT_NAME, ATT_NAME, "CDATA", name);
+ atts.addAttribute("", ATT_NAME, ATT_NAME, "CDATA", name);
}
handler.startElement(CATEGORY, elementName, elementName, atts);
handler.endElement(CATEGORY, elementName, elementName);
public void toSAX(ContentHandler handler) throws SAXException {
AttributesImpl atts = new AttributesImpl();
if (name != null && name.length() > 0) {
- atts.addAttribute(null, ATT_NAME, ATT_NAME, "CDATA", name);
+ atts.addAttribute("", ATT_NAME, ATT_NAME, "CDATA", name);
}
if (value != null && value.length() > 0) {
- atts.addAttribute(null, ATT_VALUE, ATT_VALUE, "CDATA", value);
+ atts.addAttribute("", ATT_VALUE, ATT_VALUE, "CDATA", value);
}
if (resourceSrc != null && resourceSrc.length() > 0) {
- atts.addAttribute(null, ATT_RESOURCE_SRC, ATT_RESOURCE_SRC, "CDATA", resourceSrc);
+ atts.addAttribute("", ATT_RESOURCE_SRC, ATT_RESOURCE_SRC, "CDATA", resourceSrc);
}
handler.startElement(CATEGORY, elementName, elementName, atts);
public void toSAX(ContentHandler handler) throws SAXException {
AttributesImpl atts = new AttributesImpl();
if (name != null && name.length() > 0) {
- atts.addAttribute(null, ATT_NAME, ATT_NAME, "CDATA", name);
+ atts.addAttribute("", ATT_NAME, ATT_NAME, "CDATA", name);
}
if (value != null && value.length() > 0) {
- atts.addAttribute(null, ATT_VALUE, ATT_VALUE, "CDATA", value);
+ atts.addAttribute("", ATT_VALUE, ATT_VALUE, "CDATA", value);
}
if (this.placement != ExtensionPlacement.DEFAULT) {
- atts.addAttribute(null, ATT_PLACEMENT, ATT_PLACEMENT, "CDATA", placement.getXMLValue());
+ atts.addAttribute("", ATT_PLACEMENT, ATT_PLACEMENT, "CDATA", placement.getXMLValue());
}
if (encoding != TagLogicalElement.State.ENCODING_NONE) {
- atts.addAttribute(null, ATT_ENCODING, ATT_ENCODING, "CDATA", String.valueOf(encoding));
+ atts.addAttribute("", ATT_ENCODING, ATT_ENCODING, "CDATA", String.valueOf(encoding));
}
handler.startElement(CATEGORY, elementName, elementName, atts);
if (content != null && content.length() > 0) {
noteAction(destination.getAction());
AttributesImpl atts = new AttributesImpl();
- atts.addAttribute(null, "name", "name", XMLConstants.CDATA, destination.getName());
+ atts.addAttribute("", "name", "name", XMLConstants.CDATA, destination.getName());
try {
handler.startElement(DocumentNavigationExtensionConstants.NAMED_DESTINATION, atts);
serializeXMLizable(destination.getAction());
noteAction(bookmark.getAction());
AttributesImpl atts = new AttributesImpl();
- atts.addAttribute(null, "title", "title", XMLUtil.CDATA, bookmark.getTitle());
- atts.addAttribute(null, "starting-state", "starting-state",
+ atts.addAttribute("", "title", "title", XMLUtil.CDATA, bookmark.getTitle());
+ atts.addAttribute("", "starting-state", "starting-state",
XMLUtil.CDATA, bookmark.isShown() ? "show" : "hide");
handler.startElement(DocumentNavigationExtensionConstants.BOOKMARK, atts);
serializeXMLizable(bookmark.getAction());
noteAction(link.getAction());
AttributesImpl atts = new AttributesImpl();
- atts.addAttribute(null, "rect", "rect",
+ atts.addAttribute("", "rect", "rect",
XMLConstants.CDATA, IFUtil.toString(link.getTargetRect()));
if (getUserAgent().isAccessibilityEnabled()) {
addStructRefAttribute(atts,
AttributesImpl atts = new AttributesImpl();
if (this.isCompleteExceptTargetLocation()) {
final Point reportedTargetLocation = this.getTargetLocation();
- atts.addAttribute(null, "id", "id", XMLUtil.CDATA, getID());
- atts.addAttribute(null, "page-index", "page-index",
+ atts.addAttribute("", "id", "id", XMLUtil.CDATA, getID());
+ atts.addAttribute("", "page-index", "page-index",
XMLUtil.CDATA, Integer.toString(pageIndex));
- atts.addAttribute(null, "x", "x", XMLUtil.CDATA,
+ atts.addAttribute("", "x", "x", XMLUtil.CDATA,
Integer.toString(reportedTargetLocation.x));
- atts.addAttribute(null, "y", "y", XMLUtil.CDATA,
+ atts.addAttribute("", "y", "y", XMLUtil.CDATA,
Integer.toString(reportedTargetLocation.y));
} else {
- atts.addAttribute(null, "idref", "idref", XMLUtil.CDATA, getID());
+ atts.addAttribute("", "idref", "idref", XMLUtil.CDATA, getID());
}
handler.startElement(GOTO_XY.getNamespaceURI(),
GOTO_XY.getLocalName(), GOTO_XY.getQName(), atts);
public void toSAX(ContentHandler handler) throws SAXException {
AttributesImpl atts = new AttributesImpl();
if (hasID()) {
- atts.addAttribute(null, "id", "id", XMLUtil.CDATA, getID());
+ atts.addAttribute("", "id", "id", XMLUtil.CDATA, getID());
}
- atts.addAttribute(null, "uri", "uri", XMLUtil.CDATA, getURI());
+ atts.addAttribute("", "uri", "uri", XMLUtil.CDATA, getURI());
if (isNewWindow()) {
- atts.addAttribute(null, "show-destination", "show-destination", XMLUtil.CDATA, "new");
+ atts.addAttribute("", "show-destination", "show-destination", XMLUtil.CDATA, "new");
}
handler.startElement(GOTO_URI.getNamespaceURI(),
GOTO_URI.getLocalName(), GOTO_URI.getQName(), atts);
String idName = PDFDictionaryElement.ATT_ID;
String id = dictionary.getProperty(PDFDictionaryExtension.PROPERTY_ID);
if (id != null) {
- attributes.addAttribute(null, idName, idName, "ID", id);
+ attributes.addAttribute("", idName, idName, "ID", id);
}
}
if (type == PDFDictionaryType.Action) {
String actionTypeName = PDFActionElement.ATT_TYPE;
String actionType = dictionary.getProperty(PDFActionExtension.PROPERTY_TYPE);
if (actionType != null) {
- attributes.addAttribute(null, actionTypeName, actionTypeName, "CDATA", actionType);
+ attributes.addAttribute("", actionTypeName, actionTypeName, "CDATA", actionType);
}
} else if (type == PDFDictionaryType.Page) {
String pageNumbersName = PDFPageExtension.PROPERTY_PAGE_NUMBERS;
String pageNumbers = dictionary.getProperty(pageNumbersName);
if (pageNumbers != null) {
- attributes.addAttribute(null, pageNumbersName, pageNumbersName, "CDATA", pageNumbers);
+ attributes.addAttribute("", pageNumbersName, pageNumbersName, "CDATA", pageNumbers);
}
} else if (type == PDFDictionaryType.Dictionary) {
String keyName = PDFCollectionEntryElement.ATT_KEY;
String key = dictionary.getKey();
if (key != null) {
- attributes.addAttribute(null, keyName, keyName, "CDATA", key);
+ attributes.addAttribute("", keyName, keyName, "CDATA", key);
}
}
return attributes;
String keyName = PDFCollectionEntryExtension.PROPERTY_KEY;
String key = array.getKey();
if (key != null) {
- attributes.addAttribute(null, keyName, keyName, "CDATA", key);
+ attributes.addAttribute("", keyName, keyName, "CDATA", key);
}
return attributes;
}
String keyName = PDFCollectionEntryElement.ATT_KEY;
String key = entry.getKey();
if (key != null) {
- attributes.addAttribute(null, keyName, keyName, "CDATA", key);
+ attributes.addAttribute("", keyName, keyName, "CDATA", key);
}
if (entry instanceof PDFReferenceExtension) {
String refid = ((PDFReferenceExtension) entry).getReferenceId();
if (refid != null) {
String refidName = PDFReferenceElement.ATT_REFID;
- attributes.addAttribute(null, refidName, refidName, "IDREF", refid);
+ attributes.addAttribute("", refidName, refidName, "IDREF", refid);
}
}
return attributes;
public void toSAX(ContentHandler handler) throws SAXException {
AttributesImpl atts = new AttributesImpl();
if (filename != null && filename.length() > 0) {
- atts.addAttribute(null, ATT_NAME, ATT_NAME, "CDATA", filename);
+ atts.addAttribute("", ATT_NAME, ATT_NAME, "CDATA", filename);
}
if (src != null && src.length() > 0) {
- atts.addAttribute(null, ATT_SRC, ATT_SRC, "CDATA", src);
+ atts.addAttribute("", ATT_SRC, ATT_SRC, "CDATA", src);
}
if (desc != null && desc.length() > 0) {
- atts.addAttribute(null, ATT_DESC, ATT_DESC, "CDATA", desc);
+ atts.addAttribute("", ATT_DESC, ATT_DESC, "CDATA", desc);
}
String element = getElement();
handler.startElement(CATEGORY, element, element, atts);
public void toSAX(ContentHandler handler) throws SAXException {
AttributesImpl atts = new AttributesImpl();
if (name != null && name.length() > 0) {
- atts.addAttribute(null, ATT_NAME, ATT_NAME, "CDATA", name);
+ atts.addAttribute("", ATT_NAME, ATT_NAME, "CDATA", name);
}
String element = getElement();
handler.startElement(CATEGORY, element, element, atts);
public void toSAX(ContentHandler handler) throws SAXException {
AttributesImpl atts = new AttributesImpl();
if (name != null && name.length() > 0) {
- atts.addAttribute(null, ATT_NAME, ATT_NAME, "CDATA", name);
+ atts.addAttribute("", ATT_NAME, ATT_NAME, "CDATA", name);
}
String element = getElement();
handler.startElement(CATEGORY, element, element, atts);
continue;
}
atts.clear();
- atts.addAttribute(null, NAME, NAME, CDATA, familyName);
- atts.addAttribute(null, STRIPPED_NAME, STRIPPED_NAME, CDATA,
+ atts.addAttribute("", NAME, NAME, CDATA, familyName);
+ atts.addAttribute("", STRIPPED_NAME, STRIPPED_NAME, CDATA,
stripQuotes(familyName));
handler.startElement(FAMILY, atts);
for (Object container : containers) {
FontSpec cont = (FontSpec) container;
atts.clear();
- atts.addAttribute(null, KEY, KEY, CDATA, cont.getKey());
- atts.addAttribute(null, TYPE, TYPE, CDATA,
+ atts.addAttribute("", KEY, KEY, CDATA, cont.getKey());
+ atts.addAttribute("", TYPE, TYPE, CDATA,
cont.getFontMetrics().getFontType().getName());
handler.startElement(FONT, atts);
generateXMLForTriplets(handler, cont.getTriplets());
for (Object triplet1 : triplets) {
FontTriplet triplet = (FontTriplet) triplet1;
atts.clear();
- atts.addAttribute(null, NAME, NAME, CDATA, triplet.getName());
- atts.addAttribute(null, STYLE, STYLE, CDATA, triplet.getStyle());
- atts.addAttribute(null, WEIGHT, WEIGHT, CDATA,
+ atts.addAttribute("", NAME, NAME, CDATA, triplet.getName());
+ atts.addAttribute("", STYLE, STYLE, CDATA, triplet.getStyle());
+ atts.addAttribute("", WEIGHT, WEIGHT, CDATA,
Integer.toString(triplet.getWeight()));
handler.element(TRIPLET, atts);
}