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

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

public class ClassNameSchemaNamingStrategy
extends SchemaTypeNamingStrategy

Names schema types from the property type of the descriptor

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

Constructor Summary
ClassNameSchemaNamingStrategy()
           
 
Method Summary
 java.lang.String nameSchemaType(ElementDescriptor elementDescriptor)
          Names the schema type from the type of the property.
 java.lang.String toString()
          Outputs brief description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassNameSchemaNamingStrategy

public ClassNameSchemaNamingStrategy()
Method Detail

nameSchemaType

public java.lang.String nameSchemaType(ElementDescriptor elementDescriptor)
Names the schema type from the type of the property.

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

toString

public java.lang.String toString()
Outputs brief description.

Overrides:
toString in class java.lang.Object


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