org.kuali.student.contract.model.impl
Class ServiceContractModelPescXsdLoader

java.lang.Object
  extended by org.kuali.student.contract.model.impl.ServiceContractModelPescXsdLoader
All Implemented Interfaces:
ServiceContractModel

public class ServiceContractModelPescXsdLoader
extends Object
implements ServiceContractModel

Author:
nwright

Nested Class Summary
private static class ServiceContractModelPescXsdLoader.XsdAnnotationParser
          helper class
private static class ServiceContractModelPescXsdLoader.XsdAnnotationParserFactory
          helper class
private static class ServiceContractModelPescXsdLoader.XsdContentHandler
          helper class
 
Field Summary
private  List<MessageStructure> messageStructures
           
private  List<ServiceMethod> serviceMethods
           
private  List<Service> services
           
private  Map<String,XmlType> xmlTypeMap
           
private  List<String> xsdFileNames
           
 
Constructor Summary
ServiceContractModelPescXsdLoader(List<String> xsdFileNames)
           
 
Method Summary
private  void addComplexType(com.sun.xml.xsom.XSComplexType complexType)
           
private  void addComplexType(com.sun.xml.xsom.XSComplexType complexType, String name)
           
private  void addElementDecl(com.sun.xml.xsom.XSElementDecl element)
           
private  void addMessageStructure(String xmlObject, com.sun.xml.xsom.XSElementDecl element)
           
private  void addSimpleType(com.sun.xml.xsom.XSSimpleType simpleType)
           
private  String calcCardinality(com.sun.xml.xsom.XSElementDecl element)
           
private  String calcDesc(com.sun.xml.xsom.XSAnnotation annotation)
           
private  String calcMissing(String str)
           
private  String calcRequired(com.sun.xml.xsom.XSElementDecl element)
           
private  String calcType(com.sun.xml.xsom.XSElementDecl element, String inLinePrefix)
           
private  String calcType(com.sun.xml.xsom.XSType xsType, String inLinePrefix)
           
private  String getFacetValue(com.sun.xml.xsom.XSElementDecl element, String name)
           
private  boolean getIsRepeated(com.sun.xml.xsom.XSElementDecl element)
           
 List<MessageStructure> getMessageStructures()
          Get Message Structure Definitions
 List<ServiceMethod> getServiceMethods()
          Get service methods
 List<Service> getServices()
          get the service definitions
 List<String> getSourceNames()
           
 List<XmlType> getXmlTypes()
          load xml types
private  void parse()
           
private  void processSchema(com.sun.xml.xsom.XSSchema schema)
           
private  boolean shouldInclude(com.sun.xml.xsom.XSComplexType ct)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xsdFileNames

private List<String> xsdFileNames

services

private List<Service> services

serviceMethods

private List<ServiceMethod> serviceMethods

xmlTypeMap

private Map<String,XmlType> xmlTypeMap

messageStructures

private List<MessageStructure> messageStructures
Constructor Detail

ServiceContractModelPescXsdLoader

public ServiceContractModelPescXsdLoader(List<String> xsdFileNames)
Method Detail

getServiceMethods

public List<ServiceMethod> getServiceMethods()
Description copied from interface: ServiceContractModel
Get service methods

Specified by:
getServiceMethods in interface ServiceContractModel
Returns:

getSourceNames

public List<String> getSourceNames()
Specified by:
getSourceNames in interface ServiceContractModel

getServices

public List<Service> getServices()
Description copied from interface: ServiceContractModel
get the service definitions

Specified by:
getServices in interface ServiceContractModel
Returns:
list of services known to the metadata

getXmlTypes

public List<XmlType> getXmlTypes()
Description copied from interface: ServiceContractModel
load xml types

Specified by:
getXmlTypes in interface ServiceContractModel
Returns:

getMessageStructures

public List<MessageStructure> getMessageStructures()
Description copied from interface: ServiceContractModel
Get Message Structure Definitions

Specified by:
getMessageStructures in interface ServiceContractModel
Returns:

parse

private void parse()

processSchema

private void processSchema(com.sun.xml.xsom.XSSchema schema)

shouldInclude

private boolean shouldInclude(com.sun.xml.xsom.XSComplexType ct)

addSimpleType

private void addSimpleType(com.sun.xml.xsom.XSSimpleType simpleType)

addComplexType

private void addComplexType(com.sun.xml.xsom.XSComplexType complexType)

addElementDecl

private void addElementDecl(com.sun.xml.xsom.XSElementDecl element)

addComplexType

private void addComplexType(com.sun.xml.xsom.XSComplexType complexType,
                            String name)

calcMissing

private String calcMissing(String str)

calcDesc

private String calcDesc(com.sun.xml.xsom.XSAnnotation annotation)

addMessageStructure

private void addMessageStructure(String xmlObject,
                                 com.sun.xml.xsom.XSElementDecl element)

calcType

private String calcType(com.sun.xml.xsom.XSElementDecl element,
                        String inLinePrefix)

calcType

private String calcType(com.sun.xml.xsom.XSType xsType,
                        String inLinePrefix)

calcRequired

private String calcRequired(com.sun.xml.xsom.XSElementDecl element)

calcCardinality

private String calcCardinality(com.sun.xml.xsom.XSElementDecl element)

getIsRepeated

private boolean getIsRepeated(com.sun.xml.xsom.XSElementDecl element)

getFacetValue

private String getFacetValue(com.sun.xml.xsom.XSElementDecl element,
                             String name)


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.