Package org.planit.io.xml.util
Class PlanitSchema
- java.lang.Object
-
- org.planit.io.xml.util.PlanitSchema
-
public class PlanitSchema extends Object
Helper class to deal with XSD schema related locations for the various XML components- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static StringMACROSCOPIC_COMBINED_INPUT_XSDstatic StringMACROSCOPIC_DEMAND_XSDstatic StringMACROSCOPIC_DEMAND_XSD_SCHEMA_URI_DEVthe schema URI location of planit macroscopic zoning input during developmentstatic StringMACROSCOPIC_NETWORK_XSDstatic StringMACROSCOPIC_NETWORK_XSD_SCHEMA_URI_DEVthe schema URI location of planit macroscopic network input during developmentstatic StringMACROSCOPIC_ZONING_XSDstatic StringMACROSCOPIC_ZONING_XSD_SCHEMA_URI_DEVthe schema URI location of planit macroscopic zoning input during developmentstatic StringMETADATA_XSDstatic StringRESOURCES_RELEASE_GENERICbase location for any resources (such as schemas) for any release version, but without the actual version or resource appended yetstatic StringXSD_SCHEMA_URI_DEVELOPMENT_GENERICthe schema URI location (dir) of XML components during developmentstatic StringXSD_SCHEMA_URI_RELEASE_GENERICthe schema URI location of any PLANit XSD schema for any release version, but without the actual version or schema appended yet
-
Constructor Summary
Constructors Constructor Description PlanitSchema()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcreatePlanitSchemaUri(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 underXSD_SCHEMA_URI_DEVELOPMENT_GENERICwhereas if this is a release version theRESOURCES_RELEASE_GENERICis supplemented with the correct release version and appended with the xsd schema location
-
-
-
Field Detail
-
MACROSCOPIC_NETWORK_XSD
public static final String MACROSCOPIC_NETWORK_XSD
- See Also:
- Constant Field Values
-
MACROSCOPIC_DEMAND_XSD
public static final String MACROSCOPIC_DEMAND_XSD
- See Also:
- Constant Field Values
-
MACROSCOPIC_ZONING_XSD
public static final String MACROSCOPIC_ZONING_XSD
- See Also:
- Constant Field Values
-
METADATA_XSD
public static final String METADATA_XSD
- See Also:
- Constant Field Values
-
MACROSCOPIC_COMBINED_INPUT_XSD
public static final String MACROSCOPIC_COMBINED_INPUT_XSD
- See Also:
- Constant Field Values
-
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
-
-
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 underXSD_SCHEMA_URI_DEVELOPMENT_GENERICwhereas if this is a release version theRESOURCES_RELEASE_GENERICis 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
-
-