org.apache.commons.betwixt.schema.strategy.impl
Class ElementSchemaNamingStrategy

java.lang.Object
  extended by org.apache.commons.betwixt.schema.strategy.SchemaTypeNamingStrategy
      extended by org.apache.commons.betwixt.schema.strategy.impl.ElementSchemaNamingStrategy

public class ElementSchemaNamingStrategy
extends SchemaTypeNamingStrategy

Strategy uses the name of the element for the complex type

Since:
0.8
Author:
Apache Commons Team of the Apache Software Foundation

Constructor Summary
ElementSchemaNamingStrategy()
           
 
Method Summary
 String nameSchemaType(ElementDescriptor descriptor)
          Names the schema from the element
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementSchemaNamingStrategy

public ElementSchemaNamingStrategy()
Method Detail

nameSchemaType

public String nameSchemaType(ElementDescriptor descriptor)
Names the schema from the element

Specified by:
nameSchemaType in class SchemaTypeNamingStrategy
Parameters:
descriptor - ElementDescriptor describing the element
Returns:
the name of the schema
See Also:
SchemaTypeNamingStrategy.nameSchemaType(ElementDescriptor)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.