org.gvsig.metadata.lib.ioexchanger.iso19139.parser.model
Class AbstractXMLNode

java.lang.Object
  extended by org.gvsig.metadata.lib.ioexchanger.iso19139.parser.model.AbstractObjectValueType
      extended by org.gvsig.metadata.lib.ioexchanger.iso19139.parser.model.AbstractXMLNode
All Implemented Interfaces:
ValueType, XmlNodeHandler
Direct Known Subclasses:
DefaultXmlNode

public abstract class AbstractXMLNode
extends AbstractObjectValueType
implements XmlNodeHandler


Constructor Summary
AbstractXMLNode(String name, int type)
           
 
Method Summary
 void add(String tagName, int type, Object value)
           
 XmlNodeHandler addNode(String tagName)
           
 ValueType get(String tagName)
           
 Object getValue()
          Gets the current value
 Object getValue(String name)
           
 Iterator iterator()
          Gets a list of values (empty if none).
 void setValue(Object value)
          Sets a given value
 String toString()
           
 
Methods inherited from class org.gvsig.metadata.lib.ioexchanger.iso19139.parser.model.AbstractObjectValueType
getId, getType, isNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gvsig.metadata.lib.ioexchanger.iso19139.parser.XmlNodeHandler
getCurrentNode
 
Methods inherited from interface org.gvsig.metadata.lib.ioexchanger.iso19139.parser.ValueType
getId, getType
 

Constructor Detail

AbstractXMLNode

public AbstractXMLNode(String name,
                       int type)
Method Detail

getValue

public Object getValue(String name)

iterator

public Iterator iterator()
Description copied from interface: ValueType
Gets a list of values (empty if none).

Specified by:
iterator in interface ValueType
Returns:
the current list of values

add

public void add(String tagName,
                int type,
                Object value)
Specified by:
add in interface XmlNodeHandler

toString

public String toString()
Overrides:
toString in class AbstractObjectValueType

get

public ValueType get(String tagName)
Specified by:
get in interface XmlNodeHandler

getValue

public Object getValue()
Description copied from interface: ValueType
Gets the current value

Specified by:
getValue in interface ValueType
Returns:
the current value

setValue

public void setValue(Object value)
Description copied from interface: ValueType
Sets a given value

Specified by:
setValue in interface ValueType
Parameters:
value - the current value

addNode

public XmlNodeHandler addNode(String tagName)
Specified by:
addNode in interface XmlNodeHandler


Copyright © 2004-2013 gvSIG. All Rights Reserved.