Interface FauxPropertyDao
-
- All Known Implementing Classes:
FauxPropertyDaoFiltering,FauxPropertyDaoJena
public interface FauxPropertyDaoUtility methods for fetching, storing and manipulating FauxProperty objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteFauxProperty(FauxProperty fp)Delete this FauxProperty from the display model.List<FauxProperty>getFauxPropertiesForBaseUri(String uri)Get all of the FauxProperties that are based on this URI.FauxPropertygetFauxPropertyByUris(String domainUri, String baseUri, String rangeUri)If the display model contains a ConfigContext based on these URIs, get the FauxProperty that it describes.FauxPropertygetFauxPropertyFromContextUri(String contextUri)If the display model contains a ConfigContext with this URI, get the FauxProperty that it describes.voidinsertFauxProperty(FauxProperty fp)Creates a new FauxProperty in the display model.voidupdateFauxProperty(FauxProperty fp)Updates the properties of this FauxProperty in the display model.
-
-
-
Method Detail
-
getFauxPropertiesForBaseUri
List<FauxProperty> getFauxPropertiesForBaseUri(String uri)
Get all of the FauxProperties that are based on this URI.- Returns:
- May return an empty list. Never returns null.
-
getFauxPropertyFromContextUri
FauxProperty getFauxPropertyFromContextUri(String contextUri)
If the display model contains a ConfigContext with this URI, get the FauxProperty that it describes.- Returns:
- May return null.
-
getFauxPropertyByUris
FauxProperty getFauxPropertyByUris(String domainUri, String baseUri, String rangeUri)
If the display model contains a ConfigContext based on these URIs, get the FauxProperty that it describes. May return null.- Parameters:
domainUri- May be null, but then this will only match a ConfigContext that has no qualifiedByDomain property.baseUri- Object of configContextFor property. May not be null.rangeUri- Object of qualifiedBy property. May not be null.- Returns:
- May return null.
-
insertFauxProperty
void insertFauxProperty(FauxProperty fp)
Creates a new FauxProperty in the display model. By "a new FauxProperty", we mean a new ConfigContext and a new ObjectPropertyDisplayConfig linked to it.- Throws:
IllegalStateException- if fp does not have null values for contextUri and configUri, or if a FauxProperty already exists with this combination of domain, base, and range URIs.IllegalArgumentException- if fp is not internally consistent.
-
updateFauxProperty
void updateFauxProperty(FauxProperty fp)
Updates the properties of this FauxProperty in the display model. By "this FauxProperty", we mean the ConfigContext and ObjectPropertyDisplayConfig whose URIs are stored in this FauxProperty.- Throws:
IllegalStateException- if the display model contains no such individuals. If you want to create a new FauxProperty instance, you should be using insertFauxProperty() instead.IllegalArgumentException- if fp is not internally consistent.
-
deleteFauxProperty
void deleteFauxProperty(FauxProperty fp)
Delete this FauxProperty from the display model. Delete any ConfigContext that is based on the constraints in this FauxProperty, and any ObjectPropertyDisplayConfigs that depend on that ConfigContext. If no such ConfigContext is found, no error is raised. No check is made to see whether the ObjectPropertyDisplayConfig matches the settings on this FauxProperty.
-
-