| Modifier and Type | Class and Description |
|---|---|
| public class | CompactConstructor.ConstructCompactObject
Custom ConstructMapping |
| Modifier and Type | Field and Description |
|---|---|
| private Construct | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected Object | |
| protected Construct | |
| protected Object | |
| private Construct | |
| public CompactData | |
| protected Construct | getConstructor(Node
Node to construct an instance fromOverrides org. |
| protected String | Returns: name of the List propertythe class to provide exactly one List property bean)Provide the name of the property which is used when the entries form a sequence. |
| protected void |
| compactConstruct | back to summary |
|---|---|
| private Construct compactConstruct | |
| FIRST_PATTERN | back to summary |
|---|---|
| private static final Pattern FIRST_PATTERN | |
| GUESS_COMPACT | back to summary |
|---|---|
| private static final Pattern GUESS_COMPACT | |
| PROPERTY_NAME_PATTERN | back to summary |
|---|---|
| private static final Pattern PROPERTY_NAME_PATTERN | |
| CompactConstructor | back to summary |
|---|---|
| public CompactConstructor(LoaderOptions loadingConfig) Create with provided options
| |
| CompactConstructor | back to summary |
|---|---|
| public CompactConstructor() Create with defaults | |
| applySequence | back to summary |
|---|---|
| protected void applySequence(Object bean, List<?> value) | |
| constructCompactFormat | back to summary |
|---|---|
| protected Object constructCompactFormat(ScalarNode node, CompactData data) | |
| createCompactConstruct | back to summary |
|---|---|
| protected Construct createCompactConstruct() Create
| |
| createInstance | back to summary |
|---|---|
| protected Object createInstance(ScalarNode node, CompactData data) throws Exception | |
| getCompactConstruct | back to summary |
|---|---|
| private Construct getCompactConstruct() Create if it does not exist
| |
| getCompactData | back to summary |
|---|---|
| public CompactData getCompactData(String scalar) | |
| getConstructor | back to summary |
|---|---|
| protected Construct getConstructor(Node node) Overrides org. Doc from org. Get the constructor to construct the Node. For implicit tags if the runtime class is known a dedicated Construct implementation is used. Otherwise, the constructor is chosen by the tag. | |
| getSequencePropertyName | back to summary |
|---|---|
| protected String getSequencePropertyName(Class<?> bean) Provide the name of the property which is used when the entries form a sequence. The property must be a List. | |
| setProperties | back to summary |
|---|---|
| protected void setProperties(Object bean, Map<String, Object> data) throws Exception | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | construct(Node
node where the keys are property names (they can only be node)Strings)
and values are objects to be createdOverrides org. Implements org. |
| public void | construct2ndStep(Node
composed Node node, Object the instance constructed earlier by object)construct(Node node) for the
provided NodeOverrides org. Implements org. |
| ConstructCompactObject | back to summary |
|---|---|
| public ConstructCompactObject() | |
| construct | back to summary |
|---|---|
| public Object construct(Node node) Overrides org. Implements org. Doc from org. Construct JavaBean. If type safe collections are used please look at
| |
| construct2ndStep | back to summary |
|---|---|
| public void construct2ndStep(Node node, Object object) Overrides org. Implements org. Doc from org. Apply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself. | |