Class GraphQLBsonRegexCoercing
java.lang.Object
org.restheart.graphql.scalars.bsonCoercing.GraphQLBsonRegexCoercing
- All Implemented Interfaces:
graphql.schema.Coercing<org.bson.BsonRegularExpression,org.bson.BsonRegularExpression>
public class GraphQLBsonRegexCoercing
extends Object
implements graphql.schema.Coercing<org.bson.BsonRegularExpression,org.bson.BsonRegularExpression>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.BsonRegularExpressionparseLiteral(Object AST)org.bson.BsonRegularExpressionparseValue(Object input)org.bson.BsonRegularExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface graphql.schema.Coercing
parseLiteral
-
Constructor Details
-
GraphQLBsonRegexCoercing
public GraphQLBsonRegexCoercing()
-
-
Method Details
-
serialize
public org.bson.BsonRegularExpression serialize(Object dataFetcherResult) throws graphql.schema.CoercingSerializeException- Specified by:
serializein interfacegraphql.schema.Coercing<org.bson.BsonRegularExpression,org.bson.BsonRegularExpression>- Throws:
graphql.schema.CoercingSerializeException
-
parseValue
public org.bson.BsonRegularExpression parseValue(Object input) throws graphql.schema.CoercingParseValueException- Specified by:
parseValuein interfacegraphql.schema.Coercing<org.bson.BsonRegularExpression,org.bson.BsonRegularExpression>- Throws:
graphql.schema.CoercingParseValueException
-
parseLiteral
public org.bson.BsonRegularExpression parseLiteral(Object AST) throws graphql.schema.CoercingParseLiteralException- Specified by:
parseLiteralin interfacegraphql.schema.Coercing<org.bson.BsonRegularExpression,org.bson.BsonRegularExpression>- Throws:
graphql.schema.CoercingParseLiteralException
-