public static class NXObject.AttributeInformation extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
array
The attribute is an array attribute
|
int |
arrayElementIndex
If this struct represents an array attribute element, this is the index (numerical, starting with 0).
|
boolean |
booleanValue
Boolean (logical) attribute value (the default value is returned when reading templates of non-set attributes)
|
String |
category
Attribute category (may be null)
|
NXObject.ComputationalTime |
compTimeValue
Time/Date attribute value (the default value is returned when reading templates of non-set attributes).
|
Expression |
expression
The expresssion referenced by the attribute (only supported if the referenceValue is null)
|
boolean |
inherited
The attribute is inherited from another object and not overridden
|
int |
integerValue
Integer attribute value (the default value is returned when reading templates of non-set attributes)
|
boolean |
isOverride
The attribute is overriding an inherited attribute
|
boolean |
locked
The attribute is locked.
|
boolean |
notSaved
The attribute is transient - it will not be saved on part save
|
boolean |
ownedBySystem
This attribute is a reserved system attribute.
|
boolean |
pdmBased
The attribute is PDM-based
|
double |
realValue
Real attribute value (the default value is returned when reading templates of non-set attributes)
If the attribute has units, it is returned in the display units of the attribute
|
String |
referenceValue
Reference string of a string type attribute (it is null if it is a 'normal' string attribute).
|
boolean |
required
The attribute is required on the given object
|
String |
stringValue
String attribute value (the default value is returned when reading templates of non-set attributes).
|
String |
timeValue
Time/Date attribute value (the default value is returned when reading templates of non-set attributes).
|
String |
title
Attribute title (for arrays, this is the array title without an appended index)
|
String |
titleAlias
Attribute title alias (may be null) (for arrays, this is the array title alias, without an appended index)
|
NXObject.AttributeType |
type
Attribute type
|
Unit |
unit
The display units, if any, if the attribute is a real-type attribute
|
boolean |
unset
The attribute has not been set (i.e. has no value) on the object (used when getting attribute information)
|
Constructor and Description |
---|
AttributeInformation() |
AttributeInformation(NXObject.AttributeType typeInitial,
String categoryInitial,
String titleInitial,
String titleAliasInitial,
boolean booleanValueInitial,
int integerValueInitial,
double realValueInitial,
String stringValueInitial,
String timeValueInitial,
NXObject.ComputationalTime compTimeValueInitial,
String referenceValueInitial,
boolean inheritedInitial,
boolean isOverrideInitial,
boolean lockedInitial,
boolean ownedBySystemInitial,
boolean requiredInitial,
boolean unsetInitial,
boolean arrayInitial,
boolean pdmBasedInitial,
boolean notSavedInitial,
int arrayElementIndexInitial,
Unit unitInitial,
Expression expressionInitial)
Constructor for the AttributeInformation object.
|
public NXObject.AttributeType type
public String category
public String title
public String titleAlias
public boolean booleanValue
public int integerValue
public double realValue
public String stringValue
public String timeValue
NXObject.DateAndTimeFormat
for valid formats.
The time value held here is in the current time zone of the machine running the program.
NOTE: if both TimeValue and CompTimeValue are unset (null and (0,0), respectively) when the attribute is set,
then the attribute will be set to current time and date.public NXObject.ComputationalTime compTimeValue
public String referenceValue
public boolean inherited
public boolean isOverride
public boolean locked
public boolean ownedBySystem
public boolean required
public boolean unset
public boolean array
public boolean pdmBased
public boolean notSaved
public int arrayElementIndex
public Unit unit
public Expression expression
public AttributeInformation()
public AttributeInformation(NXObject.AttributeType typeInitial, String categoryInitial, String titleInitial, String titleAliasInitial, boolean booleanValueInitial, int integerValueInitial, double realValueInitial, String stringValueInitial, String timeValueInitial, NXObject.ComputationalTime compTimeValueInitial, String referenceValueInitial, boolean inheritedInitial, boolean isOverrideInitial, boolean lockedInitial, boolean ownedBySystemInitial, boolean requiredInitial, boolean unsetInitial, boolean arrayInitial, boolean pdmBasedInitial, boolean notSavedInitial, int arrayElementIndexInitial, Unit unitInitial, Expression expressionInitial)
typeInitial
- Attribute typecategoryInitial
- Attribute category (may be null)titleInitial
- Attribute title (for arrays, this is the array title without an appended index)titleAliasInitial
- Attribute title alias (may be null) (for arrays, this is the array title alias, without an appended index)booleanValueInitial
- Boolean (logical) attribute value (the default value is returned when reading templates of non-set attributes)integerValueInitial
- Integer attribute value (the default value is returned when reading templates of non-set attributes)realValueInitial
- Real attribute value (the default value is returned when reading templates of non-set attributes)
If the attribute has units, it is returned in the display units of the attributestringValueInitial
- String attribute value (the default value is returned when reading templates of non-set attributes).timeValueInitial
- Time/Date attribute value (the default value is returned when reading templates of non-set attributes).
See NXObject.DateAndTimeFormat
for valid formats.
The time value held here is in the current time zone of the machine running the program.
NOTE: if both TimeValue and CompTimeValue are unset (null and (0,0), respectively) when the attribute is set,
then the attribute will be set to current time and date.compTimeValueInitial
- Time/Date attribute value (the default value is returned when reading templates of non-set attributes).
The time value held here is in the current time zone of the machine running the program.referenceValueInitial
- Reference string of a string type attribute (it is null if it is a 'normal' string attribute).
Only supported if the expression reference is null.inheritedInitial
- The attribute is inherited from another object and not overriddenisOverrideInitial
- The attribute is overriding an inherited attributelockedInitial
- The attribute is locked.
When an existing attribute is read, this flag indicates that the attribute cannot currently be modified.
The flag is set if the attribute is created from a template that has the 'Locked' flag, or if
it is reserved by the system or by some other mechanism.
When an unset attribute template is read, this flag indicates whether attributes created from the template will be
locked when the part is saved and reloaded.ownedBySystemInitial
- This attribute is a reserved system attribute.
When this flag is set, the attribute can be set and removed only by the system. It is also created locked. It cannot be unlocked.requiredInitial
- The attribute is required on the given objectunsetInitial
- The attribute has not been set (i.e. has no value) on the object (used when getting attribute information)arrayInitial
- The attribute is an array attributepdmBasedInitial
- The attribute is PDM-basednotSavedInitial
- The attribute is transient - it will not be saved on part savearrayElementIndexInitial
- If this struct represents an array attribute element, this is the index (numerical, starting with 0).
After reading an attribute, it is valid only if 'Unset' is 'false' and 'Array' is 'true'.
The array size can be resized only one element at a time (adding or removing the last element).unitInitial
- The display units, if any, if the attribute is a real-type attributeexpressionInitial
- The expresssion referenced by the attribute (only supported if the referenceValue is null)Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.