com.ebmwebsourcing.commons.schema.api.abstractElmt
Class AbstractInclude<E>

java.lang.Object
  extended by com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractSchemaElement<E>
      extended by com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractInclude<E>
All Implemented Interfaces:
Include, SchemaElement, java.io.Serializable
Direct Known Subclasses:
AbstractImport, Include, Redefine

public abstract class AbstractInclude<E>
extends AbstractSchemaElement<E>
implements Include

Author:
Nicolas Salatge - eBM WebSourcing
See Also:
Serialized Form

Field Summary
protected  Schema parent
          the parent description
protected  Schema schema
          the schema
 
Fields inherited from class com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractSchemaElement
documentation, model
 
Constructor Summary
AbstractInclude(E model, Schema parent)
          Default constructor
AbstractInclude(java.net.URI baseURI, E model, java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features)
          Default constructor
 
Method Summary
 Schema getParentSchema()
           
 Schema getSchema()
          This property can be used to hang a referenced Schema, and the top-level Schema (i.e. the one with the <import>) will use this Schema when resolving referenced parts.
 void setParentSchema(Schema parent)
           
 void setSchema(Schema schema)
          This property can be used to hang a referenced Schema, and the top-level Schema (i.e. the one with the <import>) will use this Schema when resolving referenced parts.
 
Methods inherited from class com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractSchemaElement
createDocumentation, getDocumentation, getModel, setDocumentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.commons.schema.api.Include
getLocationURI, setLocationURI
 
Methods inherited from interface com.ebmwebsourcing.commons.schema.api.SchemaElement
createDocumentation, getDocumentation, setDocumentation
 

Field Detail

schema

protected Schema schema
the schema


parent

protected Schema parent
the parent description

Constructor Detail

AbstractInclude

public AbstractInclude(java.net.URI baseURI,
                       E model,
                       java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features)
Default constructor

Parameters:
model - the model
parent - the parent description

AbstractInclude

public AbstractInclude(E model,
                       Schema parent)
Default constructor

Parameters:
model - the model
parent - the parent description
Method Detail

getSchema

public Schema getSchema()
Description copied from interface: Include
This property can be used to hang a referenced Schema, and the top-level Schema (i.e. the one with the <import>) will use this Schema when resolving referenced parts. This would need to be made into a generic reference to handle other types of referenced documents.

Specified by:
getSchema in interface Include
Returns:
the schema

setSchema

public void setSchema(Schema schema)
Description copied from interface: Include
This property can be used to hang a referenced Schema, and the top-level Schema (i.e. the one with the <import>) will use this Schema when resolving referenced parts. This would need to be made into a generic reference to handle other types of referenced documents.

Specified by:
setSchema in interface Include

getParentSchema

public Schema getParentSchema()
Returns:
the parent schema

setParentSchema

public void setParentSchema(Schema parent)


Copyright © 2008 eBM WebSourcing. All Rights Reserved.