blob: a0c9ec31d67cbeedd739f5e51c98f640de2efc64 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 IBM Corporation and Others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Tatsuya ISHIHARA - initial API and implementation
*******************************************************************************/
package org.eclipse.actf.model.dom.odf.svg.impl;
import org.eclipse.actf.model.dom.odf.base.ODFDocument;
import org.eclipse.actf.model.dom.odf.base.impl.ODFElementImpl;
import org.eclipse.actf.model.dom.odf.content.IEditListener;
import org.eclipse.actf.model.dom.odf.content.IEditable;
import org.eclipse.actf.model.dom.odf.svg.TitleElement;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;
class TitleElementImpl extends ODFElementImpl implements TitleElement {
private static final long serialVersionUID = -8770608864411728680L;
protected TitleElementImpl(ODFDocument odfDoc, Element element) {
super(odfDoc, element);
}
public Object getValue() {
NodeList children = getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
Node child = children.item(i);
if (child instanceof Text) {
return ((Text) child).getData();
}
}
return null;
}
public void setValue(Object data) {
// TODO Auto-generated method stub
}
public void remove() {
// TODO Auto-generated method stub
}
public void insert(IEditable data) {
// TODO Auto-generated method stub
}
public void addEditListener(IEditListener observer, String topic) {
// TODO Auto-generated method stub
}
public void removeEditListener(IEditListener observer, String topic) {
// TODO Auto-generated method stub
}
}