public class Elements extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Elements.Type |
Constructor and Description |
---|
Elements(Element element) |
Elements(Element[] elements) |
Elements(List<Element> elements)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Element |
getElement()
Returns the element when
Elements.Type.ELEMENT . |
Element[] |
getElements()
Returns the array of elements when
Elements.Type.ARRAY . |
String |
getId()
Returns the element id when
Elements.Type.ID . |
int |
getIndex()
Returns the index when
Elements.Type.ARRAY . |
Elements.Type |
getType()
Returns the element info type.
|
boolean |
isArray()
Returns true if the value is an array.
|
boolean |
isElement()
Returns true if the value is an element.
|
boolean |
isId()
Returns true if the value is an id.
|
boolean |
isIndex()
Returns true if the value is an index.
|
public Elements(Element element)
public Elements(Element[] elements)
public Elements(List<Element> elements)
elements
- the list of elementspublic Element getElement()
Elements.Type.ELEMENT
.public Element[] getElements()
Elements.Type.ARRAY
.public String getId()
Elements.Type.ID
.public int getIndex()
Elements.Type.ARRAY
.public Elements.Type getType()
public boolean isArray()
public boolean isElement()
public boolean isId()
public boolean isIndex()
Copyright © 2018. All rights reserved.