com.rapidtransform.core.meta.def
Class BaseMetaModel

java.lang.Object
  extended by com.rapidtransform.core.meta.def.BaseMetaModel
All Implemented Interfaces:
MetaModel, XMLSerializable

public class BaseMetaModel
extends java.lang.Object
implements MetaModel, XMLSerializable

Author:
Steve

Constructor Summary
BaseMetaModel()
           
 
Method Summary
static MetaModel fromXML(java.io.InputStream xmlInput)
           
 java.util.Collection<MetaAspect> getAspects()
           
 java.lang.String getAuthor()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplay()
           
 java.util.Collection<MetaInclude> getIncludes()
           
 QName getName()
           
 java.util.Collection<MetaNamespace> getNamespaces()
           
 java.util.Map<QName,MetaProperty> getProperties()
           
 java.util.Date getPublished()
           
 QName getQname()
           
 java.util.Collection<MetaType> getTypes()
           
 java.lang.String getVersion()
           
 void marshal(java.io.OutputStream xmlOutput)
          creates the xml representation of the MetaModel
 void setAspects(java.util.Collection<MetaAspect> aspects)
           
 void setAuthor(java.lang.String author)
           
 void setDescription(java.lang.String description)
           
 void setDisplay(java.lang.String display)
           
 void setIncludes(java.util.Collection<MetaInclude> includes)
           
 void setName(QName qname)
           
 void setNamespaces(java.util.Collection<MetaNamespace> namespaces)
           
 void setProperties(java.util.Map<QName,MetaProperty> properties)
           
 void setPublished(java.util.Date published)
           
 void setTypes(java.util.Collection<MetaType> types)
           
 void setVersion(java.lang.String version)
           
 XMLSerializable unmarshal(java.io.InputStream xmlInput)
          Creates a MetaModel from an XML Input Stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMetaModel

public BaseMetaModel()
Method Detail

getAuthor

public java.lang.String getAuthor()
Returns:
Returns the author.

setAuthor

public void setAuthor(java.lang.String author)
Parameters:
author - The author to set.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface MetaModel
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

getDisplay

public java.lang.String getDisplay()
Specified by:
getDisplay in interface MetaModel
Returns:
Returns the display.

setDisplay

public void setDisplay(java.lang.String display)
Parameters:
display - The display to set.

getIncludes

public java.util.Collection<MetaInclude> getIncludes()
Specified by:
getIncludes in interface MetaModel
Returns:
Returns the includes.

setIncludes

public void setIncludes(java.util.Collection<MetaInclude> includes)
Parameters:
includes - The includes to set.

getProperties

public java.util.Map<QName,MetaProperty> getProperties()
Specified by:
getProperties in interface MetaModel
Returns:
Returns the properties.

setProperties

public void setProperties(java.util.Map<QName,MetaProperty> properties)
Parameters:
properties - The properties to set.

getPublished

public java.util.Date getPublished()
Specified by:
getPublished in interface MetaModel
Returns:
Returns the published.

setPublished

public void setPublished(java.util.Date published)
Parameters:
published - The published to set.

getName

public QName getName()
Returns:
Returns the qname.

setName

public void setName(QName qname)
Parameters:
qname - The qname to set.

getTypes

public java.util.Collection<MetaType> getTypes()
Specified by:
getTypes in interface MetaModel
Returns:
Returns the types.

setTypes

public void setTypes(java.util.Collection<MetaType> types)
Parameters:
types - The types to set.

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface MetaModel
Returns:
Returns the version.

setVersion

public void setVersion(java.lang.String version)
Parameters:
version - The version to set.

getAspects

public java.util.Collection<MetaAspect> getAspects()
Returns:
Returns the aspects.

setAspects

public void setAspects(java.util.Collection<MetaAspect> aspects)
Parameters:
aspects - The aspects to set.

getNamespaces

public java.util.Collection<MetaNamespace> getNamespaces()
Specified by:
getNamespaces in interface MetaModel
Returns:
Returns the namespaces.

setNamespaces

public void setNamespaces(java.util.Collection<MetaNamespace> namespaces)
Parameters:
namespaces - The namespaces to set.

fromXML

public static MetaModel fromXML(java.io.InputStream xmlInput)
                         throws XMLMarshalingException
Throws:
XMLMarshalingException

unmarshal

public XMLSerializable unmarshal(java.io.InputStream xmlInput)
                          throws XMLMarshalingException
Creates a MetaModel from an XML Input Stream.

Specified by:
unmarshal in interface XMLSerializable
Throws:
XMLMarshalingException

marshal

public void marshal(java.io.OutputStream xmlOutput)
             throws XMLMarshalingException
creates the xml representation of the MetaModel

Specified by:
marshal in interface XMLSerializable
Throws:
XMLMarshalingException

getQname

public QName getQname()
Specified by:
getQname in interface MetaModel