org.openspml.v2.profiles.spmldsml
Class Schema
java.lang.Object
org.openspml.v2.msg.spml.Extensible
org.openspml.v2.profiles.spmldsml.ExtensibleElement
org.openspml.v2.profiles.spmldsml.Schema
- All Implemented Interfaces:
- Marshallable, MarshallableElement, OpenContentContainer
- public class Schema
- extends org.openspml.v2.profiles.spmldsml.ExtensibleElement
- implements Marshallable
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 |
Schema
public Schema()
Schema
public Schema(ObjectClassDefinition[] objectClassDefs,
AttributeDefinition[] attributeDefs)
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.