com.ibm.jrom
Interface JROMValue

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
JROMBase64BinaryValue, JROMBooleanValue, JROMByteValue, JROMComplexValue, JROMDateValue, JROMDecimalValue, JROMDoubleValue, JROMDurationValue, JROMFloatValue, JROMIntegerValue, JROMLongValue, JROMQNameValue, JROMShortValue, JROMStringValue, JROMTimeValue

public interface JROMValue
extends java.io.Serializable

A JROMValue is the base for all JROM types. All simple types and complex types of JROM extend this type.


Method Summary
 JROMType getJROMType()
          Deprecated. Gets the type of the JROM so you *can check against what it is without having to do *"instanceof".
 java.lang.String getNameLocalPart()
          Deprecated. returns the local name of a JROMValue.
 java.lang.String getNameNamespace()
          Deprecated. Returns the namespace uri of the jrom, or null if none was specified.
 JROMComplexValue getParent()
          Deprecated. Returns the parent of the JROM.
 boolean isNameLocalPartEquals(JROMValue jval)
          Deprecated. Checks whether the name local part of the incoming jval and that of this instance are equal.
 boolean isNameLocalPartEquals(java.lang.String lp)
          Deprecated. Checks whether the name local part is equal to this string
 boolean isNameNamespaceEquals(JROMValue jval)
          Deprecated. Checks whether the namespace of the incoming jval and that of this instance are equal.
 boolean isNameNamespaceEquals(java.lang.String ns)
          Deprecated. Checks whether the namespace is equal to this string
 void setNameLocalPart(java.lang.String localName)
          Deprecated. see getNameLocalPart
 void setNameNamespace(java.lang.String nameNamespace)
          Deprecated. If your JROM has a namespace, this is where it would go.
 void setParent(JROMComplexValue jromval)
          Deprecated. sets the parent of a JROMValue.
 

Method Detail

getJROMType

public JROMType getJROMType()
Deprecated. 
Gets the type of the JROM so you *can check against what it is without having to do *"instanceof". Similar to DOM's use of getNodeType(). For example *if you have a JROMValue someJROM and you want to know if it's a *JROMStringValue: someJROM.getJROMType().equals(JROMType.JROM_STRING_VALUE)


getNameNamespace

public java.lang.String getNameNamespace()
Deprecated. 
Returns the namespace uri of the jrom, or null if none was specified.


setNameNamespace

public void setNameNamespace(java.lang.String nameNamespace)
Deprecated. 
If your JROM has a namespace, this is where it would go. This must be the full namespace and not the prefix. When going from XML->JROM, the serializer resolves any prefixes to put the actual namespace here.


getNameLocalPart

public java.lang.String getNameLocalPart()
Deprecated. 
returns the local name of a JROMValue. If you don't care about namepaces, this is the name you're after.


setNameLocalPart

public void setNameLocalPart(java.lang.String localName)
Deprecated. 
see getNameLocalPart


isNameNamespaceEquals

public boolean isNameNamespaceEquals(java.lang.String ns)
Deprecated. 
Checks whether the namespace is equal to this string


isNameNamespaceEquals

public boolean isNameNamespaceEquals(JROMValue jval)
Deprecated. 
Checks whether the namespace of the incoming jval and that of this instance are equal.


isNameLocalPartEquals

public boolean isNameLocalPartEquals(java.lang.String lp)
Deprecated. 
Checks whether the name local part is equal to this string


isNameLocalPartEquals

public boolean isNameLocalPartEquals(JROMValue jval)
Deprecated. 
Checks whether the name local part of the incoming jval and that of this instance are equal.


getParent

public JROMComplexValue getParent()
Deprecated. 
Returns the parent of the JROM. Useful for tree manipulation.


setParent

public void setParent(JROMComplexValue jromval)
Deprecated. 
sets the parent of a JROMValue. When a child is added to a JROMComplexValue, this method gets called to set its parent. see note on getParent above.



Copyright © 2001, 2003 IBM. All Rights Reserved.