org.gvsig.metadata.lib.ioexchanger.iso19139.parser.io
Class XmlMetadataContextServices

java.lang.Object
  extended by org.gvsig.metadata.lib.ioexchanger.iso19139.parser.io.XmlMetadataContextServices
All Implemented Interfaces:
ValueType, XmlNodeHandler

public class XmlMetadataContextServices
extends Object
implements XmlNodeHandler


Constructor Summary
XmlMetadataContextServices()
           
 
Method Summary
 void add(String tagName, int type, Object value)
           
 XmlNodeHandler addNode(String tagName)
           
 ValueType get(String tagName)
           
 XmlNodeHandler getCurrentNode()
           
 String getId()
          Retrieves the node ID
 String getID()
           
 XmlNodeHandler getRootNode()
           
 int getType()
          Gets the intermediate ValueType
 Object getValue()
          Gets the current value
 boolean isNode()
           
 Iterator<Object> iterator()
          Gets a list of values (empty if none).
 void setCurrentNode(String parentNamespace, String parentTagName)
           
 void setValue(Object value)
          Sets a given value
 void setValue(String parentNamespace, String parentTagName, String curTagName, int type, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlMetadataContextServices

public XmlMetadataContextServices()
Method Detail

getID

public String getID()

getCurrentNode

public XmlNodeHandler getCurrentNode()
Specified by:
getCurrentNode in interface XmlNodeHandler

getRootNode

public XmlNodeHandler getRootNode()

setValue

public void setValue(String parentNamespace,
                     String parentTagName,
                     String curTagName,
                     int type,
                     Object value)

setCurrentNode

public void setCurrentNode(String parentNamespace,
                           String parentTagName)

toString

public String toString()
Overrides:
toString in class Object

getId

public String getId()
Description copied from interface: ValueType
Retrieves the node ID

Specified by:
getId in interface ValueType
Returns:
the node ID

getType

public int getType()
Description copied from interface: ValueType
Gets the intermediate ValueType

Specified by:
getType in interface ValueType
Returns:
the intermediate ValueType

getValue

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

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

isNode

public boolean isNode()

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

add

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

get

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

addNode

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

iterator

public Iterator<Object> 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


Copyright © 2004-2013 gvSIG. All Rights Reserved.