org.opensaml.xml.schema
Enum SchemaBuilder.SchemaLanguage

java.lang.Object
  extended by java.lang.Enum<SchemaBuilder.SchemaLanguage>
      extended by org.opensaml.xml.schema.SchemaBuilder.SchemaLanguage
All Implemented Interfaces:
Serializable, Comparable<SchemaBuilder.SchemaLanguage>
Enclosing class:
SchemaBuilder

public static enum SchemaBuilder.SchemaLanguage
extends Enum<SchemaBuilder.SchemaLanguage>

Language of the schema files.


Enum Constant Summary
RELAX
          OASIS RELAX NG Schema.
XML
          W3 XML Schema.
 
Method Summary
 String getSchemaFileExtension()
          Gets the file extension used for the schema files.
static SchemaBuilder.SchemaLanguage valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SchemaBuilder.SchemaLanguage[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

XML

public static final SchemaBuilder.SchemaLanguage XML
W3 XML Schema.


RELAX

public static final SchemaBuilder.SchemaLanguage RELAX
OASIS RELAX NG Schema.

Method Detail

values

public static SchemaBuilder.SchemaLanguage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SchemaBuilder.SchemaLanguage c : SchemaBuilder.SchemaLanguage.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SchemaBuilder.SchemaLanguage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getSchemaFileExtension

public String getSchemaFileExtension()
Gets the file extension used for the schema files.

Returns:
file extension used for the schema files


Copyright © 2006-2011 Internet2. All Rights Reserved.