public class Source
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Source.Capability
Represents a cap.
|
static class |
Source.CapValueContainer |
static class |
Source.CapValueEnumeration
TWON_ENUMERATION
|
static class |
Source.CapValueRange
TWON_RANGE
|
Constructor and Description |
---|
Source(java.util.Map<java.lang.String,java.lang.Object> jsonObject) |
Source(java.lang.String prodName) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Source> |
createSourceList(java.util.List jsonArray) |
Source.Capability |
getCap(int capCode)
Gets the capability of the given code.
|
Source.Capability |
getCap(java.lang.String capName)
Gets the capability of the given name.
|
java.util.List<Source.Capability> |
getCaps() |
static Source |
getDefaultSource(java.util.List<Source> sources)
Returns the first source marked as default in the first or null if not found
|
java.lang.String |
getDsModuleName() |
int |
getId() |
java.lang.String |
getManufacturer() |
java.lang.String |
getProductFamily() |
java.lang.String |
getProductName() |
int |
getProtocolMajor() |
int |
getProtocolMinor() |
static Source |
getSourceByName(java.util.List<Source> sources,
java.lang.String name)
Returns the source object with given name or null if not found
|
java.lang.String |
getSourceName()
Returns the source name, i.e., value of getProductName()
|
int |
getSupportedGroups() |
boolean |
hasFeeder() |
boolean |
hasFlatbed() |
boolean |
isConnected() |
boolean |
isDefaultSource() |
java.lang.String |
toString() |
public Source(java.lang.String prodName)
public Source(java.util.Map<java.lang.String,java.lang.Object> jsonObject)
public static java.util.List<Source> createSourceList(java.util.List jsonArray)
public static Source getSourceByName(java.util.List<Source> sources, java.lang.String name)
public static Source getDefaultSource(java.util.List<Source> sources)
public int getId()
public int getProtocolMajor()
public int getProtocolMinor()
public int getSupportedGroups()
public java.lang.String getManufacturer()
public java.lang.String getProductFamily()
public java.lang.String getProductName()
public java.lang.String getDsModuleName()
public java.lang.String getSourceName()
public boolean isDefaultSource()
public boolean hasFeeder()
public boolean hasFlatbed()
public boolean isConnected()
public java.util.List<Source.Capability> getCaps()
public Source.Capability getCap(java.lang.String capName)
capName
- the cap namepublic Source.Capability getCap(int capCode)
capCode
- the cap codepublic java.lang.String toString()
toString
in class java.lang.Object
v12.0.5.0 | Copyright © Asprise Software. All Rights Reserved. Please visit the product page at asprise.com