blob: f81a891b542999bc7f6cb84b41479678f311db0f [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.DescElement;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;
class DescElementImpl extends ODFElementImpl implements DescElement {
private static final long serialVersionUID = -7102253537020078757L;
protected DescElementImpl(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
}
}