org.objectweb.jonas.webapp.jonasadmin.xml.xs.hardcoded
Class HCSchemaRestrictions

java.lang.Object
  extended by org.objectweb.jonas.webapp.jonasadmin.xml.xs.hardcoded.HCSchemaRestrictions
All Implemented Interfaces:
SchemaRestrictions

public class HCSchemaRestrictions
extends java.lang.Object
implements SchemaRestrictions

An implementation of SchemaRestrictions where the restrictions are not retrieved from the schema but hard coded inside the class.

Author:
Gregory Lapouchnian, Patrick Smith

Field Summary
 
Fields inherited from interface org.objectweb.jonas.webapp.jonasadmin.xml.xs.SchemaRestrictions
EAR_TYPE, JAR_TYPE, RAR_TYPE, WAR_TYPE
 
Constructor Summary
HCSchemaRestrictions(int documentType)
          Create a new hard coded schema restriction.
 
Method Summary
 java.util.Set getComplexElements()
          Returns a set of all complex elements for this schema.
 ElementRestrictions getElementRestrictions(java.lang.String name)
          Returns the element restrictions for the given element name.
 boolean hasElementRestrictions(java.lang.String name)
          Returns if there is an element restriction for the given name.
protected  void populateActivationSpec()
          Populate the activationspec restrictions
protected  void populateAuthenticationMechanism()
          Populate the authentication-mechanism restrictions
protected  void populateConfigProperty()
          Populate the config-property restrictions
protected  java.util.List populateConfigurationGroup()
          Populate the configurationgroup restrictions
protected  void populateConnectionDefinition()
          Populate the connection-definition restrictions
protected  void populateConnector()
          Populate the connector restrictions
protected  void populateConnectorXSD()
          Populate the connector XSD restrictions.
protected  java.util.List populateDescriptionGroup()
          Populate the descriptionGroup restrictions
protected  java.util.List populateIdGroup()
          Populate the idgroup restrictions
protected  void populateInboundResourceAdapter()
          Populate the inbound-resourceadapter restrictions
protected  void populateJdbcConnParams()
          Populate the jdbc-conn-params restrictions
protected  void populateJonasActivationSpec()
          Populate the jonas-activationspec restrictions
protected  void populateJonasAdminObject()
          Populate the jonas-adminobject restrictions
protected  void populateJonasConfigProperty()
          Populate the jonas-config-property restrictions
protected  void populateJonasConnectionDefinition()
          Populate the jonas-connection-definition restrictions
protected  void populateJonasConnector()
          Populate the jonas connector restrictions
protected  void populateJonasConnectorXSD()
          populate the jonas connector xsd restrictions.
protected  void populateJonasSecurityMapping()
          Populate the jonas-security-mapping restrictions
protected  void populateLicense()
          Populate the license restrictions
protected  void populateMessageAdapter()
          Populate the message-adapter restrictions
protected  void populateMessageListener()
          Populate the message-listener restrictions
protected  void populateOutboundResourceAdapter()
          Populate the outbound-resourceadapter restrictions
protected  void populatePoolParams()
          Populate the poolparams restrictions
protected  void populateRequiredConfigProperty()
          Populate the required-config-property restrictions
protected  void populateResourceAdapter()
          Populate the resource-adapter restrictions
protected  void populateSecurityEntry()
          Populate the security-entry restrictions
protected  void populateTmConfigProperty()
          Populate the tm-config-property restrictions
protected  void populateTmParams()
          Populate the tm-params restrictions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HCSchemaRestrictions

public HCSchemaRestrictions(int documentType)
Create a new hard coded schema restriction.

Parameters:
documentType - the document type.
Method Detail

populateConnectorXSD

protected void populateConnectorXSD()
Populate the connector XSD restrictions.


populateJonasConnectorXSD

protected void populateJonasConnectorXSD()
populate the jonas connector xsd restrictions.


populateJonasConnector

protected void populateJonasConnector()
Populate the jonas connector restrictions


populatePoolParams

protected void populatePoolParams()
Populate the poolparams restrictions


populateJdbcConnParams

protected void populateJdbcConnParams()
Populate the jdbc-conn-params restrictions


populateTmParams

protected void populateTmParams()
Populate the tm-params restrictions


populateTmConfigProperty

protected void populateTmConfigProperty()
Populate the tm-config-property restrictions


populateJonasConfigProperty

protected void populateJonasConfigProperty()
Populate the jonas-config-property restrictions


populateJonasConnectionDefinition

protected void populateJonasConnectionDefinition()
Populate the jonas-connection-definition restrictions


populateJonasActivationSpec

protected void populateJonasActivationSpec()
Populate the jonas-activationspec restrictions


populateConfigurationGroup

protected java.util.List populateConfigurationGroup()
Populate the configurationgroup restrictions

Returns:
the configuration group list

populateIdGroup

protected java.util.List populateIdGroup()
Populate the idgroup restrictions

Returns:
the idgroup list

populateJonasAdminObject

protected void populateJonasAdminObject()
Populate the jonas-adminobject restrictions


populateJonasSecurityMapping

protected void populateJonasSecurityMapping()
Populate the jonas-security-mapping restrictions


populateSecurityEntry

protected void populateSecurityEntry()
Populate the security-entry restrictions


populateConfigProperty

protected void populateConfigProperty()
Populate the config-property restrictions


populateResourceAdapter

protected void populateResourceAdapter()
Populate the resource-adapter restrictions


populateConnector

protected void populateConnector()
Populate the connector restrictions


populateDescriptionGroup

protected java.util.List populateDescriptionGroup()
Populate the descriptionGroup restrictions

Returns:
the descriptionGroup list

populateOutboundResourceAdapter

protected void populateOutboundResourceAdapter()
Populate the outbound-resourceadapter restrictions


populateInboundResourceAdapter

protected void populateInboundResourceAdapter()
Populate the inbound-resourceadapter restrictions


populateLicense

protected void populateLicense()
Populate the license restrictions


populateConnectionDefinition

protected void populateConnectionDefinition()
Populate the connection-definition restrictions


populateAuthenticationMechanism

protected void populateAuthenticationMechanism()
Populate the authentication-mechanism restrictions


populateMessageAdapter

protected void populateMessageAdapter()
Populate the message-adapter restrictions


populateMessageListener

protected void populateMessageListener()
Populate the message-listener restrictions


populateActivationSpec

protected void populateActivationSpec()
Populate the activationspec restrictions


populateRequiredConfigProperty

protected void populateRequiredConfigProperty()
Populate the required-config-property restrictions


hasElementRestrictions

public boolean hasElementRestrictions(java.lang.String name)
Returns if there is an element restriction for the given name.

Specified by:
hasElementRestrictions in interface SchemaRestrictions
Parameters:
name - the name of the element to check
Returns:
true if name has a restriction.

getElementRestrictions

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

Specified by:
getElementRestrictions in interface SchemaRestrictions
Parameters:
name - the name of the element to return the restrictions
Returns:
the element restrictions for the element.

getComplexElements

public java.util.Set getComplexElements()
Returns a set of all complex elements for this schema.

Specified by:
getComplexElements in interface SchemaRestrictions
Returns:
a set of all complex elements for this schema.