Class SPARQLUnionPatternImpl
java.lang.Object
se.liu.ida.hefquin.base.query.impl.SPARQLUnionPatternImpl
- All Implemented Interfaces:
Query,SPARQLGraphPattern,SPARQLUnionPattern
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSPARQLUnionPatternImpl(List<SPARQLGraphPattern> subPatterns) SPARQLUnionPatternImpl(SPARQLGraphPattern... subPatterns) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanintReturns the number of graph patterns that are combined via this union operator.Returns all graph patterns that are combined via this union operator.getSubPatterns(int i) Returns the i-th of the graph patterns that are combined via this union operator, where i starts at index 0 (zero).inthashCode()toString()
-
Field Details
-
subPatterns
-
-
Constructor Details
-
SPARQLUnionPatternImpl
-
SPARQLUnionPatternImpl
-
-
Method Details
-
getNumberOfSubPatterns
public int getNumberOfSubPatterns()Description copied from interface:SPARQLUnionPatternReturns the number of graph patterns that are combined via this union operator.- Specified by:
getNumberOfSubPatternsin interfaceSPARQLUnionPattern
-
getSubPatterns
Description copied from interface:SPARQLUnionPatternReturns all graph patterns that are combined via this union operator.- Specified by:
getSubPatternsin interfaceSPARQLUnionPattern
-
getSubPatterns
Description copied from interface:SPARQLUnionPatternReturns the i-th of the graph patterns that are combined via this union operator, where i starts at index 0 (zero). If the union operator has fewer sub-patterns, then anIndexOutOfBoundsExceptionwill be thrown.- Specified by:
getSubPatternsin interfaceSPARQLUnionPattern- Throws:
IndexOutOfBoundsException
-
addSubPattern
-
toString
-
equals
-
hashCode
public int hashCode()
-