Esri Geoportal Server
1.0

com.esri.gpt.catalog.search
Class ResourceLinks

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<ResourceLink>
              extended by com.esri.gpt.catalog.search.ResourceLinks
All Implemented Interfaces:
Serializable, Cloneable, Iterable<ResourceLink>, Collection<ResourceLink>, List<ResourceLink>, RandomAccess

public class ResourceLinks
extends ArrayList<ResourceLink>

Represents a collection of bind-able links associated with a document or resource.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ResourceLinks()
          Default constructor.
 
Method Summary
 boolean add(ResourceLink link)
          Adds a link to the collection.
 void echo(StringBuffer sb)
          Appends property information for the component to a buffer.
 ResourceLink findByTag(String tag)
          Finds a resource link associated with a tag.
 String findUrlByTag(String tag)
          Finds resource link url associated with a tag.
 ResourceLink getIcon()
          Gets the link to the classification icon.
 ResourceLink getThumbnail()
          Gets the link to the thumbnail.
 Map<String,String> getUrlsByTag()
          Returns a Map interface configured to return a resource link URL based upon a supplied tag (as key).
 void setIcon(ResourceLink link)
          Sets the link to the classification icon.
 void setThumbnail(ResourceLink link)
          Sets the link to the thumbnail.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ResourceLinks

public ResourceLinks()
Default constructor.

Method Detail

getIcon

public ResourceLink getIcon()
Gets the link to the classification icon.

Returns:
the classification icon link

setIcon

public void setIcon(ResourceLink link)
Sets the link to the classification icon.

Parameters:
link - the classification icon icon

getThumbnail

public ResourceLink getThumbnail()
Gets the link to the thumbnail.

Returns:
the thumbnail link

setThumbnail

public void setThumbnail(ResourceLink link)
Sets the link to the thumbnail.

Parameters:
link - the thumbnail link

getUrlsByTag

public Map<String,String> getUrlsByTag()
Returns a Map interface configured to return a resource link URL based upon a supplied tag (as key).
Th map aids in JSF page usage.
rendered="#{record.resourceLinks.urlsByTag['website']}"

Returns:
the map interface (urls keys by tag)

add

public boolean add(ResourceLink link)
Adds a link to the collection.

Specified by:
add in interface Collection<ResourceLink>
Specified by:
add in interface List<ResourceLink>
Overrides:
add in class ArrayList<ResourceLink>
Parameters:
link - the link to add (null links will not be added)
Returns:
true if the link was added

findByTag

public ResourceLink findByTag(String tag)
Finds a resource link associated with a tag.

Parameters:
tag - the resource link tag
Returns:
the associated resource link (null if not found)

findUrlByTag

public String findUrlByTag(String tag)
Finds resource link url associated with a tag.

Parameters:
tag - the resource link tag
Returns:
url the resource link url (empty string if none was located)

echo

public void echo(StringBuffer sb)
Appends property information for the component to a buffer.

Parameters:
sb - the buffer to use when appending information

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class AbstractCollection<ResourceLink>
Returns:
the string

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.