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
 java.lang.String nameSchemaType(ElementDescriptor descriptor)
          Names the schema from the element
 java.lang.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 java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.