@GwtCompatible public class NamedTypedValue extends TypedValue implements com.appiancorp.type.NamedType, com.appiancorp.core.expr.portable.PortableNamedTypedValue
Modifier and Type | Field and Description |
---|---|
static javax.xml.namespace.QName |
QNAME |
ALWAYS, AT_DESIGNER_DISCRETION, clearPasswordOnTransport, NEVER, TO_STRING_STYLE
hiddenAttributes$TRANSIENT
Constructor and Description |
---|
NamedTypedValue() |
NamedTypedValue(java.lang.Long instanceType) |
NamedTypedValue(NamedTypedValue ntv) |
NamedTypedValue(java.lang.String name,
java.lang.Long instanceType) |
NamedTypedValue(java.lang.String name,
java.lang.Long instanceType,
java.lang.Object value)
Creates an instance with the given name, type and value.
|
NamedTypedValue(TypedValue tv) |
NamedTypedValue(TypedValue tv,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this typedValue for equality.
|
static NamedTypedValue |
findNtvByName(NamedTypedValue[] ntvs,
java.lang.String name)
Finds the NamedTypedValue object in the given array that has the given name.
|
static int |
findNtvIndexByName(NamedTypedValue[] ntvs,
java.lang.String name)
Finds the index of the NamedTypedValue in the given array that has the given name.
|
java.lang.String |
getName()
Gets the name.
|
static java.util.List<java.lang.String> |
getNtvNames(java.util.Collection<? extends NamedTypedValue> ntvs)
Returns the names of the given
NamedTypedValue s. |
int |
hashCode() |
void |
setName(java.lang.String name)
Sets the name.
|
java.lang.String |
toString() |
clearPasswordOnTransport, clone, getHiddenAttributes, getInstanceType, getInstanceTypeIds, getTypeRef, getValue, setInstanceType, setTypeRef, setValue
public NamedTypedValue()
public NamedTypedValue(TypedValue tv)
public NamedTypedValue(NamedTypedValue ntv)
public NamedTypedValue(TypedValue tv, java.lang.String name)
public NamedTypedValue(java.lang.Long instanceType)
public NamedTypedValue(java.lang.String name, java.lang.Long instanceType)
public NamedTypedValue(java.lang.String name, java.lang.Long instanceType, java.lang.Object value)
name
- the nameinstanceType
- the type idvalue
- the valuepublic boolean equals(java.lang.Object obj)
TypedValue
equals
in class TypedValue
obj
- the object to be compared for equality with this typeValuepublic int hashCode()
hashCode
in class TypedValue
public java.lang.String getName()
getName
in interface com.appiancorp.core.expr.portable.PortableNamedTypedValue
getName
in interface com.appiancorp.type.NamedType
public void setName(java.lang.String name)
setName
in interface com.appiancorp.type.NamedType
name
- the namepublic java.lang.String toString()
toString
in class TypedValue
public static NamedTypedValue findNtvByName(NamedTypedValue[] ntvs, java.lang.String name)
null
.ntvs
- the NamedTypedValue array in which to look for the namename
- the name to look forpublic static int findNtvIndexByName(NamedTypedValue[] ntvs, java.lang.String name)
-1
.ntvs
- the NamedTypedValue array in which to look for the namename
- the name to look forpublic static java.util.List<java.lang.String> getNtvNames(java.util.Collection<? extends NamedTypedValue> ntvs)
NamedTypedValue
s. If the given collection has a consistent
iteration order, the returned names will be in the same order as the collection items.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.