|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.share.xml.beans.PropertyDef
public abstract class PropertyDef
Class for defining a bean property to the parser engine.
=-=AEW Should more of these take a ParseContext? Is there a way we can get around needing the ParseContext at all?
Constructor Summary | |
---|---|
PropertyDef()
Creates a PropertyDef. |
Method Summary | |
---|---|
abstract java.lang.String |
getName()
|
abstract java.lang.Class<?> |
getPropertyType()
Returns the property type to which all non-null values of this property must be assignable. |
abstract java.lang.Object |
getValue(ParseContext context,
java.lang.Object bean)
Retrieves the value of this property from the bean. |
abstract java.lang.Object |
parseText(ParseContext context,
java.lang.String text)
Parses a string into the correct Java type for this class. |
java.lang.Object |
parseText(ParseContext context,
java.lang.String attrURI,
java.lang.String attrText)
Parses a string into the correct Java type for this class. |
abstract void |
setValue(ParseContext context,
java.lang.Object bean,
java.lang.Object value)
Stores a value of this property on the bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyDef()
Method Detail |
---|
public abstract java.lang.String getName()
public abstract java.lang.Object getValue(ParseContext context, java.lang.Object bean)
public abstract void setValue(ParseContext context, java.lang.Object bean, java.lang.Object value)
public abstract java.lang.Class<?> getPropertyType()
public abstract java.lang.Object parseText(ParseContext context, java.lang.String text) throws java.lang.IllegalArgumentException
context
- the current parsing contexttext
- the text of the property
java.lang.IllegalArgumentException
- if the text cannot
be parsed.public java.lang.Object parseText(ParseContext context, java.lang.String attrURI, java.lang.String attrText) throws java.lang.IllegalArgumentException
context
- the current parsing contextattrURI
- the namespace of the attributeattrText
- the text of the attribute
java.lang.IllegalArgumentException
- if the text cannot
be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |