http://www.jpicedt.org

jpicedt.graphic.model
Class PicAttributeName

java.lang.Object
  extended by jpicedt.graphic.model.PicAttributeName

public class PicAttributeName
extends java.lang.Object

A wrapper for an attribute name that can be pushed into a PicAttributeSet. This allows typesafe enumerations, and besides enforces runtime checking as for attributes values that can be safely attached to this PicAttributeName.

Since:
jpicedt 1.3.2
Version:
$Id: PicAttributeName.java,v 1.9.2.1 2007/09/02 11:56:26 reynal Exp $

Author:
Sylvain Reynal

Field Summary
protected  java.lang.Class allowedValueClass
           
 
Constructor Summary
protected PicAttributeName(java.lang.String name, java.lang.Class allowedValueClass)
           
 
Method Summary
 java.lang.Class getAllowedValueClass()
          Return the class that is allowed for attribute values
 java.lang.String getName()
          Return the name of the attribute described by this PicAttributeName
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

allowedValueClass

protected java.lang.Class allowedValueClass
Constructor Detail

PicAttributeName

protected PicAttributeName(java.lang.String name,
                           java.lang.Class allowedValueClass)
Parameters:
name - PsTrick's name for this attribute
allowedValueClass - which class is allowed for attribute values
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Return the name of the attribute described by this PicAttributeName


getAllowedValueClass

public java.lang.Class getAllowedValueClass()
Return the class that is allowed for attribute values


http://www.jpicedt.org

Submit a bug : syd@jpicedt.org