TypeUse implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final CAdapter | |
| private final boolean | |
| private final CNonElement | |
| private final MimeType | |
| private final ID |
| Access | Constructor and Description |
|---|---|
| public | TypeUseImpl(CNonElement itemType, boolean collection, ID id, MimeType expectedMimeType, CAdapter adapter)
|
| Modifier and Type | Method and Description |
|---|---|
| public JExpression | createConstant(Outline outline, XmlString lexical)
Implements com. Creates a constant for the given lexical value. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public CAdapter | getAdapterUse()
Implements com. If this type use is adapting the type, returns the adapter. |
| public MimeType | getExpectedMimeType()
Implements com. A can have an associated MIME type. |
| public CNonElement | |
| public int | |
| public ID | idUse()
Implements com. Whether the referenced type (individual item type in case of collection) is ID/IDREF. |
| public boolean | isCollection()
Implements com. If the use can hold multiple values of the specified type. |
| adapter | back to summary |
|---|---|
| private final CAdapter adapter | |
| collection | back to summary |
|---|---|
| private final boolean collection | |
| coreType | back to summary |
|---|---|
| private final CNonElement coreType | |
| expectedMimeType | back to summary |
|---|---|
| private final MimeType expectedMimeType | |
| id | back to summary |
|---|---|
| private final ID id | |
| TypeUseImpl | back to summary |
|---|---|
| public TypeUseImpl(CNonElement itemType, boolean collection, ID id, MimeType expectedMimeType, CAdapter adapter) | |
| createConstant | back to summary |
|---|---|
| public JExpression createConstant(Outline outline, XmlString lexical) Implements com. Doc from com. Creates a constant for the given lexical value.
For example, to create a constant 1 for CBuiltinLeafInfo.INT.createConstant( codeModel, "1", null ); This method is invoked at the backend as a part of the code generation process.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAdapterUse | back to summary |
|---|---|
| public CAdapter getAdapterUse() Implements com. Doc from com. If this type use is adapting the type, returns the adapter. Otherwise return null.
| |
| getExpectedMimeType | back to summary |
|---|---|
| public MimeType getExpectedMimeType() Implements com. Doc from com. A can have an associated MIME type.
| |
| getInfo | back to summary |
|---|---|
| public CNonElement getInfo() Implements com. Doc from com. Individual item type.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| idUse | back to summary |
|---|---|
| public ID idUse() Implements com. Doc from com. Whether the referenced type (individual item type in case of collection) is ID/IDREF. ID is a property of a relationship. When a bean Foo has an ID property called 'bar' whose type is String, Foo isn't an ID, String isn't an ID, but this relationship is an ID (in the sense that Foo uses this String as an ID.) The same thing can be said with IDREF. When Foo refers to Bar by means of IDREF, neither Foo nor Bar is IDREF. That's why we have this method in .
| |
| isCollection | back to summary |
|---|---|
| public boolean isCollection() Implements com. Doc from com. If the use can hold multiple values of the specified type.
| |