coras.common
Class CorasAsset

java.lang.Object
  extended byjava.util.Observable
      extended bycoras.common.CorasAsset
Direct Known Subclasses:
CorasElement, CorasPackage

public class CorasAsset
extends java.util.Observable

Author:
fvr TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
protected static java.lang.String SHORT_DESCRIPTION
           
 
Constructor Summary
protected CorasAsset(no.sintef.assetrepository.Asset asset)
           
 
Method Summary
protected  void addRepresentation(CorasRepresentation representation)
           
 void checkIn(java.lang.String annotation)
           
 void checkOut()
           
protected  no.sintef.assetrepository.Asset createChildAsset(coras.common.AssetTypeEnum assetType, java.lang.String name, java.lang.String description, java.util.Map properties, java.lang.String annotation, no.sintef.assetrepository.Representation[] representations)
           
protected  java.util.Collection getChildAssets(SwingWorker worker)
           
 java.lang.String getFullDescription()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
protected  java.lang.String getProperty(java.lang.String key)
           
protected  CorasRepresentation getRepresentation(coras.representations.RepresentationTypeEnum type)
           
 java.lang.String getShortDescription()
           
 boolean isDeleted()
           
 boolean isDirty()
           
 void markAsDeleted()
           
protected  void removeRepresentation(CorasRepresentation representation)
           
 void setFullDescription(java.lang.String newDescription)
           
 void setName(java.lang.String newName)
           
protected  void setProperty(java.lang.String key, java.lang.String value)
           
 void setShortDescription(java.lang.String newDescription)
           
 void unCheckOut()
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHORT_DESCRIPTION

protected static final java.lang.String SHORT_DESCRIPTION
See Also:
Constant Field Values
Constructor Detail

CorasAsset

protected CorasAsset(no.sintef.assetrepository.Asset asset)
Parameters:
asset -
Method Detail

isDirty

public boolean isDirty()

isDeleted

public boolean isDeleted()

markAsDeleted

public void markAsDeleted()
                   throws no.sintef.lock.LockException
Returns:
Throws:
no.sintef.lock.LockException

getId

public java.lang.String getId()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String newName)
             throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

getFullDescription

public java.lang.String getFullDescription()

setFullDescription

public void setFullDescription(java.lang.String newDescription)
                        throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

getShortDescription

public java.lang.String getShortDescription()

setShortDescription

public void setShortDescription(java.lang.String newDescription)
                         throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

checkOut

public void checkOut()
              throws no.sintef.lock.LockException
Throws:
no.sintef.lock.LockException

checkIn

public void checkIn(java.lang.String annotation)
             throws no.sintef.lock.LockException
Throws:
no.sintef.lock.LockException

unCheckOut

public void unCheckOut()
                throws no.sintef.lock.LockException
Throws:
no.sintef.lock.LockException

getProperty

protected java.lang.String getProperty(java.lang.String key)

setProperty

protected void setProperty(java.lang.String key,
                           java.lang.String value)
                    throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

getChildAssets

protected java.util.Collection getChildAssets(SwingWorker worker)

createChildAsset

protected no.sintef.assetrepository.Asset createChildAsset(coras.common.AssetTypeEnum assetType,
                                                           java.lang.String name,
                                                           java.lang.String description,
                                                           java.util.Map properties,
                                                           java.lang.String annotation,
                                                           no.sintef.assetrepository.Representation[] representations)
                                                    throws no.sintef.lock.LockException
Throws:
no.sintef.lock.LockException

getRepresentation

protected CorasRepresentation getRepresentation(coras.representations.RepresentationTypeEnum type)

addRepresentation

protected void addRepresentation(CorasRepresentation representation)
                          throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

removeRepresentation

protected void removeRepresentation(CorasRepresentation representation)
                             throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException


Copyright © 2003-2005 SINTEF. All Rights Reserved.