Record Class ModelFiles.ImportOptions
java.lang.Object
java.lang.Record
org.clafer.frontend.ModelFiles.ImportOptions
- Record Components:
roots---import-root: a local import must be inside one of these folders, after resolving..and symbolic links; any local file without thempublicOnly---public-imports: URLs only from public addresses, without a proxybase---import-base: the URL from which the model's text was read, which its imports are relative to, so they can only be URLsreadUrls- whether URLs are downloaded; if not, an import of a URL is an error (ModelFiles.importsUrl()), e.g., in an editor, which analyzes the model on every change
- Enclosing class:
ModelFiles
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModelFiles.ImportOptionsNo restrictions; URLs are read.static final ModelFiles.ImportOptionsNo restrictions, and only local files. -
Constructor Summary
ConstructorsConstructorDescriptionImportOptions(List<String> roots, boolean publicOnly, Optional<String> base, boolean readUrls) Creates an instance of aImportOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thepublicOnlyrecord component.booleanreadUrls()Returns the value of thereadUrlsrecord component.roots()Returns the value of therootsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Default
No restrictions; URLs are read. -
LocalOnly
No restrictions, and only local files.
-
-
Constructor Details
-
ImportOptions
public ImportOptions(List<String> roots, boolean publicOnly, Optional<String> base, boolean readUrls) Creates an instance of aImportOptionsrecord class.- Parameters:
roots- the value for therootsrecord componentpublicOnly- the value for thepublicOnlyrecord componentbase- the value for thebaserecord componentreadUrls- the value for thereadUrlsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
roots
-
publicOnly
Returns the value of thepublicOnlyrecord component.- Returns:
- the value of the
publicOnlyrecord component
-
base
-
readUrls
-