|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.adapter.attribute.AttributeHelper
The AttributeHelper class is a facade class designed to allow classes
in other packages easy access to the functionality in the wt.adapter.attribute
package. It uses the AttributeDelegates to read and write attributes
on modeld Windchill classes.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static ObjectPropertyValue |
propertyValueHelper
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
AttributeHelper()
|
Method Summary | |
Object |
assignValues(Object object,
Hashtable values,
Locale locale)
Assigns the values contained in the Hashtable to the object. |
Object |
assignValues(Object object,
Hashtable values,
Locale locale,
Properties props)
Assigns the values contained in the Hashtable to the object. |
Object |
createObject(String className)
Creates an instance of the specified class, using the Windchill -style factory method. |
Object |
createObject(String className,
Hashtable values,
Locale locale)
Creates an instance of the specified class, using the Hashtable of values to initialize its attributes. |
Object |
createObject(String className,
Hashtable values,
Locale locale,
Properties props)
Creates an instance of the specified class, using the Hashtable of values to initialize its attributes. |
String[] |
getAllAttributeNames(String className)
Return the names of all the attributes available for the specified class. |
String |
getDefinedAs(PropertyDescriptor propertyDescriptor)
|
String[] |
getLocalizedNames(String className,
String[] attributeNames,
Locale locale)
|
String |
getLowerLimit(PropertyDescriptor propertyDescriptor)
Return the string representation for lower limit specified for the attribute. |
String |
getObjectPropertyValueString(Object object,
String attributeName,
Locale locale)
Return a string representation of the value of the attribute for the specified object. |
String |
getObjectPropertyValueString(Object object,
String attributeName,
Locale locale,
Properties props)
Return a string representation of the value of the attribute for the specified object. |
PropertyDescriptor |
getPropertyDescriptor(String className,
String attributeName)
|
protected ObjectPropertyValue |
getPropertyValueHelper()
|
protected String |
getSimpleName(String fullClassName)
|
String |
getUpperLimit(PropertyDescriptor propertyDescriptor)
Return the string representation for upper limit specified for the attribute. |
boolean |
isRequired(PropertyDescriptor propertyDescriptor)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(AttributeHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static ObjectPropertyValue propertyValueHelper
Constructor Detail |
public AttributeHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AttributeHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public Object assignValues(Object object, Hashtable values, Locale locale) throws WTException
object
- values
- locale
-
WTException
public Object assignValues(Object object, Hashtable values, Locale locale, Properties props) throws WTException
object
- values
- locale
- props
-
WTException
public Object createObject(String className, Hashtable values, Locale locale) throws WTException
className
- values
- locale
-
WTException
public Object createObject(String className, Hashtable values, Locale locale, Properties props) throws WTException
className
- values
- locale
- props
-
WTException
public Object createObject(String className) throws WTException
className
-
WTException
public String[] getAllAttributeNames(String className) throws WTException
className
-
WTException
public String getObjectPropertyValueString(Object object, String attributeName, Locale locale) throws WTException, WTIntrospectionException
object
- attributeName
- locale
-
WTException
WTIntrospectionException
public String getObjectPropertyValueString(Object object, String attributeName, Locale locale, Properties props) throws WTException, WTIntrospectionException
object
- attributeName
- locale
- props
-
WTException
WTIntrospectionException
protected String getSimpleName(String fullClassName)
protected ObjectPropertyValue getPropertyValueHelper()
public String[] getLocalizedNames(String className, String[] attributeNames, Locale locale) throws WTException
WTException
public String getDefinedAs(PropertyDescriptor propertyDescriptor)
public boolean isRequired(PropertyDescriptor propertyDescriptor)
public String getUpperLimit(PropertyDescriptor propertyDescriptor)
propertyDescriptor
- PropertyDescriptor for the attribute
WTIntrospector.UPPER_LIMIT
public String getLowerLimit(PropertyDescriptor propertyDescriptor)
propertyDescriptor
- PropertyDescriptor for the attribute
WTIntrospector.LOWER_LIMIT
public PropertyDescriptor getPropertyDescriptor(String className, String attributeName) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |