All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.poshi.core.elements.ProsePoshiElement Maven / Gradle / Ivy

There is a newer version: 1.0.1411
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.poshi.core.elements;

import com.liferay.poshi.core.script.PoshiScriptParserException;

import java.util.List;

import org.dom4j.Attribute;
import org.dom4j.Element;
import org.dom4j.Node;

/**
 * @author Kenji Heigel
 */
public class ProsePoshiElement extends PoshiElement {

	@Override
	public PoshiElement clone(Element element) {
		if (isElementType(_ELEMENT_NAME, element)) {
			return new ProsePoshiElement(element);
		}

		return null;
	}

	@Override
	public PoshiElement clone(
			PoshiElement parentPoshiElement, String poshiScript)
		throws PoshiScriptParserException {

		return null;
	}

	@Override
	public void parsePoshiScript(String poshiScript) {
	}

	@Override
	public String toPoshiScript() {
		return null;
	}

	protected ProsePoshiElement() {
		this(_ELEMENT_NAME);
	}

	protected ProsePoshiElement(Element element) {
		this(_ELEMENT_NAME, element);
	}

	protected ProsePoshiElement(List attributes, List nodes) {
		this(_ELEMENT_NAME, attributes, nodes);
	}

	protected ProsePoshiElement(
			PoshiElement parentPoshiElement, String poshiScript)
		throws PoshiScriptParserException {

		this(_ELEMENT_NAME, parentPoshiElement, poshiScript);
	}

	protected ProsePoshiElement(String name) {
		super(name);
	}

	protected ProsePoshiElement(String name, Element element) {
		super(name, element);
	}

	protected ProsePoshiElement(
		String elementName, List attributes, List nodes) {

		super(elementName, attributes, nodes);
	}

	protected ProsePoshiElement(
			String name, PoshiElement parentPoshiElement, String poshiScript)
		throws PoshiScriptParserException {

		super(name, parentPoshiElement, poshiScript);
	}

	@Override
	protected String getBlockName() {
		return null;
	}

	private static final String _ELEMENT_NAME = "prose";

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy