org.openspml.v2.msg
Class BasicOpenContentAttr

java.lang.Object
  extended byorg.openspml.v2.msg.BasicOpenContentAttr
All Implemented Interfaces:
OpenContentAttr

public class BasicOpenContentAttr
extends java.lang.Object
implements OpenContentAttr

SPML 2.0 is an open content model. The content carried by the various objects in our toolkit, can be XML of any type, and implementors can use whatever extra attributes and elements that they like.

This class, and the OpenContentElement, are meant to represent the notion of open content.

This is a class used to represent XMLAttributes (name, type, and value)

Author:
kent.spaulding@sun.com

Date: Feb 1, 2006


Constructor Summary
BasicOpenContentAttr(java.lang.String name, java.lang.String value)
          We want to ensure that the value is 'simple' - that is, representable as a String.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean getBooleanValue()
           
 java.lang.String getName()
           
 java.lang.String getValue()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicOpenContentAttr

public BasicOpenContentAttr(java.lang.String name,
                            java.lang.String value)
We want to ensure that the value is 'simple' - that is, representable as a String. It could be a boolean, int, etc; but not a complexType (so not any POJO).

Parameters:
name -
value -
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface OpenContentAttr

getValue

public java.lang.String getValue()
Specified by:
getValue in interface OpenContentAttr

getBooleanValue

public boolean getBooleanValue()
Specified by:
getBooleanValue in interface OpenContentAttr

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()


Copyright © Sun Microsystems, Inc. All Rights Reserved.