Package org.hcjf.layers.query
Class Query.QueryResource
- java.lang.Object
-
- org.hcjf.layers.query.Query.QueryResource
-
- All Implemented Interfaces:
java.lang.Comparable<Query.QueryResource>,Query.QueryComponent
- Enclosing class:
- Query
public static class Query.QueryResource extends java.lang.Object implements java.lang.Comparable<Query.QueryResource>, Query.QueryComponent
Represents any kind of resource.
-
-
Field Summary
Fields Modifier and Type Field Description static Query.QueryResourceANY
-
Constructor Summary
Constructors Constructor Description QueryResource(java.lang.String resourceName)
-
Method Summary
Modifier and Type Method Description intcompareTo(Query.QueryResource o)booleanequals(java.lang.Object obj)java.lang.StringgetResourceName()Return the resource name.booleanisUnderlying()Verify if the component is underlying.voidsetResourceName(java.lang.String resourceName)Set the name of the resource.java.lang.StringtoString()
-
-
-
Field Detail
-
ANY
public static final Query.QueryResource ANY
-
-
Method Detail
-
setResourceName
public void setResourceName(java.lang.String resourceName)
Set the name of the resource.- Parameters:
resourceName- Name of the resource
-
getResourceName
public java.lang.String getResourceName()
Return the resource name.- Returns:
- Resource name.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
isUnderlying
public boolean isUnderlying()
Description copied from interface:Query.QueryComponentVerify if the component is underlying.- Specified by:
isUnderlyingin interfaceQuery.QueryComponent- Returns:
- True if the component is underlying.
-
compareTo
public int compareTo(Query.QueryResource o)
- Specified by:
compareToin interfacejava.lang.Comparable<Query.QueryResource>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-