Class Reference
- java.lang.Object
-
- ro.sync.exml.workspace.api.references.Reference
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class Reference extends java.lang.Object
Simple bean class used to contain references. References have a type and an URL- Since:
- 21.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Reference.Type
Constants enumerating the resource types.
-
Constructor Summary
Constructors Constructor Description Reference(Reference.Type type, java.lang.String uri)
Constructs a newReference
with a type and an URI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Reference.Type
getType()
Getter for the type of the reference (static content, link, CSS, etc.)java.lang.String
getURL()
Getter for the string representing the URL of the external resourceint
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Reference
public Reference(Reference.Type type, java.lang.String uri)
Constructs a newReference
with a type and an URI.- Parameters:
type
- the type of the referenceuri
- the URI
-
-
Method Detail
-
getURL
public java.lang.String getURL()
Getter for the string representing the URL of the external resource- Returns:
- the URL of the reference as string
-
getType
public Reference.Type getType()
Getter for the type of the reference (static content, link, CSS, etc.)- Returns:
- the type of the reference
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
-