org.geotools.maven.xmlcodegen
Class GeneratorUtils

java.lang.Object
  extended by org.geotools.maven.xmlcodegen.GeneratorUtils

public class GeneratorUtils
extends java.lang.Object

Utility class used for generating.

Author:
Justin Deoliveira, The Open Planning Project

Constructor Summary
GeneratorUtils()
           
 
Method Summary
static java.util.List allTypes(org.eclipse.xsd.XSDSchema schema)
          Returns all the types defined in schema, including anonymous complex types.
static java.util.List types(org.eclipse.xsd.XSDSchema schema, java.util.Set names)
          Returns all the types defined in schema whose names are included in the specified set of names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorUtils

public GeneratorUtils()
Method Detail

allTypes

public static java.util.List allTypes(org.eclipse.xsd.XSDSchema schema)
Returns all the types defined in schema, including anonymous complex types.

Parameters:
schema - the schema.
Returns:
A list of types, including anonymous complex types.

types

public static java.util.List types(org.eclipse.xsd.XSDSchema schema,
                                   java.util.Set names)
Returns all the types defined in schema whose names are included in the specified set of names.

If names is null or empty all types are returned.

Parameters:
schema - the schema.
names - the names of types to include.
Returns:
A list of types, including anonymous complex types.


Copyright © 1996-2010 Geotools. All Rights Reserved.