- java.lang.Object
-
- io.xlate.edi.internal.schema.StaEDISchemaFactory
-
- All Implemented Interfaces:
SchemaFactory
public class StaEDISchemaFactory extends Object implements SchemaFactory
-
-
Constructor Summary
Constructors Constructor Description StaEDISchemaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemacreateSchema(InputStream stream)SchemacreateSchema(URL location)ObjectgetProperty(String name)Get the value of a feature/property from the underlying implementationbooleanisPropertySupported(String name)Query the set of properties that this factory supports.voidsetProperty(String name, Object value)Allows the user to set specific feature/property on the underlying implementation.
-
-
-
Method Detail
-
createSchema
public Schema createSchema(InputStream stream) throws EDISchemaException
- Specified by:
createSchemain interfaceSchemaFactory- Throws:
EDISchemaException
-
createSchema
public Schema createSchema(URL location) throws EDISchemaException
- Specified by:
createSchemain interfaceSchemaFactory- Throws:
EDISchemaException
-
isPropertySupported
public boolean isPropertySupported(String name)
Description copied from interface:SchemaFactoryQuery the set of properties that this factory supports.- Specified by:
isPropertySupportedin interfaceSchemaFactory- Parameters:
name- - The name of the property (may not be null)- Returns:
- true if the property is supported and false otherwise
-
getProperty
public Object getProperty(String name)
Description copied from interface:SchemaFactoryGet the value of a feature/property from the underlying implementation- Specified by:
getPropertyin interfaceSchemaFactory- Parameters:
name- - The name of the property (may not be null)- Returns:
- The value of the property
-
setProperty
public void setProperty(String name, Object value)
Description copied from interface:SchemaFactoryAllows the user to set specific feature/property on the underlying implementation. The underlying implementation is not required to support every setting of every property in the specification and may use IllegalArgumentException to signal that an unsupported property may not be set with the specified value.- Specified by:
setPropertyin interfaceSchemaFactory- Parameters:
name- - The name of the property (may not be null)value- - The value of the property
-
-