@Override public boolean equals(final @Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DOMActionInstance)) { return false; } final DOMActionInstance other = (DOMActionInstance) obj; return getType().equals(other.type) && dataTrees.equals(other.dataTrees); }
/** * Check if a particular type definition represents the built-in int8 type. * * @param type Type definition * @return True if the definition is the built-in int8 type. */ public static boolean isInt8(final TypeDefinition<?> type) { return BaseInt8Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type definition represents the built-in int64 type. * * @param type Type definition * @return True if the definition is the built-in int64 type. */ public static boolean isInt64(final TypeDefinition<?> type) { return BaseInt64Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type definition represents the built-in int32 type. * * @param type Type definition * @return True if the definition is the built-in int32 type. */ public static boolean isInt32(final TypeDefinition<?> type) { return BaseInt32Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type definition represents the built-in int16 type. * * @param type Type definition * @return True if the definition is the built-in int16 type. */ public static boolean isInt16(final TypeDefinition<?> type) { return BaseInt16Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type definition represents the built-in int32 type. * * @param type Type definition * @return True if the definition is the built-in int32 type. */ public static boolean isInt32(final TypeDefinition<?> type) { return BaseInt32Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type definition represents the built-in int16 type. * * @param type Type definition * @return True if the definition is the built-in int16 type. */ public static boolean isInt16(final TypeDefinition<?> type) { return BaseInt16Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type definition represents the built-in int8 type. * * @param type Type definition * @return True if the definition is the built-in int8 type. */ public static boolean isInt8(final TypeDefinition<?> type) { return BaseInt8Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type definition represents the built-in int64 type. * * @param type Type definition * @return True if the definition is the built-in int64 type. */ public static boolean isInt64(final TypeDefinition<?> type) { return BaseInt64Type.INSTANCE.getPath().equals(type.getPath()); }
private static boolean isInnerType(final LeafSchemaNode leaf, final TypeDefinition<?> type) { // New parser with encapsulated type if (leaf.getPath().equals(type.getPath())) { return true; } // Embedded type definition with new parser. Also takes care of the old parser with bits if (leaf.getPath().equals(type.getPath().getParent())) { return true; } return false; }
/** * Check if a particular type is the base type for uint8. * * @param type The type to check * @return If the type corresponds to the base uint8 type. * @throws NullPointerException if type is null */ public static boolean isUint8(final @NonNull TypeDefinition<?> type) { return BaseUint8Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type is the base type for uint8. * * @param type The type to check * @return If the type corresponds to the base uint8 type. * @throws NullPointerException if type is null */ public static boolean isUint8(final @NonNull TypeDefinition<?> type) { return BaseUint8Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type is the base type for uint16. * * @param type The type to check * @return If the type corresponds to the base uint16 type. * @throws NullPointerException if type is null */ public static boolean isUint16(final @NonNull TypeDefinition<?> type) { return BaseUint16Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type is the base type for uint64. * * @param type The type to check * @return If the type corresponds to the base uint64 type. * @throws NullPointerException if type is null */ public static boolean isUint64(final @NonNull TypeDefinition<?> type) { return BaseUint64Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type is the base type for uint32. * * @param type The type to check * @return If the type corresponds to the base uint32 type. * @throws NullPointerException if type is null */ public static boolean isUint32(final @NonNull TypeDefinition<?> type) { return BaseUint32Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type is the base type for uint32. * * @param type The type to check * @return If the type corresponds to the base uint32 type. * @throws NullPointerException if type is null */ public static boolean isUint32(final @NonNull TypeDefinition<?> type) { return BaseUint32Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type is the base type for uint16. * * @param type The type to check * @return If the type corresponds to the base uint16 type. * @throws NullPointerException if type is null */ public static boolean isUint16(final @NonNull TypeDefinition<?> type) { return BaseUint16Type.INSTANCE.getPath().equals(type.getPath()); }
/** * Check if a particular type is the base type for uint64. * * @param type The type to check * @return If the type corresponds to the base uint64 type. * @throws NullPointerException if type is null */ public static boolean isUint64(final @NonNull TypeDefinition<?> type) { return BaseUint64Type.INSTANCE.getPath().equals(type.getPath()); }
public static String getGetterMethodName(final TypedDataSchemaNode node) { // Bug 8903: If it is a derived type of boolean or empty, not an inner type, then the return type // of method would be the generated type of typedef not build-in types, so here it should be 'get'. final TypeDefinition<?> type = node.getType(); return BindingMapping.getGetterMethodName(node.getQName(), (type instanceof BooleanTypeDefinition || type instanceof EmptyTypeDefinition) && (type.getPath().equals(node.getPath()) || type.getBaseType() == null)); } }
private static String getGetterName(final SchemaNode node, final TypeDefinition<?> typeDef) { final String suffix = JavaIdentifierNormalizer.normalizeSpecificIdentifier(node.getQName().getLocalName(), JavaIdentifier.CLASS); if (typeDef instanceof BooleanTypeDefinition && (typeDef.getPath().equals(node.getPath()) || typeDef.getBaseType() == null)) { return "is" + suffix; } return "get" + suffix; }