de.jtec.beads.content
Class Bead

java.lang.Object
  extended by de.jtec.beads.content.AbstractAttributeHolder
      extended by de.jtec.beads.content.Bead
All Implemented Interfaces:
Attributed, Visitee

public class Bead
extends AbstractAttributeHolder
implements Visitee

bead is manageable and identifiable content unit. it contains some kind of content. conntent itself is seperatet, to allow to have separate sets of attributes or no content at all

Author:
k.pribluda

Field Summary
(package private)  Content content
           
(package private)  java.io.File name
           
 
Fields inherited from class de.jtec.beads.content.AbstractAttributeHolder
attributes
 
Constructor Summary
Bead()
          just a default constructor
Bead(Content content, java.io.File name)
           
Bead(java.io.File name)
           
Bead(java.lang.String name)
           
 
Method Summary
 void accept(Visitor visitor)
          accept visitor
 Content getContent()
          content element
 java.io.File getName()
          unique name of bead ( inside canvas )
 java.io.File resolve(java.io.File name)
          resolve name relative to this bead
 java.io.File resolve(java.lang.String name)
          resolve possibly relative name ( absolute start with / )
 void setContent(Content content)
           
 void setName(java.io.File name)
           
 
Methods inherited from class de.jtec.beads.content.AbstractAttributeHolder
getAttributes, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

Content content

name

java.io.File name
Constructor Detail

Bead

public Bead(java.lang.String name)

Bead

public Bead(java.io.File name)

Bead

public Bead()
just a default constructor


Bead

public Bead(Content content,
            java.io.File name)
Method Detail

getContent

public Content getContent()
content element

Returns:

getName

public java.io.File getName()
unique name of bead ( inside canvas )

Returns:

setContent

public void setContent(Content content)

setName

public void setName(java.io.File name)

accept

public void accept(Visitor visitor)
Description copied from interface: Visitee
accept visitor

Specified by:
accept in interface Visitee

resolve

public java.io.File resolve(java.lang.String name)
                     throws java.io.IOException
resolve possibly relative name ( absolute start with / )

Parameters:
name -
Returns:
Throws:
java.io.IOException

resolve

public java.io.File resolve(java.io.File name)
                     throws java.io.IOException
resolve name relative to this bead

Parameters:
name -
Returns:
Throws:
java.io.IOException


Copyright © 2007 J-Tec-Team. All Rights Reserved.