org.openspml.v2.profiles.spmldsml
Class Schema

java.lang.Object
  extended byorg.openspml.v2.msg.spml.Extensible
      extended byorg.openspml.v2.profiles.spmldsml.ExtensibleElement
          extended byorg.openspml.v2.profiles.spmldsml.Schema
All Implemented Interfaces:
Marshallable, MarshallableElement, OpenContentContainer

public class Schema
extends org.openspml.v2.profiles.spmldsml.ExtensibleElement
implements Marshallable


Constructor Summary
Schema()
           
Schema(ObjectClassDefinition[] objectClassDefs, AttributeDefinition[] attributeDefs)
           
 
Method Summary
 void addAttributeDefinition(AttributeDefinition reference)
           
 void addObjectClassDefinition(ObjectClassDefinition reference)
           
 void clearAttributeDefinitions()
           
 void clearObjectClassDefinitions()
           
 boolean equals(java.lang.Object o)
           
 AttributeDefinition[] getAttributeDefinitions()
           
 PrefixAndNamespaceTuple[] getNamespacesInfo()
          We need to know the namespace of the class to include.
 ObjectClassDefinition[] getObjectClassDefinitions()
           
 int hashCode()
           
 boolean isValid()
          Most of the checks can be handled with setters/getters and assertions.
 boolean removeAttributeDefinition(AttributeDefinition reference)
           
 boolean removeObjectClassDefinition(ObjectClassDefinition reference)
           
 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
 
Methods inherited from interface org.openspml.v2.msg.MarshallableElement
getNamespacesInfo
 

Constructor Detail

Schema

public Schema()

Schema

public Schema(ObjectClassDefinition[] objectClassDefs,
              AttributeDefinition[] attributeDefs)
Method Detail

getObjectClassDefinitions

public ObjectClassDefinition[] getObjectClassDefinitions()

addObjectClassDefinition

public void addObjectClassDefinition(ObjectClassDefinition reference)

removeObjectClassDefinition

public boolean removeObjectClassDefinition(ObjectClassDefinition reference)

clearObjectClassDefinitions

public void clearObjectClassDefinitions()

getAttributeDefinitions

public AttributeDefinition[] getAttributeDefinitions()

addAttributeDefinition

public void addAttributeDefinition(AttributeDefinition reference)

removeAttributeDefinition

public boolean removeAttributeDefinition(AttributeDefinition reference)

clearAttributeDefinitions

public void clearAttributeDefinitions()

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()
Most of the checks can be handled with setters/getters and assertions.

Specified by:
isValid in interface MarshallableElement
Overrides:
isValid in class Extensible
Returns:
true if valid, false otherwise.

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


Copyright © Sun Microsystems, Inc. All Rights Reserved.