org.objectweb.jonas.webapp.jonasadmin.xml.xs
Interface SchemaRestrictions

All Known Implementing Classes:
HCSchemaRestrictions

public interface SchemaRestrictions

An interface to represent the schema restrictions from a schema.

Author:
Gregory Lapouchnian, Patrick Smith

Field Summary
static int EAR_TYPE
          An ear typed archive.
static int JAR_TYPE
          A jar typed archive.
static int RAR_TYPE
          A rar typed archive
static int WAR_TYPE
          A war typed archive.
 
Method Summary
 java.util.Set getComplexElements()
          Returns a set of the complex elements from this schema.
 ElementRestrictions getElementRestrictions(java.lang.String name)
          Returns the element restrictions for the element given by name.
 boolean hasElementRestrictions(java.lang.String name)
          Returns if the element given by name has an element restriction
 

Field Detail

RAR_TYPE

static final int RAR_TYPE
A rar typed archive

See Also:
Constant Field Values

WAR_TYPE

static final int WAR_TYPE
A war typed archive.

See Also:
Constant Field Values

JAR_TYPE

static final int JAR_TYPE
A jar typed archive.

See Also:
Constant Field Values

EAR_TYPE

static final int EAR_TYPE
An ear typed archive.

See Also:
Constant Field Values
Method Detail

hasElementRestrictions

boolean hasElementRestrictions(java.lang.String name)
Returns if the element given by name has an element restriction

Parameters:
name - the name of the element to check.
Returns:
if the element given by name has an element restriction.

getElementRestrictions

ElementRestrictions getElementRestrictions(java.lang.String name)
Returns the element restrictions for the element given by name.

Parameters:
name - the element to get the restrictions for.
Returns:
the element restrictions for the element given by name.

getComplexElements

java.util.Set getComplexElements()
Returns a set of the complex elements from this schema.

Returns:
a set of the complex elements from this schema.