private void releaseStyleSheets() { if (!isShared()) { Document doc = getDocument(); if (doc instanceof DocumentStyleImpl) { ((DocumentStyleImpl) doc).releaseStyleSheets(); } } }
/** */ public int getAttrNameCase() { if (isXMLType()) return LOWER_CASE; // XHTML return this.fFactory.getAttrNameCase(); }
/** */ public int getTagNameCase() { if (isXMLType()) return LOWER_CASE; // XHTML return this.fFactory.getTagNameCase(); }
/** * createElement method * @return org.w3c.dom.Element * @param tagName java.lang.String */ public Element createElement(String tagName) throws DOMException { checkTagNameValidity(tagName); ElementStyleImpl element = new ElementStyleImpl(); element.setOwnerDocument(this); element.setTagName(tagName); return element; }
/** * createDocument method * @return org.w3c.dom.Document */ protected Document internalCreateDocument() { DocumentStyleImpl document = new DocumentStyleImpl(); document.setModel(this); return document; }
protected void setOwnerDocument(Document ownerDocument) { super.setOwnerDocument(ownerDocument); }
/** * @see setTagName(String) make this method package visible */ @Override public void setTagName(String tagName) { super.setTagName(tagName); }
protected void setModel(IDOMModel model) { super.setModel(model); } }
private boolean isCommentText(String regionType) { boolean result = false; result = isDOMComment(regionType) || isNestedContentComment(regionType); return result; }
/** * declaratoin: "data" for XML declaration, such as "version=\"1.0\"" * publicId: publicId for DOCTYPE declaration */ public void convert(IDOMModel model, String declaration, String publicId) { if (model == null) return; setDeclaration(model, declaration, publicId); cleanupModel(model); }
/** * cloneNode method * @return org.w3c.dom.Node * @param deep boolean */ public Node cloneNode(boolean deep) { DocumentStyleImpl cloned = new DocumentStyleImpl(this); if (deep) cloned.importChildNodes(this, true); return cloned; }
public Node cloneNode(boolean deep) { ElementImpl cloned = new ElementStyleImpl(this); if (deep) cloneChildNodes(cloned, deep); return cloned; }
/** */ public synchronized static HTMLModelParserAdapterFactory getInstance() { if (instance == null) instance = new HTMLModelParserAdapterFactory(); return instance; }
/** * Overriding copy method */ public INodeAdapterFactory copy() { return new HTMLDocumentTypeAdapterFactory(); } }
/** */ public synchronized static HTMLDocumentTypeRegistry getInstance() { if (instance == null) instance = new HTMLDocumentTypeRegistry(); return instance; } }
/** * Overriding copy method */ public INodeAdapterFactory copy() { return getInstance(); } }
/** */ protected HTMLDocumentTypeAdapter(IDOMDocument document, HTMLDocumentTypeAdapterFactory factory) { super(document); this.fFactory = factory; // initialize documentTypeChanged(); }
public IStructuredModel newModel() { DOMStyleModelImpl model = new DOMStyleModelImpl(); return model; }
/** * @see ElementStyleImpl#setOwnerDocument(Document) make this method package * visible */ @Override protected void setOwnerDocument(Document ownerDocument) { super.setOwnerDocument(ownerDocument); }
protected void setTagName(String tagName) { super.setTagName(tagName); } public Node cloneNode(boolean deep) {