Package jpicedt.graphic.model
Class PicAttributeName
- java.lang.Object
-
- jpicedt.graphic.model.PicAttributeName
-
public class PicAttributeName extends java.lang.ObjectA 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
Fields Modifier and Type Field Description protected java.lang.ClassallowedValueClass
-
Constructor Summary
Constructors Modifier Constructor Description protectedPicAttributeName(java.lang.String name, java.lang.Class allowedValueClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassgetAllowedValueClass()Return the class that is allowed for attribute valuesjava.lang.StringgetName()Return the name of the attribute described by this PicAttributeNamejava.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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
-
-