- java.lang.Object
-
- org.praxislive.core.Value
-
- org.praxislive.core.ComponentInfo
-
public class ComponentInfo extends Value
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.core.Value
Value.Type<T extends Value>
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_COMPONENT_TYPEstatic StringKEY_DYNAMIC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ControlInfocontrolInfo(String control)List<String>controls()booleanequals(Object obj)Values must override the default equals method.booleanequivalent(Value arg)Indicates whether some other Value is equivalent to this one.static Optional<ComponentInfo>from(Value arg)inthashCode()Values must override the default hashcode method.booleanhasProtocol(Class<? extends Protocol> protocol)static ArgumentInfoinfo()static ComponentInfoparse(String string)PortInfoportInfo(String port)List<String>ports()PMapproperties()Stream<Class<? extends Protocol>>protocols()StringtoString()Values must override the default method to return a string representation that is immutable.
-
-
-
Field Detail
-
KEY_COMPONENT_TYPE
public static final String KEY_COMPONENT_TYPE
- See Also:
- Constant Field Values
-
KEY_DYNAMIC
public static final String KEY_DYNAMIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
controlInfo
public ControlInfo controlInfo(String control)
-
properties
public PMap properties()
-
toString
public String toString()
Description copied from class:ValueValues must override the default method to return a string representation that is immutable.
-
equivalent
public boolean equivalent(Value arg)
Description copied from class:ValueIndicates whether some other Value is equivalent to this one. UnlikeValue.equals(java.lang.Object)this method is not symmetric - a value of a different type might be equivalent to this without the other type considering the reverse to be true.The default implementation uses identity or String equality.
- Overrides:
equivalentin classValue- Parameters:
arg- value to test for equivalence- Returns:
- true if value is equivalent to this
-
equals
public boolean equals(Object obj)
Description copied from class:ValueValues must override the default equals method. This method should only returntrueif the supplied Object is of the same type as the implementing Value. Values of an unknown type should be coerced before calling this method. This method does not have to guarantee thatthis.equals(that) == this.toString().equals(that.toString())
-
hashCode
public int hashCode()
Description copied from class:ValueValues must override the default hashcode method.
-
from
public static Optional<ComponentInfo> from(Value arg)
-
info
public static ArgumentInfo info()
-
parse
public static ComponentInfo parse(String string) throws ValueFormatException
- Throws:
ValueFormatException
-
-