Class PlanitSchema


  • public class PlanitSchema
    extends Object
    Helper class to deal with XSD schema related locations for the various XML components
    Author:
    markr
    • Field Detail

      • XSD_SCHEMA_URI_DEVELOPMENT_GENERIC

        public static final String XSD_SCHEMA_URI_DEVELOPMENT_GENERIC
        the schema URI location (dir) of XML components during development
        See Also:
        Constant Field Values
      • RESOURCES_RELEASE_GENERIC

        public static final String RESOURCES_RELEASE_GENERIC
        base location for any resources (such as schemas) for any release version, but without the actual version or resource appended yet
        See Also:
        Constant Field Values
      • MACROSCOPIC_NETWORK_XSD_SCHEMA_URI_DEV

        public static final String MACROSCOPIC_NETWORK_XSD_SCHEMA_URI_DEV
        the schema URI location of planit macroscopic network input during development
        See Also:
        Constant Field Values
      • MACROSCOPIC_ZONING_XSD_SCHEMA_URI_DEV

        public static final String MACROSCOPIC_ZONING_XSD_SCHEMA_URI_DEV
        the schema URI location of planit macroscopic zoning input during development
        See Also:
        Constant Field Values
      • MACROSCOPIC_DEMAND_XSD_SCHEMA_URI_DEV

        public static final String MACROSCOPIC_DEMAND_XSD_SCHEMA_URI_DEV
        the schema URI location of planit macroscopic zoning input during development
        See Also:
        Constant Field Values
      • XSD_SCHEMA_URI_RELEASE_GENERIC

        public static final String XSD_SCHEMA_URI_RELEASE_GENERIC
        the schema URI location of any PLANit XSD schema for any release version, but without the actual version or schema appended yet
        See Also:
        Constant Field Values
    • Constructor Detail

      • PlanitSchema

        public PlanitSchema()
    • Method Detail

      • createPlanitSchemaUri

        public static String createPlanitSchemaUri​(String xsdFileName)
        create the appropriate URI reference for the xsd schema assuming it is published according to PLANit guidelines meaning that when this is a development version it resides under XSD_SCHEMA_URI_DEVELOPMENT_GENERIC whereas if this is a release version the RESOURCES_RELEASE_GENERIC is supplemented with the correct release version and appended with the xsd schema location
        Parameters:
        xsdFileName - to create URI reference for
        Returns:
        PLANit compatible URI reference