Package edu.ucsb.nceas.metacat
Class SchemaLocationResolver
java.lang.Object
edu.ucsb.nceas.metacat.SchemaLocationResolver
A database aware Class to handle schema location. If namespace is in the
 xml_catalog table (public_id), the schema location specified in xml document
 will be ignored by parser setting external schema location. If the
 name space is not in the table, it will be download to metacat and register
 in table
- 
Constructor SummaryConstructorsConstructorDescriptionSchemaLocationResolver(String myNameSpaceAndLocation) Construct an instance of the SchemaLocationResolver classSchemaLocationResolver(String myNameSpace, String myLocation) Construct an instance of the SchemaLocationResolver class
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGets the downloadNewSchema's value.voidWhen got a name space, check if it is in the database, if it is do nothing else upload it to metacat to store it and register it in catalog table
- 
Constructor Details- 
SchemaLocationResolverpublic SchemaLocationResolver()
- 
SchemaLocationResolverConstruct an instance of the SchemaLocationResolver class- Parameters:
- myNameSpaceAndLocation- it is come from xsi:schemaLocation= "namespace location"
 
- 
SchemaLocationResolverConstruct an instance of the SchemaLocationResolver class- Parameters:
- myNameSpaceAndLocation- it is come from xsi:schemaLocation= "namespace location"
 
 
- 
- 
Method Details- 
resolveNameSpacepublic void resolveNameSpace()When got a name space, check if it is in the database, if it is do nothing else upload it to metacat to store it and register it in catalog table
- 
getDownloadNewSchemapublic boolean getDownloadNewSchema()Gets the downloadNewSchema's value.- Returns:
 
 
-