Package org.gorpipe.querydialogs.factory
Class ArgumentBuilder
java.lang.Object
org.gorpipe.querydialogs.factory.ArgumentBuilder
- Direct Known Subclasses:
DateArgumentBuilder,FileArgumentBuilder,NumberArgumentBuilder,QueryArgumentBuilder,StringArgumentBuilder
Base class for all argument builders.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ArgumentBuilds an arguments based on supplied attributes.getAllowedValues(Map<String, ? extends Object> attributes) protected ArgumentDescriptiongetArgumentDescription(Map<String, ? extends Object> attributes, String name) protected IntegergetDisplayWidth(Map<String, ? extends Object> attributes) protected URIgetValuesPath(Map<String, ? extends Object> attributes) booleanprotected static StringsafeString(Object o) voidsetIgnoreAllowedMismatch(boolean ignoreAllowedMismatch)
-
Constructor Details
-
ArgumentBuilder
public ArgumentBuilder(org.gorpipe.gor.model.FileReader fileResolver)
-
-
Method Details
-
setIgnoreAllowedMismatch
public void setIgnoreAllowedMismatch(boolean ignoreAllowedMismatch) -
ignoreAllowedMismatch
public boolean ignoreAllowedMismatch() -
safeString
-
getAllowedValues
-
build
Builds an arguments based on supplied attributes.- Parameters:
name- - the name of the argumentattributes- - attributes specific to an argument type- Returns:
- an appropriate argument
-
getValuesPath
-
getDisplayWidth
-
getArgumentDescription
protected ArgumentDescription getArgumentDescription(Map<String, ? extends Object> attributes, String name)
-