Interface STProperties
- All Known Subinterfaces:
Configuration
,Settings
- All Known Implementing Classes:
AbstractLabelBasedRenderingEngineConfiguration
,AbstractPluginConfiguration
,AbstractSparqlBasedCustomView
,AdditionalFile
,AdminMailSettings
,AdvSingleValueView
,AreaView
,ClassTreeFilter
,ClassTreePreferences
,ClickableValueStyle
,ConceptTreePreferences
,ConnectedShowVocProjectSettings
,ConnectedShowVocSystemSettings
,ContentNegotiationSettings
,CorePGSettings
,CoreProjectSettings
,CorePUSettings
,CoreSystemSettings
,CoreUserSettings
,CorruptedProjectFacets
,CustomService
,CustomTreeSettings
,CustomView
,CustomViewAssociation
,DatasetMetadataExporterSettings
,DownloadProjectSettings
,DynamicSTProperties
,DynamicVectorView
,ErrorReportingSettings
,FromMailSettings
,InstanceListPreferences
,InvokableReporter
,Language
,LexEntryListPreferences
,MailSettings
,NotificationSystemSettings
,NotificationSystemSettings.CronDefinition
,Operation
,Parameter
,PointView
,PredicateLabelSettings
,PreloadProfilerSettings
,PreloadSettings
,ProjectCreationSettings
,ProjectFacets
,ProjectsSearchGroup
,ProjectVisualization
,PropertyChainView
,RDFTransformerChainConfiguration
,RemoteAlignmentServiceConfiguration
,RemoteAlignmentServiceProjectSettings
,RemoteTripleStoreSettings
,RenderingEnginePUSettings
,ResourceMetadataAssociation
,ResourceMetadataPattern
,ResourceViewCustomSectionSettings
,ResourceViewPreferences
,ResourceViewProjectSettings
,ResViewSectionDisplayInfo
,RouteView
,SearchSettings
,SepiaSettings
,SeriesCollectionView
,SeriesView
,ServiceInvocation
,SHACLSettings
,Sheet2RdfSettings
,ShowVocSettings
,SingleDownload
,SmtpMailSettings
,StaticVectorView
,StoredAdvancedGraphApplicationConfiguration
,StoredContributionConfiguration
,StoredCustomSearch
,StoredDevResourceContributionConfiguration
,StoredExportConfiguration
,StoredImportConfiguration
,StoredMetadataContributionConfiguration
,StoredProjectMetadata
,StoredSPARQLOperation
,StoredSPARQLParameterization
,StoredStableResourceContributionConfiguration
,StoredTemplateConfiguration
,STPropertiesImpl
,STPropertiesSchema
,STPropertyEnumeration
,STPropertySchema
,STPropertyType
,Uri2ProjectResolutionSettings
,ValueFilterLanguages
,VariableDefinition
,VocBenchConnectionShowVocSettings
public interface STProperties
- Author:
- Armando Stellato <stellato@uniroma2.it>, Manuel Fiorelli <fiorelli@info.uniroma2.it>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic @interface
static class
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
checkAndConvertPropertyValue
(String id, Object value, Type propType) default Object
convertToPropertValue
(Type type, Object value) static <T extends STProperties>
voiddeepMerge
(T toProps, T fromProps) Deep copy properties fromfromProps
intotoProps
.default Annotation[]
getAnnotations
(String id) Returns the annotations (if any) associated with the property with givenid
.default Optional<EnumerationDescription>
getEnumeration
(String id) Returns the enumeration (if any) associated with the property with givenid
.default String
An optional HTML description of this type of propertySetdefault String
An optional HTML warning related to this type of propertySetdefault Collection<String>
returns all the properties of the class implementing this interface, which have been annotated asSTProperty
default AnnotatedType
default String
getPropertyContentType
(String parID) get the expected type of content for the property.default String
this method returns the description of a propertydefault String
this method returns the displayName of a property.default Type
default Object
gets the value of a property previously set on this set of propertiesdefault String
default boolean
tells if this set of properties needs to be explicitly set by the user or if it can be used in its default settingsdefault boolean
isEnumerated
(String id) Tells if the property with givenid
is enumerated: either its type is an enum (seegetPropertyType(String)
) or it is annotated withEnumeration
.default boolean
isRequiredProperty
(String parID) default void
loadProperties
(File propertyFile) invokessetPropertyValue(String, Object)
on each of the property/value pairs found inpropertyFile
default void
setProperties
(Properties props) invokessetPropertyValue(String, Object)
on each of the property/value pairs found inproperties
default void
setPropertyValue
(String id, Object value) default void
storeProperties
(File propertyFile) stores the properties in this instance in filepropertyFile
default void
storeProperties
(Properties properties) stores the properties in this instance in the givenProperties
objectproperties
-
Method Details
-
getShortName
String getShortName()- Returns:
- a humanly understandable short name representing the type of this property set
-
getHTMLDescription
An optional HTML description of this type of propertySet- Returns:
- an HTML description of this type of propertySet. It may be
null
, if no description is available
-
getHTMLWarning
An optional HTML warning related to this type of propertySet- Returns:
- An optional HTML warning related to this type of propertySet. It may be
null
, if no warning is available
-
getProperties
returns all the properties of the class implementing this interface, which have been annotated asSTProperty
- Returns:
-
getPropertyValue
gets the value of a property previously set on this set of properties- Parameters:
id
-- Returns:
- Throws:
PropertyNotFoundException
-
getPropertyType
- Throws:
PropertyNotFoundException
-
getPropertyAnnotatedType
- Throws:
PropertyNotFoundException
-
setPropertyValue
- Throws:
WrongPropertiesException
-
checkAndConvertPropertyValue
default Object checkAndConvertPropertyValue(String id, Object value, Type propType) throws IllegalArgumentException, PropertyNotFoundException -
setProperties
invokessetPropertyValue(String, Object)
on each of the property/value pairs found inproperties
- Parameters:
props
-- Throws:
WrongPropertiesException
-
loadProperties
invokessetPropertyValue(String, Object)
on each of the property/value pairs found inpropertyFile
- Parameters:
propertyFile
-- Throws:
WrongPropertiesException
IOException
-
storeProperties
stores the properties in this instance in filepropertyFile
- Parameters:
propertyFile
-- Throws:
IOException
WrongPropertiesException
-
storeProperties
stores the properties in this instance in the givenProperties
objectproperties
- Parameters:
properties
-- Throws:
IOException
WrongPropertiesException
-
getPropertyContentType
get the expected type of content for the property. Can be used by external tools to drive the acquisition of that value or to check- Parameters:
parID
-- Returns:
- Throws:
PropertyNotFoundException
-
isRequiredProperty
- Throws:
PropertyNotFoundException
-
hasRequiredProperties
default boolean hasRequiredProperties()tells if this set of properties needs to be explicitly set by the user or if it can be used in its default settings- Returns:
-
getPropertyDescription
this method returns the description of a property- Parameters:
id
-- Returns:
- Throws:
PropertyNotFoundException
-
getPropertyDisplayName
this method returns the displayName of a property. If not provided, return the property name- Parameters:
id
-- Returns:
- Throws:
PropertyNotFoundException
-
convertToPropertValue
-
getStringRepresentation
-
isEnumerated
Tells if the property with givenid
is enumerated: either its type is an enum (seegetPropertyType(String)
) or it is annotated withEnumeration
.- Parameters:
id
-- Returns:
- Throws:
PropertyNotFoundException
-
getEnumeration
Returns the enumeration (if any) associated with the property with givenid
.- Parameters:
id
-- Returns:
- Throws:
PropertyNotFoundException
-
getAnnotations
Returns the annotations (if any) associated with the property with givenid
.- Parameters:
id
-- Returns:
- Throws:
PropertyNotFoundException
-
deepMerge
Deep copy properties fromfromProps
intotoProps
. Merge is performed in place in the argumenttoProps
, possibly sharing resources from the argumentfromProps
.- Type Parameters:
T
-- Parameters:
toProps
-fromProps
-
-