Package org.hcjf.layers.query.model
Class QueryResource
- java.lang.Object
-
- org.hcjf.layers.query.model.QueryResource
-
- All Implemented Interfaces:
java.lang.Comparable<QueryResource>,QueryComponent
- Direct Known Subclasses:
QueryDynamicResource
public class QueryResource extends java.lang.Object implements java.lang.Comparable<QueryResource>, QueryComponent
Represents any kind of resource.
-
-
Field Summary
Fields Modifier and Type Field Description static QueryResourceANY
-
Constructor Summary
Constructors Constructor Description QueryResource(java.lang.String resourceName)
-
Method Summary
Modifier and Type Method Description intcompareTo(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 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:QueryComponentVerify if the component is underlying.- Specified by:
isUnderlyingin interfaceQueryComponent- Returns:
- True if the component is underlying.
-
compareTo
public int compareTo(QueryResource o)
- Specified by:
compareToin interfacejava.lang.Comparable<QueryResource>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-