Class XmlRamlTypeLoader

  • All Implemented Interfaces:
    TypeLoader

    public class XmlRamlTypeLoader
    extends Object
    implements TypeLoader
    RAML TypeLoader that takes the internal TypeDeclaration and transforms it into a MetadataType through TypeDeclaration.toXmlSchema() in conjunction with XmlTypeLoader.

    Supported fragments so far: RamlFragment.DataType and RamlFragment.Library, any other will fail while loading t he RAML file

    Since:
    1.0
    • Constructor Detail

      • XmlRamlTypeLoader

        public XmlRamlTypeLoader​(File ramlFile)
        Constructs a RAML type loader
        Parameters:
        ramlFile - file pointing to the RAML resource
      • XmlRamlTypeLoader

        public XmlRamlTypeLoader​(String content,
                                 String ramlLocation)
        Constructs a RAML type loader
        Parameters:
        content - content of the RAML resource
        ramlLocation - pointer to the RAML location