org.openspml.v2.msg.spmlref
Class ReferenceDefinition

java.lang.Object
  extended byorg.openspml.v2.msg.spml.Extensible
      extended byorg.openspml.v2.msg.spmlref.ExtensibleMarshallable
          extended byorg.openspml.v2.msg.spmlref.ReferenceDefinition
All Implemented Interfaces:
Marshallable, MarshallableElement, OpenContentContainer

public class ReferenceDefinition
extends org.openspml.v2.msg.spmlref.ExtensibleMarshallable

Author:
kent.spaulding@sun.com

Date: Feb 13, 2006


Constructor Summary
ReferenceDefinition()
           
ReferenceDefinition(SchemaEntityRef schemaEntity, SchemaEntityRef[] canReferTo, SchemaEntityRef[] referenceDataType, java.lang.String typeOfReference)
           
 
Method Summary
 void addCanReferTo(SchemaEntityRef canReferTo)
           
 void addReferenceDataType(SchemaEntityRef referenceDataType)
           
 void clearCanReferTo()
           
 void clearReferenceDataType()
           
 boolean equals(java.lang.Object o)
           
 SchemaEntityRef[] getCanReferTo()
           
 PrefixAndNamespaceTuple[] getNamespacesInfo()
          We need to know the namespace of the class to include.
 SchemaEntityRef[] getReferenceDataType()
           
 SchemaEntityRef getSchemaEntity()
           
 java.lang.String getTypeOfReference()
           
 int hashCode()
           
 boolean isValid()
          Is this ready to go or are there syntax errors, like missing required fields?
 boolean removeCanReferTo(SchemaEntityRef canReferTo)
           
 boolean removeReferenceDataType(SchemaEntityRef referenceDataType)
           
 void setSchemaEntity(SchemaEntityRef schemaEntity)
           
 void setTypeOfReference(java.lang.String typeOfReference)
           
 java.lang.String toXML(XMLMarshaller m)
          Visitor pattern - dispatch this type to the visitor (m) please.
 
Methods inherited from class org.openspml.v2.msg.spml.Extensible
addOpenContentAttr, addOpenContentAttr, addOpenContentElement, findOpenContentAttrValueByName, findOperationalAttrByName, findOperationalNVPByName, getOpenContentAttrs, getOpenContentElements, removeOpenContentAttr, removeOpenContentElement, setOpenContent, setOpenContentAttrs, setOpenContentElements
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceDefinition

public ReferenceDefinition()

ReferenceDefinition

public ReferenceDefinition(SchemaEntityRef schemaEntity,
                           SchemaEntityRef[] canReferTo,
                           SchemaEntityRef[] referenceDataType,
                           java.lang.String typeOfReference)
Method Detail

getSchemaEntity

public SchemaEntityRef getSchemaEntity()

setSchemaEntity

public void setSchemaEntity(SchemaEntityRef schemaEntity)

getCanReferTo

public SchemaEntityRef[] getCanReferTo()

addCanReferTo

public void addCanReferTo(SchemaEntityRef canReferTo)

removeCanReferTo

public boolean removeCanReferTo(SchemaEntityRef canReferTo)

clearCanReferTo

public void clearCanReferTo()

getReferenceDataType

public SchemaEntityRef[] getReferenceDataType()

addReferenceDataType

public void addReferenceDataType(SchemaEntityRef referenceDataType)

removeReferenceDataType

public boolean removeReferenceDataType(SchemaEntityRef referenceDataType)

clearReferenceDataType

public void clearReferenceDataType()

getTypeOfReference

public java.lang.String getTypeOfReference()

setTypeOfReference

public void setTypeOfReference(java.lang.String typeOfReference)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Extensible

hashCode

public int hashCode()
Overrides:
hashCode in class Extensible

getNamespacesInfo

public PrefixAndNamespaceTuple[] getNamespacesInfo()
Description copied from interface: MarshallableElement
We need to know the namespace of the class to include.

Specified by:
getNamespacesInfo in interface MarshallableElement
Overrides:
getNamespacesInfo in class Extensible

toXML

public java.lang.String toXML(XMLMarshaller m)
                       throws Spml2Exception
Description copied from interface: Marshallable
Visitor pattern - dispatch this type to the visitor (m) please.

Specified by:
toXML in interface Marshallable
Parameters:
m -
Returns:
xml
Throws:
Spml2Exception

isValid

public boolean isValid()
Description copied from interface: MarshallableElement
Is this ready to go or are there syntax errors, like missing required fields?

Specified by:
isValid in interface MarshallableElement
Overrides:
isValid in class Extensible


Copyright © Sun Microsystems, Inc. All Rights Reserved.