org.overlord.sramp.client.query
Class ArtifactSummary

java.lang.Object
  extended by org.overlord.sramp.client.query.ArtifactSummary

public class ArtifactSummary
extends Object

Models a summary of a single S-RAMP artifact from a Feed (result of an S-RAMP query).

Author:
eric.wittmann@redhat.com

Constructor Summary
ArtifactSummary(org.jboss.resteasy.plugins.providers.atom.Entry entry)
          Constructor.
 
Method Summary
 String getCreatedBy()
           
 Date getCreatedTimestamp()
           
 String getCustomPropertyValue(String propertyName)
          Returns the value of a property included in the query result set.
 String getDescription()
           
 Date getLastModifiedTimestamp()
           
 String getName()
           
 ArtifactType getType()
           
 String getUuid()
           
 boolean isDerived()
           
 boolean isExtendedType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactSummary

public ArtifactSummary(org.jboss.resteasy.plugins.providers.atom.Entry entry)
Constructor.

Parameters:
entry -
Method Detail

getType

public ArtifactType getType()
Returns:
the artifact type

getUuid

public String getUuid()
Returns:
the artifact's uuid

getLastModifiedTimestamp

public Date getLastModifiedTimestamp()
Returns:
the artifact's last modified timestamp

getName

public String getName()
Returns:
the artifact's name

getCreatedTimestamp

public Date getCreatedTimestamp()
Returns:
the artifact's created timestamp

getCreatedBy

public String getCreatedBy()
Returns:
the artifact's created by

getDescription

public String getDescription()
Returns:
the artifact's description

isExtendedType

public boolean isExtendedType()
Returns:
true if the artifact is an extended type

isDerived

public boolean isDerived()
Returns:
true if the artifact is a derived type

getCustomPropertyValue

public String getCustomPropertyValue(String propertyName)
Returns the value of a property included in the query result set. Note that the property must have been requested via the "propertyName" parameter of the issueing query.

Parameters:
propertyName - the name of the property
Returns:
the property value or null if not present


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.